Exporting a file as a virtual SCSI disk

Dynamic Multi-Pathing (DMP) supports vSCSI disks backed by a file. Export the file as a vSCSI disk to the VIO client.

To export a file as a vSCSI disk

  1. Create the storage pool.
    $ mksp brunospool ibm_ds8000_0296 
    brunospool 
    0516-1254 mkvg: Changing the PVID in the ODM.
  2. Create a file system on the pool.
    $ mksp -fb bruno_fb -sp brunospool -size 500M 
    bruno_fb 
    File system created successfully. 
    507684 kilobytes total disk space. 
    New File System size is 1024000
  3. Mount the file system.
    $ mount
    node       mounted   mounted over   vfs    date     options 
    ---------- ----------------------   ----- --------------------
    /dev/hd4       /        jfs2      Jul 02 14:47 rw,log=/dev/hd8 
    /dev/hd2      /usr      jfs2      Jul 02 14:47 rw,log=/dev/hd8 
    /dev/hd9var   /var      jfs2      Jul 02 14:47 rw,log=/dev/hd8 
    /dev/hd3      /tmp      jfs2      Jul 02 14:47 rw,log=/dev/hd8 
    /dev/hd1      /home     jfs2      Jul 02 14:48 rw,log=/dev/hd8 
    /dev/hd11admin /admin   jfs2      Jul 02 14:48 rw,log=/dev/hd8 
    /proc         /proc     procfs    Jul 02 14:48 rw 
    /dev/hd10opt  /opt      jfs2      Jul 02 14:48 rw,log=/dev/hd8 
    /dev/livedump /var/adm/ras/livedump jfs2 Jul 02 14:48 rw,log=
    /dev/hd8        
    /dev/bruno_fb /var/vio/storagepools/bruno_fb jfs2 Jul 02 15:38 
    rw,log=INLINE
  4. Create a file in the storage pool.
    $ mkbdsp -bd bruno_fbdev -sp bruno_fb 200M 
    Creating file "bruno_fbdev" in storage pool "bruno_fb". 
    bruno_fbdev 
  5. Assign the file as a backing device.
    $ mkbdsp -sp bruno_fb -bd bruno_fbdev -vadapter vhost0 
    Assigning file "bruno_fbdev" as a backing device. 
    vtscsi5 Available 
    bruno_fbdev 
  6. Use the following command to display the configuration.
    $ lsmap -all
    SVSA            Physloc                      Client Partition ID 
    --------------- ---------------------------- ------------------ 
    vhost0          U9117.MMA.0686502-V2-C11     0x00000000 
    ... 
    ... 
    VTD                vtscsi5 
    Status             Available 
    LUN                0x8600000000000000 
    Backing device     /var/vio/storagepools/bruno_fb/bruno_fbdev 
    Physloc