AIX Live Partition Mobility on NPIV
id : a8jbp3crwf
category : computer
blog : unixlinux
created : 09/13/11 - 15:31:01

Terms :
  • VIOC = Vio client.
  • VIOS = Vio server.
  • LPM = Live partition mobility.
  • wwn = World wid name.
  • frame1 = first frame taking part on Live partition mobility.
  • frame2 = second frame taking part on Live partition mobility.
  • MSP = Mover service partition.

VIOC prerequisites :
  • Some prerequisites are needed on VIO client before starting an Live Partition Mobility migration :
    • Be sure zoning and masking are correctly configured one BOTH world wide names :

    • Most of the time there will be two virtual client fibre channel adapters. Check zoning and masking on second adapter :

    • You can check virtual world wide names through HMC with this command :
lssyscfg -r sys -F name
lssyscfg -r prof -m FRM11099B-P720-INFMIN-SILCA-DAL --filter "lpar_names=infnim3f3"
lssyscfg -r prof -m FRM11099B-P720-INFMIN-SILCA-DAL --filter "lpar_ids=5,"profile_names=infnim3f3""
name=infnim3f3,lpar_name=infnim3f3-silca,lpar_id=5,lpar_env=aixlinux,all_resources=0,min_mem=256,desired_mem=2048,max_mem=4096,min_num_huge_pages=0,desired_num_huge_pages=0,max_num_huge_pages=0,mem_mode=ded,hpt_ratio=1:64,proc_mode=shared,min_proc_units=0.1,desired_proc_units=0.1,max_proc_units=6.0,min_procs=1,desired_procs=1,max_procs=6,sharing_mode=uncap,uncap_weight=128,shared_proc_pool_id=0,shared_proc_pool_name=DefaultPool,affinity_group_id=none,io_slots=none,lpar_io_pool_ids=none,max_virtual_slots=2048,"virtual_serial_adapters=0/server/1/any//any/1,1/server/1/any//any/1",virtual_scsi_adapters=none,"virtual_eth_adapters=4/0/858//0/1/ETHERNET0//all/0,5/0/870//0/1/ETHERNET0//all/0","virtual_fc_adapters=""212/client/3/infvio21f2 - silca/2/c0507603cc7d0002,c0507603cc7d0003/0""",hca_adapters=none,boot_mode=norm,conn_monitoring=0,auto_start=0,power_ctrl_lpar_ids=none,work_group_id=none,redundant_err_path_reporting=0,bsr_arrays=0,lhea_logical_ports=none,lhea_capabilities=none,lpar_proc_compat_mode=default,electronic_err_reporting=null

    • Set all hdisk with no_reserve attribute :
infnim3f3@root /root#> chdev -l hdisk7 -a reserve_policy=no_reserve -P
infnim3f3@root /root#> chdev -l hdisk8 -a reserve_policy=no_reserve -P
infnim3f3@root /root#> chdev -l hdisk9 -a reserve_policy=no_reserve -P
infnim3f3@root /root#> chdev -l hdisk10 -a reserve_policy=no_reserve -P
infnim3f3@root /root#> chdev -l hdisk0 -a reserve_policy=no_reserve -P
infnim3f3@root /root#> shutdown -Fr 
infnim3f3@root /root#> for i in hdisk0 hdisk7 hdisk8 hdisk9 hdisk10 ; do echo ${i} ; lsattr -El ${i} | grep no_reserve ; done
hdisk0
reserve_policy  no_reserve             Reserve Policy                   True
hdisk7
reserve_policy  no_reserve                       Reserve Policy                   True
hdisk8
reserve_policy  no_reserve                       Reserve Policy                   True
hdisk9
reserve_policy  no_reserve                       Reserve Policy                   True
hdisk10
reserve_policy  no_reserve                       Reserve Policy                   True

    • Check virtual client fibre channel adapters are NOT REQUIRED :

    • Vio client have to talk with HMC, check all ports are opened, and check communication between Vio client and HMC
infnim3f3@root /root#> /usr/sbin/rsct/bin/rmcdomainstatus -s ctrmc
Management Domain Status: Management Control Points
  I A  0x8caa7a30b79bf972  0001  10.246.72.49
  I A  0x815f6b61a86b357f  0002  10.246.72.32

    • Reset rsct if you have problems :
infnim3f3@root /root#> /usr/sbin/rsct/install/bin/uncfgct -n
infnim3f3@root /root#> /usr/sbin/rsct/install/bin/cfgct
infnim3f3@root /root#> /usr/sbin/rsct/bin/rmcctrl -z
infnim3f3@root /root#> /usr/sbin/rsct/bin/rmcctrl -A
infnim3f3@root /root#> usr/sbin/rsct/bin/rmcctrl -p

    • Remove all vtopt devices on Vio client.

VIOS prerequisites :
    • Check virtual server fibre channel adapters are NOT REQUIERED :
      • Vio server 1 :

      • Vio server 2 :

    • Shared Ethernet Adapter have to be exactly the same on both Vio servers on each frame (source frame and destination frame):
      • Vio server 1 (frame1):
infvio20f1@root /home/padmin#> entstat -d ent6 | grep -i VLAN
VLAN Ids :
Invalid VLAN ID Packets: 0
Port VLAN ID:   870
VLAN Tag IDs:  None
Invalid VLAN ID Packets: 0
Port VLAN ID:  4094
VLAN Tag IDs:  None
infvio20f1@root /home/padmin#> entstat -d ent7 | grep -i VLAN
VLAN Ids :
Invalid VLAN ID Packets: 0
Port VLAN ID:   858
VLAN Tag IDs:  None
Invalid VLAN ID Packets: 0
Port VLAN ID:  4093
VLAN Tag IDs:  None

      • Vio server 2 (frame1) :
infvio20f2@root /home/padmin#> entstat -d ent6 | grep -i VLAN
VLAN Ids :
Invalid VLAN ID Packets: 0
Port VLAN ID:   870
VLAN Tag IDs:  None
Invalid VLAN ID Packets: 0
Port VLAN ID:  4094
VLAN Tag IDs:  None
infvio20f2@root /home/padmin#> entstat -d ent7 | grep -i VLAN
VLAN Ids :
Invalid VLAN ID Packets: 0
Port VLAN ID:   858
VLAN Tag IDs:  None
Invalid VLAN ID Packets: 0
Port VLAN ID:  4093
VLAN Tag IDs:  None


      • Vio server 1 (frame2) :
infvio21f2@root /home/padmin#> entstat -d ent6 | grep -i VLAN
VLAN Ids :
Invalid VLAN ID Packets: 0
Port VLAN ID:   870
VLAN Tag IDs:  None
Invalid VLAN ID Packets: 0
Port VLAN ID:  4094
VLAN Tag IDs:  None
infvio21f2@root /home/padmin#> entstat -d ent7 | grep -i VLAN
VLAN Ids :
Invalid VLAN ID Packets: 0
Port VLAN ID:   858
VLAN Tag IDs:  None
Invalid VLAN ID Packets: 0
Port VLAN ID:  4093
VLAN Tag IDs:  None

      • Vio server 2 (frame2) :
infvio21f1@root /home/padmin#> entstat -d ent6 | grep -i VLAN
VLAN Ids :
Invalid VLAN ID Packets: 0
Port VLAN ID:   870
VLAN Tag IDs:  None
Invalid VLAN ID Packets: 0
Port VLAN ID:  4094
VLAN Tag IDs:  None
infvio21f1@root /home/padmin#> entstat -d ent7 | grep -i VLAN
VLAN Ids :
Invalid VLAN ID Packets: 0
Port VLAN ID:   858
VLAN Tag IDs:  None
Invalid VLAN ID Packets: 0
Port VLAN ID:  4093
VLAN Tag IDs:  None
infvio21f1@root /home/padmin#>

  • Each frame (source and destination) needs to have an MSP (Mover Service Partition) :
    • Frame 1 :

    • Frame 2 :

  • This parameter can be checked trough HMC :
hscroot@infmc101:~> lssyscfg -r lpar -m FRM11099B-P720-INFMIN-SILCA-DAL -Fname,msp --header
name,msp
infnim3f3-silca,0
infnim3f1 - silca,0
infvio21f2 - silca,1
infvio21f1 - silca,1

  • 1 means this is an MSP.
  • Vio servers have to talk with HMC, check all ports are opened, and check communication between Vio client and HMC
    • frame 1 :
      • VIOS 1 :
infvio20f1@root /home/padmin#> /usr/sbin/rsct/bin/rmcdomainstatus -s ctrmc
Management Domain Status: Managed Nodes
Management Domain Status: Management Control Points
  I A  0x815f6b61a86b357f  0001  10.246.72.32
  I A  0x8caa7a30b79bf972  0002  10.246.72.49

      • VIOS 2 :
infvio20f2@root /home/padmin#> /usr/sbin/rsct/bin/rmcdomainstatus -s ctrmc
Management Domain Status: Managed Nodes
Management Domain Status: Management Control Points
  I A  0x815f6b61a86b357f  0001  10.246.72.32
  I A  0x8caa7a30b79bf972  0002  10.246.72.49

    • frame 2 :
      • VIOS 1 :
infvio21f1@root /home/padmin#> /usr/sbin/rsct/bin/rmcdomainstatus -s ctrmc
Management Domain Status: Managed Nodes
Management Domain Status: Management Control Points
  I A  0x8caa7a30b79bf972  0001  10.246.72.49
  I A  0x815f6b61a86b357f  0002  10.246.72.32

      • VIOS 2 :
infvio21f2@root /home/padmin#> /usr/sbin/rsct/bin/rmcdomainstatus -s ctrmc
Management Domain Status: Managed Nodes
Management Domain Status: Management Control Points
  I A  0x8caa7a30b79bf972  0001  10.246.72.49
  I A  0x815f6b61a86b357f  0002  10.246.72.32


Frames capabilites prerequisites :
    • Each frame taking part on LPM have to be "Active Partition Capable"
      • frame 1 :

      • frame 2 :


Let's migrate :
    • Start migration from source frame and perform a validation :

    • Choose destination frame and click on validate :

    • Check there are no errors and click on migrate :

    • Wait and enjoy :





    • VIOC is on destination frame :


Remote HMC migration :
  • If you plan to perfrom migration through a remote HMC run these commands and boths HMC participing in LPM :
hscroot@infmc101:~> mkauthkeys --ip 10.246.72.49 -u hscroot
hscroot@infmc101:~> mkauthkeys --ip 10.246.72.49 -u hscroot --test
hscroot@infmc101:~> echo $?
0

  • Here is an extract from mkauthkeys man page :
[..]
       To set up partition mobility operations from your user ID on this HMC to the HMC with host name hmc2 for the user hmc2user on HMC  hmc2  (you  will  be  prompted  for
       hmc2user's password):
       mkauthkeys --ip hmc2 -u hmc2user
[..]