Monday 16 April 2012

Add new disk to VMware linux guest without rebooting

I've been helping out jimmy with performance testing of the pmsapp and I was trying to rebuild the array for testing of RAID 5 performance when I found this little beauty to obviate the need for a reboot after adding a hard drive to an guest (VM) in linux.

In essence, once the disk has been added to the guest, run this:
echo "- - -" > /sys/class/scsi_host/host#/scan
substitute # with the appropriate number.

You can check that it has been successfully added to the system with: 
fdisk -l | grep MB

No comments:

Post a Comment