You are in front of a Linux box, a VM really, with a bunch of new disks that must be configured and suddenly you remember that there is no
ioscan in Linux, you will ask yourself, who is so stupid to create an operative system without
Yes it is true, there is no
ioscan in Linux and that means that every time you add a new disk to one of your virtual machine you have to reboot it, at least technically that is the truth. But don’t worry there is a quick and dirty way to circumvent that.
From a root shell execute the following command:
After that if you do a
fdsik -l will see the new disks.
If you want to rescan your box for new fiber channel disks the command is slightly different.
For the fiber channel part there are also third party utilities. HP for example provides
hp_rescan which comes with the Proliant Support Pack.
If you know other ways to rescan the SCSI bus in a Linux server please comment.