Difference between revisions of "Expand Disk Space without Rebooting - Vmware"

From SmartHCM Wiki
Jump to navigation Jump to search
 
Line 14: Line 14:
 
</pre>
 
</pre>
  
'''4. Resize device'''
+
'''4. Resize the partition'''
 +
<pre>
 +
growpart /dev/sda 1
 +
</pre>
 +
 
 +
'''5. Resize device'''
 
<pre>
 
<pre>
 
resize2fs /dev/sda
 
resize2fs /dev/sda
 
</pre>
 
</pre>

Latest revision as of 05:02, 28 October 2021

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