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 |
---|---|---|---|---|
ddcadcal01 | 10 | 15 | 200 | 205 |
ddcadfim03 | 20 | 25 | 210 | 215 |
ddcadesp01 | 30 | 35 | 220 | 225 |
ddcapega01 | 40 | 45 | 230 | 235 |
ddcaaora02 | 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 | ddcapvio01 | |
server | 110 | any | 0x8100000000000000//ap02rootlv | ddcapvio01 | |
server | 120 | any | 0x8100000000000000//ap03rootlv | ddcapvio01 | |
server | 130 | any | 0x8100000000000000//db01rootlv | ddcapvio01 | |
server | 150 | any | 0x8100000000000000/U5791.001.91800WT-P1-C06-T1-W50060E8003334713-L1000000000000/hdisk5 | ddcapvio01 | |
server | 160 | any | 0x8100000000000000/U5791.001.91800WT-P1-C06-T1-W50060E8003334713-L2000000000000/hdisk6 | ddcapvio01 | |
server | 170 | any | 0x8100000000000000/U5791.001.91800WT-P1-C06-T1-W50060E8003334713-L3000000000000/hdisk7 | ddcapvio01 | |
client | 190 | ddcapvio01 | 190 | none | ddcpocdb01 |
server | 30 | any | 0x8100000000000000//pocap01lv | ddcapvio01 | |
server | 40 | any | 0x8100000000000000//pocap02lv | ddcapvio01 | |
server | 50 | any | 0x8100000000000000//pocap03lv | ddcapvio01 | |
server | 60 | any | 0x8100000000000000//pocdb01lv | ddcapvio01 | |
server | 105 | any | // | ddcapvio02 | |
server | 115 | any | // | ddcapvio02 | |
server | 125 | any | // | ddcapvio02 | |
server | 135 | any | // | ddcapvio02 | |
server | 155 | any | 0x8100000000000000/U5791.001.91800WW-P1-C06-T1-W50060E8003334703-L1000000000000/hdisk5 | ddcapvio02 | |
server | 165 | any | 0x8100000000000000/U5791.001.91800WW-P1-C06-T1-W50060E8003334703-L2000000000000/hdisk6 | ddcapvio02 | |
server | 175 | any | 0x8100000000000000/U5791.001.91800WW-P1-C06-T1-W50060E8003334703-L3000000000000/hdisk7 | ddcapvio02 | |
client | 195 | ddcapvio02 | 195 | none | ddcpocdb01 |
server | 35 | any | 0x8100000000000000//pocap01lv | ddcapvio02 | |
server | 45 | any | 0x8100000000000000//pocap02lv | ddcapvio02 | |
server | 55 | any | 0x8100000000000000//pocap03lv | ddcapvio02 | |
server | 65 | any | 0x8100000000000000//pocdb01lv | ddcapvio02 | |
client | 2 | ddcapvio01 | 60 | none | ddcpocdb01 |
client | 3 | ddcapvio02 | 65 | none | ddcpocdb01 |
client | 4 | ddcapvio01 | 130 | none | ddcpocdb01 |
client | 5 | ddcapvio01 | 170 | none | ddcpocap03 |
client | 6 | ddcapvio02 | 175 | none | ddcpocap03 |
client | 2 | ddcapvio01 | 60 | none | ddcpocdb01 |
client | 3 | ddcapvio02 | 65 | none | ddcpocdb01 |
client | 4 | ddcapvio01 | 130 | none | ddcpocdb01 |
client | 5 | ddcapvio01 | 170 | none | ddcpocap03 |
client | 6 | ddcapvio02 | 175 | none | ddcpocap03 |
client | 2 | ddcapvio01 | 60 | none | ddcpocdb01 |
client | 3 | ddcapvio02 | 65 | none | ddcpocdb01 |
client | 4 | ddcapvio01 | 130 | none | ddcpocdb01 |
client | 5 | ddcapvio01 | 170 | none | ddcpocap03 |
client | 6 | ddcapvio02 | 175 | none | ddcpocap03 |
client | 190 | ddcapvio01 | 190 | none | ddcpocdb01 |
client | 195 | ddcapvio02 | 195 | none | ddcpocdb01 |
client | 2 | ddcapvio01 | 60 | none | ddcpocdb01 |
client | 3 | ddcapvio02 | 65 | none | ddcpocdb01 |
client | 4 | ddcapvio01 | 130 | none | ddcpocdb01 |
Adapter Type | Slot | Remote LPAR | Remote Slot | Backing Device | LPAR Name |
---|---|---|---|---|---|
server | 140 | any | 0x8100000000000000//s73Eplmrootlv | ddcapvio03 | |
server | 145 | any | 0x8100000000000000//i73Eplmrootlv | ddcapvio04 | |
server | 130 | any | 0x8100000000000000//sdb02rootlv | ddcapvio03 | |
server | 140 | any | 0x8100000000000000//s73Eplmrootlv | ddcapvio03 | |
client | 190 | ddcapvio03 | 190 | none | ddcpocdb02 |
server | 145 | any | 0x8100000000000000//i73Eplmrootlv | ddcapvio04 | |
client | 195 | ddcapvio04 | 195 | none | ddcpocdb02 |
server | 65 | any | 0x8100000000000000//db02rootlv | ddcapvio04 | |
client | 190 | ddcapvio03 | 190 | none | ddcpocdb02 |
client | 195 | ddcapvio04 | 195 | none | ddcpocdb02 |
client | 2 | ddcapvio04 | 65 | none | ddcpocdb02 |
client | 3 | ddcapvio03 | 130 | none | ddcpocdb02 |