Friday, September 7, 2012

Creating Virtual SCSI Adapter for VIO & LPAR through HMC

Creating Virtual SCSI Adapter for VIO & LPAR through HMC

For VIO

Creating Virtual SCSI Adapter on VIO Dynamically, which will be removed on the next reboot. To make it static check
the next step (b)

a. Login to HMC - Navigate to VIO server - Select the VIO server - Select Dynamic Logical Partition - Select Virtual
Adapter - Goto Actions - Create Virtual Adapter - SCSI Adapter

Create Virtual SCSI Adapter: tilakvio1
Virtual SCSI adapter

Adapter : 6

Type of adapter : Server

[ ] This adapter is required for partition activation.

( ) Any client partition can connect

(•) Only selected client partition can connect
Client partition : aixtest(03)

Client adapter ID : 04

Click on OK

To make the Virtual SCSI Adapter for VIO Permanently.

b. Once created make the same entry on
Login to HMC - Navigate to VIO server - Select the VIO server - Select Configuration - Manage Profile - Select the
profile - Goto Actions - Edit - Select Virtual Adapters - Actions - Create Virtual Adapter - SCSI Adapter

Put exactly the same as we created through DLPAR above and click on OK.

Where,

Create Virtual SCSI Adapter: VIO Server name will be displayed
Adapter : Adapter ID (Leave it as default if you wish)
[ ] This adapter is required for partition activation. - Haven't selected this option, since i am not using it for
rootvg.

( ) Any client partition can connect - If this selected you can map it to any LPAR
 
(•) Only selected client partition can connect - Selected this option for it should map only to this LPAR and given
the details as below,
Client partition : aixtest(03) --> is my LPAR name and on the bracket it will auto display the LPAR ID, where i am
going to map

Client adapter ID : 04 - Leave it as default.

And notedown LPAR name Adapter ID and Client adapter ID.

 Save the profile.
__________________________________________________________________________________

For LPAR

Creating Virtual SCSI Adapter for LPAR Dynamically,

a. Login to HMC - Navigate to LPAR - Select the LPAR(aixtest(03)) - Select Dynamic Logical Partition - Select Virtual
Adapter - Goto Actions - Create Virtual Adapter - SCSI Adapter

Create Virtual SCSI Adapter: aixtest
Virtual SCSI adapter

Adapter : 04

Type of adapter : Client

Server partition : tilakvio1(1)

Server adapter ID : 6

Click on OK

Note: Here the adapter id and Server adapter ID should be matched as per we created the adapter on VIO.
VIOs Client adapter id should be the adapter ID in LPAR
VIOs Adapter id should be the Server adapter ID in LPAR.

Same should be updated in Managed Profile and Save the profile.

b. Login to HMC - Navigate to LPAR - Select the LPAR(aixtest(03)) - Select Configuration - Manage Profile - Select the
profile - Goto Actions - Edit - Select Virtual Adapters - Actions - Create Virtual Adapter - SCSI Adapter

__________________________________________________________________________________

Run configuration Manager on Both VIO and LPAR to get the Virtual Adapter

Now Run the cfgdev in VIO and cfgmgr on LPAR to get those adapters, And make a note of created vhost name and vscsi
name from Hardware profiles of VIO and LPAR.

Login to HMC - Navigate to VIO/LPAR - Virtual I/O Adapters - SCSI

On VIO
$ cfgdev
$ oem_setup_env
# lsdev -Cc adapter | grep -i vhost
vhost4    Available         Virtual SCSI Server Adapter

On LPAR
aixtest# cfgmgr
aixtest# lsdev -Cc adapter | grep -i vscsi
vscsi1 Available       Virtual SCSI Client Adapter

0 comments:

Post a Comment

Pages