Virtual SCSI
From Linux on Power wiki
Steps
- HMC: Assign vSCSI server adapter to VIO server, remember the slot number
- HMC: Assign vSCSI client adapter to client LPAR, link the slot with the VIO server
- VIO: Create a device (volume, disk partition or loopback file) on the VIO server
- VIO: Configure vSCSI Server on the VIO Server to point to the device created
Virtual SCSI commands (using Linux VIO)
- Load vscsi server module
modprobe –v ibmvscsis
- Create a block device you are going to share, for example disk partition, logical volume, or loopback mounted file
- Now link this device to the virtual disk (in this case slot number 5):
cd /sys/devices/vio/30000005/bus0/target0 echo /dev/sdc1 > device echo b > type echo 0 > ro echo 1 > active
- After reboot the disk mapping is gone. Use example scripts: SUSE_VIO_Scripts
See also: Debian vio and SUSE_Vio
