• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Extend volume on non-partitioned disk (XFS) under VMware guest

by admin

Question: How to extend virtual volume ( guest disk ) under OS which runs lvm2 and xfs on target device which does not use partitions?

1. Create a full Guest system backup.

2. Extend the Guest disk from the VMware layer (from Vsphere).

3. Run below command to detect new size on the guest disk.

# ls /sys/class/scsi_host/ | while read host ; do echo "- - -" > /sys/class/scsi_host/$host/scan ; done

3. Verify if new size is visible via fdisk/dmesg.

# fdisk /dev/sdX

4. Resize the pv with pvresize:

# pvresize /dev/sdX

5. Verify the disk size.

# pvs

6. Verify vg size:

# vgs

7. Try to extend lv:

# lvextend -l +100%FREE /lv-name-here

8. Resize xfs:

# xfs_growfs /dev/mapper/lv-name-here

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux, OEL 6, OEL 7

Some more articles you might also be interested in …

  1. How to Delete ASM Disk on Multipath Device in CentOS/RHEL
  2. fdisk Command Examples in Linux
  3. How to Install NTP Service and Client in CentOS/RHEL 8
  4. Managing MySQL Using Systemd As A Non Root User
  5. UNIX / Linux : How to change the niceness (priority) of a process
  6. CentOS / RHEL 6 : How to list or install only security updates with yum
  7. chcon command examples in Linux
  8. How to configure kdump in Oracle Enterprise Linux (OEL 5,6)
  9. Xine Multimedia Software – Play audio and video files in Ubuntu Linux
  10. du Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • grpck command – Remove corrupt or duplicate entries in the /etc/group and /etc/gshadow files.
  • xxd command – Expressed in hexadecimal form
  • sesearch: command not found
  • macof: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright