If You want to rescan new size partition after increasing drive at vmware, use:
echo 1 > /sys/class/scsi_device/2\:0\:4\:0/device/rescan (or script) for id in `ls -1 /sys/class/scsi_device/`; do echo 1 > /sys/class/scsi_device/$id/device/rescan; done
If You want to rescan new drive after hot added them at vmware, use:
echo "- - -" > /sys/class/scsi_host/host#/scan (or script) for id in `ls -1 /sys/class/scsi_host | grep -v "\." | sed 's/@//g'`; do echo "- - -" > /sys/class/scsi_host/$id/scan; done
Without reboot! 😉