AIX VIOS NPIV support

Login VIOS as padmin

$ lsnports
name             physloc                        fabric tports aports swwpns  awwpns
fcs1             U78CD.001.FZH6167-P1-C2-T2          1     64     64   3088    3088
fcs2             U78CD.001.FZH6167-P1-C4-T1          0     64     64   3088    3087
fcs3             U78CD.001.FZH6167-P1-C4-T2          1     64     64   3088    3088
fcs4             U78CD.001.FZH6167-P2-C1-T1          0     64     64   3088    3087
fcs5             U78CD.001.FZH6167-P2-C1-T2          1     64     64   3088    3088
fcs7             U78CD.001.FZH6167-P2-C4-T2          1     64     64   3088    3088

If the value for the ‘fabric’ parameter shows as ‘0’ that means that HBA port is not connected to a SAN switch supporting the NPIV feature. Please connect fiber cable between Physical fibre channel adapter and San switches.

If the value for the ‘fabric’ parameter shows as ‘1’ that means that HBA port is connected to a SAN switch supporting the NPIV feature 


$ lsdev -vpd | grep vfchos
  vfchost3         U9119.MHE.10ABD50-V1-C106                                       Virtual FC Server Adapter
  vfchost2         U9119.MHE.10ABD50-V1-C105                                       Virtual FC Server Adapter
  vfchost1         U9119.MHE.10ABD50-V1-C104                                       Virtual FC Server Adapter
  vfchost0         U9119.MHE.10ABD50-V1-C103                                       Virtual FC Server Adapter


Share a HD in VIOS with multiple LPARs

# for i in 3 4 5 8 9          
> do
> chdev -l hdisk${i} -a pv=clear
> chdev -l hdisk${i} -a pv=yes
> chdev -l hdisk${i} -a reserve_policy=no_reserve
> done
hdisk3 changed
hdisk3 changed
hdisk3 changed
hdisk4 changed
hdisk4 changed
hdisk4 changed
hdisk5 changed
hdisk5 changed
hdisk5 changed
hdisk8 changed
hdisk8 changed
hdisk8 changed
hdisk9 changed
hdisk9 changed
hdisk9 changed

$ mkvdev -f -vdev hdisk3 -vadapter vhost0 -dev p1_hd3
p1_hd3 Available
$ mkvdev -f -vdev hdisk3 -vadapter vhost1 -dev p2_hd3
p2_hd3 Available
$ mkvdev -f -vdev hdisk3 -vadapter vhost2 -dev p3_hd3
p3_hd3 Available
$ mkvdev -f -vdev hdisk3 -vadapter vhost3 -dev p4_hd3
p4_hd3 Available
$ lsmap -all |more
SVSA            Physloc                                      Client Partition ID
--------------- -------------------------------------------- ------------------
vhost0          U9119.MHE.10ABD50-V1-C203                    0x00000003

VTD                   p1_hd3
Status                Available
LUN                   0x8400000000000000
Backing device        hdisk3
Physloc               U78CD.001.FZH6167-P2-C1-T1-W500507630713512C-L4000400000000000
Mirrored              false

Comments

Popular posts from this blog

VIOS TIPs

Configure Solaris 10 LDOM on Solaris 11.4

Change P410i from HBA mode to Raid mdoe