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

From SmartHCM Wiki
Jump to navigation Jump to search
(Created page with "'''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...")
 
Line 1: Line 1:
 
'''1. Install growpart'''
 
'''1. Install growpart'''
 
+
<pre>
 
yum install cloud-utils-growpart
 
yum install cloud-utils-growpart
 +
</pre>
  
 
'''2. Check the name(s) of your SCSI devices.'''
 
'''2. Check the name(s) of your SCSI devices.'''
 
+
<pre>
 
$ ls /sys/class/scsi_device/
 
$ ls /sys/class/scsi_device/
 +
</pre>
  
 
'''3. Re-scan the SCSI Bus to Add a SCSI Device Without rebooting the VM using the following command'''
 
'''3. Re-scan the SCSI Bus to Add a SCSI Device Without rebooting the VM using the following command'''
 
+
<pre>
 
$ echo 1 > /sys/class/scsi_device/0\:0\:0\:0/device/rescan
 
$ echo 1 > /sys/class/scsi_device/0\:0\:0\:0/device/rescan
 +
</pre>
  
 
'''4. Resize device'''
 
'''4. Resize device'''
 
+
<pre>
 
resize2fs /dev/sda
 
resize2fs /dev/sda
 +
</pre>

Revision as of 05:00, 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 device

resize2fs /dev/sda