All Linux HowTo's

Detect newly added disks. Linux on VMWare.

Share This:

This one liner shows how to get Linux (CentOS in this case) to detect a newly added disk on a VMWare host. This was found on “http://wingloon.com/2013/05/07/how-to-detect-a-new-hard-disk-without-rebooting-vmware-linux-guest/”.

ls /sys/class/scsi_host/ | while read host ; do echo "- - -" > /sys/class/scsi_host/$host/scan ; done

There you have it.

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *