Adding vscsi device mappings to Virtual IO Server VIOS and Logical Partition using chsyscfg

vscsi disk or device addition requires the vios server as well as client mappings configuration for these to work we need to configure the profile and add mappings

During Server vscsi adapter configuration virtual_scsi_adapters attribute takes six parameters followed by forward slash
1. Server Free Virtual Adapter Slot
2. Type of vscsi adapter either "server" or "client" only. In this case its server
3. Partition ID
4. Partition Name
5. Partition Client Adapter Slot
6. Virtual Adapter is required 1 or not 0 for Partition Activation

VIOS Config 

Configuring on Both the VIOS where viosv1 and viosv2 are servers and lpar01 is LPAR. viosv1 slot number 20 mapped to client 5 slot and viosv2 slot number 20 mapped to client 6 slot.

chsyscfg -r prof -m system -i "name=viosv1_profile,lpar_name=viosv1,\"virtual_scsi_adapters=20/server/4/lpar01/5/0\""
 

chsyscfg -r prof -m system -i "name=viosv2_profile,lpar_name=viosv2,\"virtual_scsi_adapters=20/server/4/lpar01/6/0\""

LPAR Config 

During Client vscsi adapter configuration virtual_scsi_adapters attribute takes six parameters followerd by forward slash 


1. Client Free Virtual Adapter Slot
2. Type of vscsi adapter either "server" or "client" only. In this case its client
3. VIOS Server ID
4. VIOS Server Name
5. VIOS vscsi Virtual Adapter Slot
6. Virtual Adapter is required 1 or not 0 for Partition Activation

Configuring on LPAR lpar01 separated with comma viosv1 and vios2 slots provided

chsyscfg -r prof -m system -i "name=default_profile,lpar_name=lpar01,\"virtual_scsi_adapters+=\"\"5/client/1/viosv1/20/0\"\",\"\"6/client/2/viosv2/20/0\"\"\""

We can provide --force if the sync is enabled for vios and lpar at the end of command chsyscfg.

Post a Comment

0 Comments