Configuration of the virtual I/O adapters requires the knowledge of disk layouts as well as networking configuration. The virtual SCSI adapters require server and client side adapters to be configured on the HMC. The server side portion of the SCSI adapter, configured on the VIO, requires a frame wide unique "slot number" be defined. For high availability a server side portion of the SCSI adapter must be configured for each VIO server. This means that each virtual disk or logical volume connection is associated with two server side SCSI adapters, one on each VIO server. By convention the standard has become that each SCSI adapter is numbered as a multiple of 10, with the first SCSI adapter of the server side high availability pair being configured on the first VIO server and ending with the number 0, i.e., 210, 220, 230, 240, ... The second SCSI adapter of the server side high availability pair is configured on the second VIO server and ends with the number 5, i.e., 215, 225, 235, 245, ...
For each LPAR that uses virtual disk or logical volumes, a client side virtual SCSI adapter must be configured on the HMC. The client side of the virtual SCSI adapter requires additional information and it's settings to correspond with the server side of the SCSI adapter. Coordination of the slot numbers defined here will make debugging and tracking of problems much easier and is highly desired. The information required to configure a client side SCSI adapter includes slot number, the name of the server side SCSI adapter remote partition, and the slot number of the server side SCSI adapter on the remote partition. The client side slot number should correspond with the server side slot number to make debugging and tracking easier. As an example of defining both server and client side SCSI adapters in a high availability environment:
For each LPAR, a pair of virtual SCSI adapters shall be configured to be used for attachment of the operating system and paging disks. Another pair of virtual SCSI adapters shall be configured for the purpose of application disk attachment. The virtual SCSI adapters designated for use as operating system disk attachment shall be numbered between 10 and 199. The virtual SCSI adapters designated for use as application disk attachment shall be numbered between 200 and 499.
Using this standard, each VIO server will have one virtual SCSI adapter per LPAR for the operating system, and one virtual SCSI adapter per LPAR for the application storage. Each LPAR will reference two virtual SCSI adapters, one from each VIO server, for the operating system storage, and two virtual SCSI adapters, one from each VIO server, for the application storage. Examples of this is shown below.
LPAR | VIO 0 OS Slot |
VIO 1 OS Slot |
VIO 0 Appl Slot |
VIO 1 Appl Slot |
---|---|---|---|---|
mx1adcal01 | 10 | 15 | 200 | 205 |
mx1adfim03 | 20 | 25 | 210 | 215 |
mx1adesp01 | 30 | 35 | 220 | 225 |
mx1apega01 | 40 | 45 | 230 | 235 |
mx1aaora02 | 50 | 55 | 240 | 245 |
Each virtual SCSI adapter may have one or more disks with it, depending upon the LPAR requirements. These disk associations are performed on the VIO server by referencing the slot numbers assigned to each LPAR.
This virtual SCSI adapter information can be automatically gathered from an existing frame through the HMC using the script "virtualscsi.ksh. Example output from this script follows:
Adapter Type | Slot | Remote LPAR | Remote Slot | Backing Device | LPAR Name |
---|---|---|---|---|---|
server | 100 | any | 0x8100000000000000//ap01rootlv | mx1apvio01 | |
server | 110 | any | 0x8100000000000000//ap02rootlv | mx1apvio01 | |
server | 120 | any | 0x8100000000000000//ap03rootlv | mx1apvio01 | |
server | 130 | any | 0x8100000000000000//db01rootlv | mx1apvio01 | |
server | 150 | any | 0x8100000000000000/U5791.001.91800WT-P1-C06-T1-W50060E8003334713-L1000000000000/hdisk5 | mx1apvio01 | |
server | 160 | any | 0x8100000000000000/U5791.001.91800WT-P1-C06-T1-W50060E8003334713-L2000000000000/hdisk6 | mx1apvio01 | |
server | 170 | any | 0x8100000000000000/U5791.001.91800WT-P1-C06-T1-W50060E8003334713-L3000000000000/hdisk7 | mx1apvio01 | |
client | 190 | mx1apvio01 | 190 | none | mx1pocdb01 |
server | 30 | any | 0x8100000000000000//pocap01lv | mx1apvio01 | |
server | 40 | any | 0x8100000000000000//pocap02lv | mx1apvio01 | |
server | 50 | any | 0x8100000000000000//pocap03lv | mx1apvio01 | |
server | 60 | any | 0x8100000000000000//pocdb01lv | mx1apvio01 | |
server | 105 | any | // | mx1apvio02 | |
server | 115 | any | // | mx1apvio02 | |
server | 125 | any | // | mx1apvio02 | |
server | 135 | any | // | mx1apvio02 | |
server | 155 | any | 0x8100000000000000/U5791.001.91800WW-P1-C06-T1-W50060E8003334703-L1000000000000/hdisk5 | mx1apvio02 | |
server | 165 | any | 0x8100000000000000/U5791.001.91800WW-P1-C06-T1-W50060E8003334703-L2000000000000/hdisk6 | mx1apvio02 | |
server | 175 | any | 0x8100000000000000/U5791.001.91800WW-P1-C06-T1-W50060E8003334703-L3000000000000/hdisk7 | mx1apvio02 | |
client | 195 | mx1apvio02 | 195 | none | mx1pocdb01 |
server | 35 | any | 0x8100000000000000//pocap01lv | mx1apvio02 | |
server | 45 | any | 0x8100000000000000//pocap02lv | mx1apvio02 | |
server | 55 | any | 0x8100000000000000//pocap03lv | mx1apvio02 | |
server | 65 | any | 0x8100000000000000//pocdb01lv | mx1apvio02 | |
client | 2 | mx1apvio01 | 60 | none | mx1pocdb01 |
client | 3 | mx1apvio02 | 65 | none | mx1pocdb01 |
client | 4 | mx1apvio01 | 130 | none | mx1pocdb01 |
client | 5 | mx1apvio01 | 170 | none | mx1pocap03 |
client | 6 | mx1apvio02 | 175 | none | mx1pocap03 |
client | 2 | mx1apvio01 | 60 | none | mx1pocdb01 |
client | 3 | mx1apvio02 | 65 | none | mx1pocdb01 |
client | 4 | mx1apvio01 | 130 | none | mx1pocdb01 |
client | 5 | mx1apvio01 | 170 | none | mx1pocap03 |
client | 6 | mx1apvio02 | 175 | none | mx1pocap03 |
client | 2 | mx1apvio01 | 60 | none | mx1pocdb01 |
client | 3 | mx1apvio02 | 65 | none | mx1pocdb01 |
client | 4 | mx1apvio01 | 130 | none | mx1pocdb01 |
client | 5 | mx1apvio01 | 170 | none | mx1pocap03 |
client | 6 | mx1apvio02 | 175 | none | mx1pocap03 |
client | 190 | mx1apvio01 | 190 | none | mx1pocdb01 |
client | 195 | mx1apvio02 | 195 | none | mx1pocdb01 |
client | 2 | mx1apvio01 | 60 | none | mx1pocdb01 |
client | 3 | mx1apvio02 | 65 | none | mx1pocdb01 |
client | 4 | mx1apvio01 | 130 | none | mx1pocdb01 |
Adapter Type | Slot | Remote LPAR | Remote Slot | Backing Device | LPAR Name |
---|---|---|---|---|---|
server | 140 | any | 0x8100000000000000//s73Eplmrootlv | mx1apvio03 | |
server | 145 | any | 0x8100000000000000//i73Eplmrootlv | mx1apvio04 | |
server | 130 | any | 0x8100000000000000//sdb02rootlv | mx1apvio03 | |
server | 140 | any | 0x8100000000000000//s73Eplmrootlv | mx1apvio03 | |
client | 190 | mx1apvio03 | 190 | none | mx1pocdb02 |
server | 145 | any | 0x8100000000000000//i73Eplmrootlv | mx1apvio04 | |
client | 195 | mx1apvio04 | 195 | none | mx1pocdb02 |
server | 65 | any | 0x8100000000000000//db02rootlv | mx1apvio04 | |
client | 190 | mx1apvio03 | 190 | none | mx1pocdb02 |
client | 195 | mx1apvio04 | 195 | none | mx1pocdb02 |
client | 2 | mx1apvio04 | 65 | none | mx1pocdb02 |
client | 3 | mx1apvio03 | 130 | none | mx1pocdb02 |