メインコンテンツまでスキップ

AIX hdisk と NetApp LUN のマッピングを確認するにはどうすればよいですか。

Views:
682
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
san
Last Updated:

環境

  • SAN
  • FlexPod

回答

次の例は、どの AIX hdisk がどの NetApp LUN を使用しているかを確認する方法を示しています。ここでは、 AIX にマッピングされている NetApp LUN を確認します。hdisk6をクリックします。お客様が AIX Host Utility Kit をインストールしていないため、 AIX ネイティブコマンドを使用して詳細情報を取得します。

AIX サーバコマンド:

このコマンドは、 NetApp WWPN 、 AIX hdisk 、 NetApp LUN ID を表示します。

aix-cn22:/# lscfg |grep NetApp
* hdisk6           U0.1-P1-I6/Q1-W500A098196981B83-L5000000000000  MPIO NetApp FCP Default PCM Disk   ----> NETAPP WWPN and Lun id 5 (L5).
* hdisk7           U0.1-P1-I6/Q1-W500A098196981B83-L0              MPIO NetApp FCP Default PCM Disk   ----> NETAPP WWPN and Lun id 0 (L0).
* hdisk10          U0.1-P1-I6/Q1-W500A098196981B83-LF000000000000  MPIO NetApp FCP Default PCM Disk   ----> NETAPP WWPN and Lun id 15 (LF).
* hdisk11          U0.1-P1-I6/Q1-W500A098196981B83-LB000000000000  MPIO NetApp FCP Default PCM Disk   ----> NETAPP WWPN and Lun id 11 (LB).
* hdisk12          U0.1-P1-I6/Q1-W500A098196981B83-L1000000000000  MPIO NetApp FCP Default PCM Disk   ----> NETAPP WWPN and Lun id 1 (L1).
* hdisk2                                                           NetApp iSCSI LUN
* hdisk3                                                           NetApp iSCSI LUN
* hdisk9                                                           MPIO NetApp iSCSI Disk
aix-cn22:/#

このコマンドは、この AIX サーバにインストールされている FC アダプタを表示します。

aix-cn22:/ lsdev -C |grep FC
fcs0         Available 1V-08         FC Adapter
fcs1         Available 1n-08         FC Adapter
fscsi0       Available 1V-08-01      FC SCSI I/O Controller Protocol Device
fscsi1       Available 1n-08-02      FC SCSI I/O Controller Protocol Device
hdisk4       Defined   1V-08-01      MPIO NetApp FCP Default PCM Disk
hdisk5       Defined   1V-08-01      MPIO NetApp FCP Default PCM Disk
hdisk6       Available 1V-08-01      MPIO NetApp FCP Default PCM Disk
hdisk7       Available 1V-08-01      MPIO NetApp FCP Default PCM Disk
hdisk8       Defined   1n-08-02      MPIO NetApp FCP Default PCM Disk
hdisk10      Available 1V-08-01      MPIO NetApp FCP Default PCM Disk
hdisk11      Available 1V-08-01      MPIO NetApp FCP Default PCM Disk
hdisk12      Available 1V-08-01      MPIO NetApp FCP Default PCM Disk
hdisk14      Defined   1V-08-01      MPIO NetApp FCP Default PCM Disk

次のコマンドを実行すると、 FC アダプタの WWPN が表示されます。

aix-cn22:/# lscfg -vl fcs0
  fcs0             U0.1-P1-I6/Q1  FC Adapter

     Part Number.................00P4295
     EC Level....................A
     Serial Number...............1F351094BC
     Manufacturer................001F
     Customer Card ID Number.....5704
     FRU Number..................00P4297
     Device Specific.(ZM)........3
     Network Address.............10000000C9375B9A ----> WWPN of the FCS0 adapter on the AIX server, match this with the igroup show output on the Filer.
     ROS Level and ID............02E01974
     Device Specific.(Z0)........2003806D
     Device Specific.(Z1)........00000000
     Device Specific.(Z2)........00000000
     Device Specific.(Z3)........03000909
     Device Specific.(Z4)........FF601410
     Device Specific.(Z5)........02E01974
     Device Specific.(Z6)........06631974
     Device Specific.(Z7)........07631974
     Device Specific.(Z8)........20000000C9375B9A
     Device Specific.(Z9)........HS1.91X4
     Device Specific.(ZA)........H1D1.91X4
     Device Specific.(ZB)........H2D1.91X4
     Device Specific.(ZC)........00000000
     Hardware Location Code......U0.1-P1-I6/Q1
-------------------------------------------------------------------------------

: AIX Host Utility Kit がインストールされている場合は、次のコマンドを実行するとディスクから LUN へのマッピング情報が表示されます。

aix-cn22:/# sanlun fcp show adapter

fcs0         WWPN:10000000c9375b9a

aix-cn22:/#sanlun lun show
    filer:           lun-pathname        device filename  adapter  protocol          lun size         lun state
fas3050cl2-cn:  /vol/aix/lun/hdisk12.lun  hdisk7           fcs0     FCP            2g (2147483648)     GOOD
fas3050cl2-cn:  /vol/lun/lunaix           hdisk6           fcs0     FCP        555.0g (595933003776)   GOOD
fas3050cl2-cn:  /vol/aix/lun/hdisk15.lun  hdisk10          fcs0     FCP           25g (26843545600)    GOOD
fas3050cl2-cn:  /vol/aix/lun/hdisk11.lun  hdisk11          fcs0     FCP            5g (5368709120)     GOOD
fas3050cl2-cn:  /vol/aix/lun/db12_SdLun   hdisk12          fcs0     FCP          2.0g (2168455168)     GOOD
aix-cn22:/#
--------------------------------------------------------------------------------

ONTAP ストレージ

cluster1::> fcp show adapter
Slot:               0c
Description:        Fibre Channel Target Adapter 0c (Dual-channel, QLogic 2322 (2362) rev. 3)
Adapter Type:       Local
Status:             ONLINE
FC Nodename:        50:0a:09:80:86:98:1b:83 (500a098086981b83)
FC Portname:        50:0a:09:81:96:98:1b:83 (500a098196981b83)
Standby:            No

Slot:               0d
Description:        Fibre Channel Target Adapter 0d (Dual-channel, QLogic 2322 (2362) rev. 3)
Adapter Type:       Local
Status:             ONLINE
FC Nodename:        50:0a:09:80:86:98:1b:83 (500a098086981b83)
FC Portname:        50:0a:09:82:96:98:1b:83 (500a098296981b83)
Standby:            No

cluster1::> igroup show
        aix (FCP) (ostype: aix):
        10:00:00:00:c9:37:5b:9a (logged in on: 0c)

cluster1::> lun show -v
 /vol/lun/lunaix            555.0g (595933003776)  (r/w, online, mapped)
                Serial#: C4iQiJMWJEac
                Share: none
                Space Reservation: enabled
                Multiprotocol Type: aix
                Maps: aix=5

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.