How to scan for new disks on VPS without reboot

VPS has become a new standard in Hosting world. They have become stable, fast and scalable. Here is a small tip for those, who would like to add new disk to their VPS on the fly and would like to start using it without rebooting.

1. first you need to list your SCSI hosts

ls /sys/class/scsi_host
# Sample output:
host0 host1 host2

2. Now you need to tell Linux to rescan hosts SCSI hosts

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

3. That’s all, feel free to look for new drives!

fdisk -l
Facebooktwittergoogle_plusredditpinterestlinkedinmail

Leave a Reply

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

*

code