PowerVM 存储特性NPIV实例介绍:
PowerVM 存储特性NPIV实例介绍:
首先检查 SAN 光纤交换机是否支持 NPIV 特性,如果必要更新交换机微码,本例使用一台支持 NPIV 的 IBM 2498 B24 光纤交换机。
以下 portcfgshow 命令检查光纤交换机是否支持 NPIV 特性:
tivstorage1:admin> portcfgshow
Ports of Slot 0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-----------------+--+--+--+--+----+--+--+--+----+--+--+--+----+--+--+--
Speed AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN
AL_PA Offset 13 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Trunk Port ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON
Long Distance .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
VC Link Init .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Locked L_Port .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Locked G_Port .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Disabled E_Port .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
ISL R_RDY Mode .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
RSCN Suppressed .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Persistent Disable.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
NPIV capability ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON
QOS E_Port ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON
Mirror Port .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Rate Limit .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Credit Recovery ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON
Port Auto Disable .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Ports of Slot 0 16 17 18 19 20 21 22 23
-----------------+--+--+--+--+----+--+--+--
Speed AN AN AN AN AN AN AN AN
AL_PA Offset 13 .. .. .. .. .. .. .. ..
Trunk Port ON ON ON ON ON ON ON ON
Long Distance .. .. .. .. .. .. .. ..
VC Link Init .. .. .. .. .. .. .. ..
Locked L_Port .. .. .. .. .. .. .. ..
Locked G_Port .. .. .. .. .. .. .. ..
Disabled E_Port .. .. .. .. .. .. .. ..
ISL R_RDY Mode .. .. .. .. .. .. .. ..
RSCN Suppressed .. .. .. .. .. .. .. ..
Persistent Disable.. .. .. .. .. .. .. ..
NPIV capability ON ON ON ON ON ON ON ON
QOS E_Port ON ON ON ON ON ON ON ON
Mirror Port .. .. .. .. .. .. .. ..
Rate Limit .. .. .. .. .. .. .. ..
Credit Recovery ON ON ON ON ON ON ON ON
Port Auto Disable .. .. .. .. .. .. .. ..
接着检查 Power6 机器的相关属性,确保该机器支持 NPIV 功能,
本例通过 HMC 来显示一台机器的属性,选项“Virtual Fibre Channel Capable”显示为”True”, 代表该机器符合硬件要求,
查看WWPN
在 VIOS 上执行 lsdev – dev vfchost* 命令查看虚拟光纤卡 , 列出所有的已定义的虚拟光纤卡
$ lsdev -dev vfchost* name status description vfchost0 Available Virtual FC Server Adapter
接着执行 lsdev 命令查看所有的物理光纤卡 , 列出所有的物理虚拟光纤卡
$ lsdev -dev fcs*
name status description
fcs0 Available 4Gb FC PCI Express Adapter (df1000fe)
fcs1 Available 4Gb FC PCI Express Adapter (df1000fe)
fcs2 Available 8Gb PCI Express Dual Port FC Adapter (df1000fl14108a03)
fcs3 Available 8Gb PCI Express Dual Port FC Adapter (df1000fl14108a03)
执行 lsnports 命令查看所有可以适用于 NPIV 的端口
$ lsnports name physloc fabric tports aports swwpns awwpns fcs3 U7830.001.DMDYKYM-P1-C6-T2 1 64 63 2048 2046
最后执行 lsmap -npiv -all 命令查看映射的结果
$ lsmap -npiv -all Name Physloc ClntID ClntName ClntOS ============= ================================== ====== ============== ======= vfchost0 U9117.MMA.122F170-V1-C31 6 AIX61 AIX Status:LOGGED_IN FC name:fcs3 FC loc code:U789D.001.DQDYKYW-P1-C6-T2 Ports logged in:1 Flags:a<LOGGED_IN,STRIP_MERGE> VFC client name:fcs0 VFC client DRC:U9117.MMA.122F170-V3-C31-T1
启动vioc
命令:
powerrmt display dev=all