You are on page 1of 3

Configuring MPIO Use the Following steps to set up the scenario: 1.

Create two Virtual I/O server partition and them VIO_Server1 and VIO_Server2. Creating virtual I/O server partition Select one Fiber Channel adapter in addition to the physical adapter. 2. Install the both VIO Servers using CD or NIM server. 3. Change the fc_err_recov to fast fail and dyntrk to yes attributes on the Fibre Channel adapters. lsdev type adapter command to find the number of channel adapter.
$ chdev -dev fscsi0 -attr fc_err_recov=fast_fail dyntrk=yes perm fscsi0 changed $ lsdev -dev fscsi0 -attr attribute value description user_settable attach switch How this adapter is CONNECTED False dyntrk yes Dynamic Tracking of FC Devices True fc_err_recov fast_fail FC Fabric Event Error RECOVERY Policy True scsi_id 0x660c00 Adapter SCSI ID False sw_fc_class 3 FC Class for Fabric True Important: If you have two or more Fibre Channel adapters per Virtual I/O Server you have to change the attributes for each of them. 4. Reboot the VIO Servers for the changes to the Fibre Channel devices to take effect. 5. Create the Client partition Shows the required virtual SCSI adapters based on the configuration shown in following Chart

VIO Server VIO_Server1 VIO_Server1 VIO_Server2 VIO_Server2

VIO Server Slot 30 40 30 40

Client Partition DB_Server Apps_Server DB_Server Apps_Server

Client Slot 21 21 22 22

6. Also add two virtual Ethernet adapters to each client to provide the highly available network access. One adapter if you plan on using SEA failover for network redundancy. 7. On VIO_Server1 and VIO_Server2 use the fget_config command to get the LUN to hdisk mappings.
# fget_config -vA ---dar0--User array name = 'FAST200' dac0 ACTIVE dac1 ACTIVE Disk DAC LUN Logical Drive utm 1 hdisk0 dac1 0 1

hdisk1 hdisk2 hdisk3 hdisk4 hdisk5

dac0 dac0 dac1 dac1 dac0

2 3 4 5 6

2 4 3 5 6

You can also use the lsdev -dev hdiskn -vpd command, where n is the hdisk number, to retrieve this information

8. The disk are to be accessed though both VIO Servers. The reserve_policy for each disk must be set to no_reserve on VIO_Server1 and VIO_Server2. $ chdev -dev hdisk2 -attr reserve_policy=no_reserve hdisk2 changed $ chdev -dev hdisk3 -attr reserve_policy=no_reserve hdisk3 changed 9. Check using the lsdev command, to make sure reserve_policy attribute is now set to no_reserve
$ lsdev -dev hdisk2 -attr attribute value description user_settable PR_key_value none Persistant Reserve Key Value True cache_method fast_write Write Caching method False ieee_volname 600A0B8000110D0E0000000E47436859 IEEE Unique volume name False lun_id 0x0003000000000000 Logical Unit Number False max_transfer 0x100000 Maximum TRANSFER Size True prefetch_mult 1 Multiple of blocks to prefetch on read False pvid none Physical volume identifier False q_type simple Queuing Type False queue_depth 10 Queue Depth True raid_level 5 RAID Level False reassign_to 120 Reassign Timeout value True reserve_policy no_reserve Reserve Policy True rw_timeout 30 Read/Write Timeout value True scsi_id 0x660a00 SCSI ID False size 20480 Size in Mbytes False write_cache yes Write Caching enabled False

10.Double check both Virtual I/O Servers that the vhost adapters have the correct slot numbers by running the lsmap -all command. 11.Map the hdisks to the vhost adapters using the mkvdev command $ mkvdev -vdev hdisk2 -vadapter vhost0 -dev app_server app_server Available $ mkvdev -vdev hdisk3 -vadapter vhost1 -dev db_server db_server Available 12. Install the AIX OS in client partitions.

Configuring MPIO in the client partitions

1. Check the MPIO configuration by running the commands shown in # lspv # lsdev -Cc disk hdisk0 Available Virtual SCSI Disk Drive

2. Run the lspath command to verify that the disk is attached using two different paths.
shows hat hdisk0 is attached using the VSCSI0 and VSCSI1 adapter that point to different Virtual I/O servers. Both Virtual I/O Servers are up and running. Both paths are enabled. # lspath Enabled hdisk0 vscsi0 Enabled hdisk0 vscsi1 3. Enable the health check mode for the disk so that the status of the disks is automatically updated
# chdev -l hdisk0 -a hcheck_interval=20 -P hdisk0 changed

You might also like