[root@aix209:/]#lsdev -Cc adapter -S a|grep fcs
fcs1 Available 1Z-08 FC Adapter
--aix209的光纤设备名为fcs1
[root@aix209:/]#lscfg -vpl fcs1
fcs1 U0.1-P2-I4/Q1 FC Adapter
Part Number.................LP10000-E
Serial Number...............VM60124261
Network Address.............10000000C9516047
ROS Level and ID............02881951
Device Specific.(Z0)........1001206D
Device Specific.(Z1)........00000000
Device Specific.(Z2)........00000000
Device Specific.(Z3)........03000909
Device Specific.(Z4)........FF801410
Device Specific.(Z5)........02881951
Device Specific.(Z6)........06831951
Device Specific.(Z7)........07831951
Device Specific.(Z8)........20000000C9516047
Device Specific.(Z9)........TS1.91A1
Device Specific.(ZA)........T1D1.91A1
Device Specific.(ZB)........T2D1.91A1
Device Specific.(ZC)........00000000
Hardware Location Code......U0.1-P2-I4/Q1
PLATFORM SPECIFIC
Name: fibre-channel
Model: LP10000
Node: fibre-channel@1
Device Type: fcp
Physical Location: U0.1-P2-I4/Q1
其中标红的Network Address即是此光纤卡的wwn号,以同样方式查看aix210光纤卡的wwn号:Network Address.............10000000C952494A。
(2)绑定wwn号:
:/:<33>lun perm lun 0 rw wwn 10000000C9516047
:/:<34>lun perm lun 0 rw wwn 10000000C952494A
(3)查看绑定结果
:/:<36>lun perm list
lun slice WWN Group Name Group Perm WWN Perm Effective Perm
-------------------------------------------------------------------------------
0 0 default -- -- none none
0 0 10000000c952494a -- -- rw rw
0 0 0000000c9516047 -- -- rw rw
-------------------------------------------------------------------------------
主机与lun号绑定完成之后,用此命令检测新硬件:
[root@aix209:/]#cfgmgr
[root@aix209:/]#lspv
hdisk0 00096b0da9b9d168 rootvg active
hdisk3 none None
若主机未能自动识别设备的id号,可以通过以下命令来手动识别。
[root@aix209:/]#chdev -l hdisk3 -a pv=yes
hdisk3 changed
[root@aix209:/]#lspv
hdisk0 00096b0da9b9d168 rootvg active
hdisk3 00096b0d02c9629a None
注:hdisk0是主机的本地盘,hdisk3即是刚划过来的盘,那串码是该设备的id号,两台主机对应的设备名可能不同,但id号一定相同,所以可以通过此id号判断哪块设备是用来创建并发卷组的。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29802484/viewspace-1979338/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29802484/viewspace-1979338/