Online add disk to VMware Linux guest

When adding a new disk to a VMware Linux guest, you won’t see the disk using “fdisk -l” without rebooting the system. This is in most cases not preferable , as this might be a production system or is still used in other ways.

To add a disk “online” we need to let the system know of its presents.

When a disk is added in VMware , you should look at its scsi id, in our case scsi(0:3)
Once added to your VM guest, you should perform the following command on Linux to add the new device to the list
echo "scsi add-single-device 0 0 3 0" > /proc/scsi/scsi (where 0 0 3 0 refers to 0:3 )

After this , you should be able to see the new disk using fdisk -l and use it !