檢視AIX基於HBA的儲存的WWN號

zhangsharp20發表於2016-01-19

[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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章