Expand Disk Space without Rebooting - Vmware

From SmartHCM Wiki
Jump to navigation Jump to search

1. Install growpart

yum install cloud-utils-growpart

2. Check the name(s) of your SCSI devices.

$ ls /sys/class/scsi_device/

3. Re-scan the SCSI Bus to Add a SCSI Device Without rebooting the VM using the following command

$ echo 1 > /sys/class/scsi_device/0\:0\:0\:0/device/rescan

4. Resize the partition

growpart /dev/sda 1

5. Resize device

resize2fs /dev/sda