I thought I’d share something I just learned about VIO disks by a process of experimentation, based upon some comments I found in a wiki, but couldn’t confirm anyplace in documentation.
You can run:
I.e. set two virtual disks to be on the same host/server adapter. Linux, sees, properly:
This is a nice thing, because you can then add disks to running LPARs, and get the SCSI bus rescanned by doing: root@cayenne:~ # echo >/sys/bus/scsi/devices/3:0:1:0/rescan
that means you can also do things like perform rescue operations on a sick LPAR’s root disk by mounting it on another LPAR, and you can do this without rebooting.
In particular, if you have provisioned your VIO server with enough spare SCSI server adapters, you can easily add LPARs without restarting the VIO server.
The instructions we read suggesting creating a new VIO channel per disk, which seemed dumb. We much prefer to have a seperate LV on the VIO server per partition, because ideally we can resize them as well.