There is a drawback in Live partition Mobility .When there are fibre channel adapters in the frame laprs , always when mobility operation is performed the moving lpar is always using the first fibre channel adapter.
If you have more lpars in the frames it would be make your work worst ,fibre channel switch port can be saturated.
With the new release of PowerVM, you can now choose the destination fibre channel adapter and all lpars can be distributed among all fibre channel adapters.
Here is an example : all virtual fibre channel adapters are mapped on the same fibre channel adapter : fcs0 is mapped to seven virtual fibre channel adapters, and fcs1 to none, this is a result of multiple mobility operations :
If you have more lpars in the frames it would be make your work worst ,fibre channel switch port can be saturated.
With the new release of PowerVM, you can now choose the destination fibre channel adapter and all lpars can be distributed among all fibre channel adapters.
Prerequisites
Be sure Hardware Management Console and Virtual I/O Server are up to date with the latest version :- Hardware Management Console version has to be 7.6.0 :
# lshmc -V
"version= Version: 7
Release: 7.6.0
Service Pack: 1
HMC Build level 20121109.1
","base_version=V7R7.5.0
- Source and destination Virtual I/O Servers have to be 2.2.2.1 :
# ioslevel
2.2.2.1
Mobility
Here is an example : all virtual fibre channel adapters are mapped on the same fibre channel adapter : fcs0 is mapped to seven virtual fibre channel adapters, and fcs1 to none, this is a result of multiple mobility operations :
# lsnports
name physloc fabric tports aports swwpns awwpns
fcs0 U5803.001.9ZZ03PZ-P1-C2-T1 1 64 57 2048 2021
fcs1 U5803.001.9ZZ03PZ-P1-C2-T2 1 64 64 2048 2048
# lsmap -all -npiv | grep "FC name"
FC name:fcs0 FC loc code:U5803.001.9ZZ03PZ-P1-C2-T1
FC name:fcs0 FC loc code:U5803.001.9ZZ03PZ-P1-C2-T1
FC name:fcs0 FC loc code:U5803.001.9ZZ03PZ-P1-C2-T1
FC name:fcs0 FC loc code:U5803.001.9ZZ03PZ-P1-C2-T1
FC name:fcs0 FC loc code:U5803.001.9ZZ03PZ-P1-C2-T1
FC name:fcs0 FC loc code:U5803.001.9ZZ03PZ-P1-C2-T1
FC name:fcs0 FC loc code:U5803.001.9ZZ03PZ-P1-C2-T1
Choosing the destination fibre channel adapter can only be done using command line (I hope a dialog box will be available with the next Hardware Management Console release). You have to choose the destination adapter by your own :
- Before the mobility operation 64 aports are available on fcs5 on this Virtual I/O Server :
# lsnports
name physloc fabric tports aports swwpns awwpns
fcs2 U5803.001.9ZZ03PZ-P2-C2-T1 1 64 64 2048 2048
fcs3 U5803.001.9ZZ03PZ-P2-C2-T2 1 64 64 2048 2048
fcs4 U5803.001.9ZZ03PZ-P2-C3-T1 1 64 64 2048 2048
fcs5 U5803.001.9ZZ03PZ-P2-C3-T2 1 64 64 2048 2048
- The mobility operation is launched by the command line only, as you can see fibre channel adapter fcs5 is used on this mobility operation :
# migrlpar -o m -m P795-SRC -t P795-DST -p lpar-test -w 1 -i 'virtual_fc_mappings="10/vios1/15//fcs5,11/vios2/16//fcs5",source_msp_name=vios3,dest_msp_name=vios1,shared_proc_pool_name=shp_test'
- After the mobility operation 63 ports are available on fcs5 on the destination Virtual I/O Server :
# lsnports
name physloc fabric tports aports swwpns awwpns
fcs2 U5803.001.9ZZ03PZ-P2-C2-T1 1 64 64 2048 2048
fcs3 U5803.001.9ZZ03PZ-P2-C2-T2 1 64 64 2048 2048
fcs4 U5803.001.9ZZ03PZ-P2-C3-T1 1 64 64 2048 2048
fcs5 U5803.001.9ZZ03PZ-P2-C3-T2 1 64 63 2048 2045
Use case
After moving all my lpars from one machine to another here is the result : all lpars fibre channel adapters are distributed among all the real fibre channel adapters.
# lsnports
name physloc fabric tports aports swwpns awwpns
fcs0 U5803.001.9ZZ03PZ-P2-C6-T1 1 64 43 2048 1967
fcs1 U5803.001.9ZZ03PZ-P2-C6-T2 1 64 58 2048 2030
fcs4 U5803.001.9ZZ03PZ-P2-C8-T1 1 64 55 2048 2017
fcs5 U5803.001.9ZZ03PZ-P2-C8-T2 1 64 59 2048 2033
# /usr/ios/cli/ioscli lsmap -all -npiv | grep "FC name" | sort | uniq -c
12 FC name:fcs0 FC loc code:U5803.001.9ZZ03PZ-P2-C6-T1
8 FC name:fcs1 FC loc code:U5803.001.9ZZ03PZ-P2-C6-T2
8 FC name:fcs4 FC loc code:U5803.001.9ZZ03PZ-P2-C8-T1
9 FC name:fcs5 FC loc code:U5803.001.9ZZ03PZ-P2-C8-T2