Adding a new disk drive to a Linux VMware host without rebooting

categories:

After adding a new drive to a VMware (and probably other virtualization systems) host, it is possible to make the Linux OS rescan the SCSI bus. The new drive would appear without the need to reboot the host.

Use the following command :

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

hostX is usually host0.

If you check the output of dmesg, you should see the new drive detected. You can then proceed and partition and format your new drive.

Source (and comprehensive howto) : http://www.cyberciti.biz/tips/vmware-add-a-new-hard-disk-without-rebooting-guest.html

More info : http://kbase.redhat.com/faq/docs/DOC-3942




Thanks for reading this post!


Did you find an issue in this article?

- click on the following Github link
- log into Github with your account
- click on the line number containing the error
- click on the "..." button
- choose "Reference in new issue"
- add a title and your comment
- click "Submit new issue"

Your feedback is much appreciated! πŸ€œπŸΌπŸ€›πŸΌ

You can also drop me a line below!