33
As mentioned above, the IVM Web browser interface creates a single Virtual SCSI client adapter
per client partition and a corresponding Virtual SCSI server adapter in VIOS. The exception is for
tape virtualization, as described in section 4.1.4. To create additional Virtual SCSI client adapters,
you must use the VIOS command line:
•
Log into VIOS with
padmin
or another administrator userid
•
If the IBM i partition is not activated, follow the example below, which adds a new Virtual
SCSI client adapter in
slot 5
of IBM i partition
“test,”
connecting to a server adapter in
the
next available slot (chosen automatically by IVM) in partition
“VIOS
:”
o
chsyscfg -r prof -i "name=test,virtual_scsi_a=5/client/1/VIOS//1"
o
The corresponding server adapter in VIOS is created automatically by IVM
•
If the IBM i partition is running, follow the example below, which creates a new Virtual
SCSI client adapter in
slot 5
of IBM i partition
“test,”
connecting to a server adapter in
the
next available slot (chosen automatically by IVM) in partition
“VIOS
:”
o
chhwres -r virtualio --rsubtype scsi -p test -o a -s 5 -a "adapter_type=client"
o
The corresponding server adapter in VIOS is created automatically by IVM
Notice that there are three variables in the commands above – the name of the IBM i partition, the
new slot for the Virtual SCSI client adapter and the name of the VIOS partition. VIOS always has
partition ID 1 when IVM is used, and by default carries the serial number of the blade as a name.
To display the current names and IDs of all existing partitions, use:
•
lssyscfg -r lpar -F "name,lpar_id"
To display which virtual slots have been already been used, by partition and adapter, use:
•
lshwres -r virtualio --rsubtype slot --level slot
(notice the double dashes)
4.10.1. Mapping storage to new Virtual SCSI adapters
Once the new Virtual SCSI client adapter for IBM i and the server adapter for VIOS are created,
you can assign additional LUNs to IBM i by mapping them to the new server adapter in VIOS.
Alternatively, you can map an optical drive to a separate Virtual SCSI connection.
Note
that even
if you create a new Virtual SCSI adapter on the command line as described above, the IVM Web
interface will not use it to map LUNs or optical devices to IBM i.
Assignment of disk and
optical devices to IBM i using a new Virtual SCSI adapter must be done explicitly, using
the VIOS command line.
To display LUNs (or other physical volumes, such as SAS disks) that are available to be assigned
to IBM i on the blade, use the following command:
•
lspv -avail
To display all existing virtual resource mappings by Virtual SCSI server adapter in VIOS (vhostX)
and client partition, as well as any newly created Virtual SCSI server adapters, use:
•
lsmap –all
Any new Virtual SCSI server adapters will appear as having no resources mapped to them.
Assuming that
“hdisk7”
is an available LUN and
“vhost1”
is a newly created Virtual SCSI server
adapter, use the following command to make hdisk7 available to IBM i: