Skip to content

Instantly share code, notes, and snippets.

@zamd
Created July 10, 2017 07:29
Show Gist options
  • Save zamd/e907638222114b1e4e0874bfc1ccc17c to your computer and use it in GitHub Desktop.
Save zamd/e907638222114b1e4e0874bfc1ccc17c to your computer and use it in GitHub Desktop.
Access new data device in VMWare VM without restart

Get the host bus # to rescan

grep mpt /sys/class/scsi_host/host?/proc_name

This would return host number as host2 etc.

/sys/class/scsi_host/host2/proc_name:mptspi

Rescan the bus with the following command

echo "- - -" > /sys/class/scsi_host/host2/scan

– – – indicates all controllers, channels and luns should be scanned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment