Netapp存储映射到AIX操作系统操作手册解读
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Netapp存储映射到AIX操作系统操作手册
Netapp存储属于中高端的存储系统,它的FAS6220系统属于常见的带有FC和NAS功能的综合性存储,今天记录并讲解如何在AIX系统安装并操作NetAPP的多路径软件和lun磁盘的识别,查看;
步骤如下;
1,解压软件包tar.z
Zcat ntap_aix_host_utilities_5.1.tar.Z |tar -xvf -
2, 安装:installp +参数+路径+fileset
先安装MPIO,然后安装santools_kit
[tsm2:/tmp/ntap_aix_host_utilities_5.1/MPIO#]installp -aXYd /tmp/ntap_aix_host_utilities_5.1/MPIO NetApp.MPIO_Host_Utilities_Kit
+-----------------------------------------------------------------------------+
Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...
SUCCESSES
---------
Filesets listed in this section passed pre-installation verification
and will be installed.
Selected Filesets
-----------------
NetApp.MPIO_Host_Utilities_Kit.config 5.1.0.0 # NetApp MPIO PCM Host Utilities Kit Path Config Tool
NetApp.MPIO_Host_Utilities_Kit.fcp 5.1.0.0 # NetApp MPIO PCM Host Utiliti... NetApp.MPIO_Host_Utilities_Kit.iscsi 5.1.0.0 # NetApp MPIO PCM Host Utilities Kit iSCSI Disk ODM Stanzas
NetApp.MPIO_Host_Utilities_Kit.pcmodm 5.1.0.0 # NetApp MPIO PCM Host Utilities Kit PCM Friend ODM Stanzas
<< End of Success Section >>
+-----------------------------------------------------------------------------+
BUILDDATE Verification ...
+-----------------------------------------------------------------------------+
Verifying build dates...done
FILESET STATISTICS
------------------
4 Selected to be installed, of which:
4 Passed pre-installation verification
----
4 Total to be installed
0503-409 installp: bosboot verification starting...
installp: bosboot verification completed.
+-----------------------------------------------------------------------------+
Installing Software...
+-----------------------------------------------------------------------------+
installp: APPL YING software for:
NetApp.MPIO_Host_Utilities_Kit.pcmodm 5.1.0.0
NetApp.MPIO_Host_Utilities_Kit.iscsi 5.1.0.0
NetApp.MPIO_Host_Utilities_Kit.fcp 5.1.0.0
NetApp.MPIO_Host_Utilities_Kit.config 5.1.0.0
. . . . . << Copyright notice for NetApp.MPIO_Host_Utilities_Kit >> . . . . . . . Copyright (c) 2003-2010 NetApp, Inc.
. . . . . << End of copyright notice for NetApp.MPIO_Host_Utilities_Kit >>. . . .
sysck: 3001-036 WARNING: File
/opt/NetApp/MPIO_Host_Utilities_Kit/NOTICE.PDF
is also owned by fileset NetApp.MPIO_Host_Utilities_Kit.iscsi. sysck: 3001-036 WARNING: File
/opt/NetApp/MPIO_Host_Utilities_Kit/NOTICE.TXT
is also owned by fileset NetApp.MPIO_Host_Utilities_Kit.iscsi. Finished processing all filesets. (Total time: 6 secs).
0503-409 installp: bosboot verification starting...
installp: bosboot verification completed.
0503-408 installp: bosboot process starting...
bosboot: Boot image is 42972 512 byte blocks.
0503-292 This update will not fully take effect until after a
system reboot.
* * * A T T E N T I O N * * *
System boot image has been updated. You should reboot the
system as soon as possible to properly integrate the changes
and to avoid disruption of current functionality.
installp: bosboot process completed.
+-----------------------------------------------------------------------------+
Summaries:
+-----------------------------------------------------------------------------+
Installation Summary
--------------------
Name Level Part Event Result
-------------------------------------------------------------------------------
NetApp.MPIO_Host_Utilities_ 5.1.0.0 USR APPL Y SUCCESS NetApp.MPIO_Host_Utilities_ 5.1.0.0 USR APPL Y SUCCESS NetApp.MPIO_Host_Utilities_ 5.1.0.0 USR APPL Y SUCCESS NetApp.MPIO_Host_Utilities_ 5.1.0.0 USR APPL Y SUCCESS [tsm2:/tmp/ntap_aix_host_utilities_5.1/MPIO#]lslpp -l |grep -i netapp
NetApp.MPIO_Host_Utilities_Kit.config
5.1.0.0 COMMITTED NetApp MPIO PCM Host Utilities NetApp.MPIO_Host_Utilities_Kit.fcp
5.1.0.0 COMMITTED NetApp MPIO PCM Host Utilities NetApp.MPIO_Host_Utilities_Kit.iscsi
5.1.0.0 COMMITTED NetApp MPIO PCM Host Utilities NetApp.MPIO_Host_Utilities_Kit.pcmodm
5.1.0.0 COMMITTED NetApp MPIO PCM Host Utilities [tsm2:/tmp/ntap_aix_host_utilities_5.1/MPIO#]cd ..
[tsm2:/tmp/ntap_aix_host_utilities_5.1#]pwd
/tmp/ntap_aix_host_utilities_5.1
[tsm2:/tmp/ntap_aix_host_utilities_5.1#]ls
MPIO SAN SAN_Tool_Kit
[tsm2:/tmp/ntap_aix_host_utilities_5.1#]cd *it
[tsm2:/tmp/ntap_aix_host_utilities_5.1/SAN_Tool_Kit#]pwd
/tmp/ntap_aix_host_utilities_5.1/SAN_Tool_Kit
[tsm2:/tmp/ntap_aix_host_utilities_5.1/SAN_Tool_Kit#]installp -aXYd /tmp/ntap_aix_host_utilities_5.1/MPIO NetApp.MPIO_Host_Utilities_Kit
[tsm2:/tmp/ntap_aix_host_utilities_5.1/SAN_Tool_Kit#]installp -aXYd /tmp/ntap_aix_host_utilities_5.1/SAN_Tool_Kit
[tsm2:/tmp/ntap_aix_host_utilities_5.1/SAN_Tool_Kit#]ls
NetApp.SAN_toolkit
[tsm2:/tmp/ntap_aix_host_utilities_5.1/SAN_Tool_Kit#]installp -aXYd /tmp/ntap_aix_host_utilities_5.1/SAN_Tool_Kit NetApp.SAN_toolkit
+-----------------------------------------------------------------------------+
Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...
SUCCESSES
---------
Filesets listed in this section passed pre-installation verification
and will be installed.
Selected Filesets
-----------------
NetApp.SAN_toolkit.sanlun 5.1.0.0 # NetApp SAN Toolkit sanlun << End of Success Section >>
+-----------------------------------------------------------------------------+
BUILDDATE Verification ...
+-----------------------------------------------------------------------------+
Verifying build dates...done
FILESET STATISTICS
------------------
1 Selected to be installed, of which:
1 Passed pre-installation verification
----
1 Total to be installed
+-----------------------------------------------------------------------------+
Installing Software...
+-----------------------------------------------------------------------------+
installp: APPL YING software for:
NetApp.SAN_toolkit.sanlun 5.1.0.0
. . . . . << Copyright notice for NetApp.SAN_toolkit >> . . . . . . .
Copyright (c) 2003-2010 NetApp, Inc.
. . . . . << End of copyright notice for NetApp.SAN_toolkit >>. . . .
Finished processing all filesets. (Total time: 1 secs).
+-----------------------------------------------------------------------------+
Summaries:
+-----------------------------------------------------------------------------+
Installation Summary
--------------------
Name Level Part Event Result
-------------------------------------------------------------------------------
NetApp.SAN_toolkit.sanlun 5.1.0.0 USR APPL Y SUCCESS [tsm2:/tmp/ntap_aix_host_utilities_5.1/SAN_Tool_Kit#]
[tsm2:/tmp/ntap_aix_host_utilities_5.1/SAN_Tool_Kit#]
[tsm2:/tmp/ntap_aix_host_utilities_5.1/SAN_Tool_Kit#]
[tsm2:/tmp/ntap_aix_host_utilities_5.1/SAN_Tool_Kit#]
[tsm2:/tmp/ntap_aix_host_utilities_5.1/SAN_Tool_Kit#]
[tsm2:/tmp/ntap_aix_host_utilities_5.1/SAN_Tool_Kit#]which sanlun
/usr/bin/sanlun
[tsm2:/tmp/ntap_aix_host_utilities_5.1/SAN_Tool_Kit#]cd /opt/NetApp
[tsm2:/opt/NetApp#]ls
MPIO_Host_Utilities_Kit santools
[tsm2:/opt/NetApp#]cd santools
[tsm2:/opt/NetApp/santools#]ls
NOTICE.PDF NOTICE.TXT bin man
[tsm2:/opt/NetApp/santools#]cd bin
[tsm2:/opt/NetApp/santools/bin#]ls
san_version sanlun
[tsm2:/opt/NetApp/santools/bin#]sanlun lun show
no controller LUNs available
[tsm2:/opt/NetApp/santools/bin#]
[tsm2:/opt/NetApp/santools/bin#]
[tsm2:/opt/NetApp/santools/bin#]cfgmgr -v #存储那边配置好,映射好后,AIX开始扫描cfgmgr is running in phase 2
[tsm2:/opt/NetApp/santools/bin#]
[tsm2:/opt/NetApp/santools/bin#]
[tsm2:/opt/NetApp/santools/bin#]lspv
hdisk0 00c59412a7d7466a rootvg active
hdisk1 00c3afa442c5c5f6 rootvg active
hdisk2 none None
hdisk3 none None
hdisk4 none None
hdisk5 none None
hdisk6 none None
hdisk7 none None
hdisk8 none None
hdisk9 none None
hdisk10 none None
hdisk11 none None
[tsm2:/opt/NetApp/santools/bin#]用sanlun 命令查看
其实还需要设置磁盘属性,要看netapp的官方文档设置deep ,queue_depth等;
[tsm2:/opt/NetApp/santools/bin#]sanlun lun show
controller: lun-pathname device filename adapter protocol lun size lun state
FAS6220-2A: /vol/lun1_aix_tsm_vol/aix_tsm_06 hdisk10 fcs0 FCP 500.1g (536952700928) GOOD
FAS6220-2A: /vol/lun1_aix_tsm_vol/aix_tsm_07 hdisk11 fcs0 FCP 500.1g (536952700928) GOOD
FAS6220-2A: /vol/lun1_aix_tsm_vol/aix_tsm_00 hdisk4 fcs0 FCP 500.1g (536952700928) GOOD
FAS6220-2A: /vol/lun1_aix_tsm_vol/aix_tsm_01 hdisk5 fcs0 FCP 500.1g (536952700928) GOOD
FAS6220-2A: /vol/lun1_aix_tsm_vol/aix_tsm_02 hdisk6 fcs0 FCP 500.1g (536952700928) GOOD
FAS6220-2A: /vol/lun1_aix_tsm_vol/aix_tsm_03 hdisk7 fcs0 FCP 500.1g (536952700928) GOOD
FAS6220-2A: /vol/lun1_aix_tsm_vol/aix_tsm_04 hdisk8 fcs0 FCP 500.1g (536952700928) GOOD
FAS6220-2A: /vol/lun1_aix_tsm_vol/aix_tsm_05 hdisk9 fcs0 FCP 500.1g (536952700928) GOOD
[tsm2:/opt/NetApp/santools/bin#]lsdev -Cc disk
hdisk0 Available 01-08-00 SAS Disk Drive
hdisk1 Available 01-08-00 SAS Disk Drive
hdisk2 Available 01-08-00 SAS Disk Drive
hdisk3 Available 01-08-00 SAS Disk Drive
hdisk4 Available 05-00-02 MPIO NetApp FCP Default PCM Disk
hdisk5 Available 05-00-02 MPIO NetApp FCP Default PCM Disk
hdisk6 Available 05-00-02 MPIO NetApp FCP Default PCM Disk
hdisk7 Available 05-00-02 MPIO NetApp FCP Default PCM Disk
hdisk8 Available 05-00-02 MPIO NetApp FCP Default PCM Disk
hdisk9 Available 05-00-02 MPIO NetApp FCP Default PCM Disk
hdisk10 Available 05-00-02 MPIO NetApp FCP Default PCM Disk
hdisk11 Available 05-00-02 MPIO NetApp FCP Default PCM Disk
[tsm2:/opt/NetApp/santools/bin#]sanlun lun show -p # -p 参数查看多路径状态
ONTAP_PATH: FAS6220-2A:/vol/lun1_aix_tsm_vol/aix_tsm_05
LUN: 5
LUN Size: 500.1g (536952700928)
Host Device: hdisk9
LUN State: GOOD
Controller_CF_State: Cluster Enabled
Controller Partner: FAS6220-2B
Multipath Provider: AIX Native
Multipathing Algorithm: round_robin
--------- ----------- ------ ------ ----------- ----------
MPIO Controller AIX Controller AIX MPIO path path MPIO host target HBA path status type path HBA port priority
--------- ----------- ------ ------ ----------- ----------
Enabled primary path0 fcs0 0a 1 Enabled secondary path1 fcs0 0a 1 Enabled primary path2 fcs0 1c 1 Enabled secondary path3 fcs0 1a 1 Enabled primary path4 fcs2 0b 1 Enabled secondary path5 fcs2 0b 1 Enabled primary path6 fcs2 1a 1 Enabled secondary path7 fcs2 1c 1
ONTAP_PATH: FAS6220-2A:/vol/lun1_aix_tsm_vol/aix_tsm_04 LUN: 4
LUN Size: 500.1g (536952700928)
Host Device: hdisk8
LUN State: GOOD
Controller_CF_State: Cluster Enabled
Controller Partner: FAS6220-2B
Multipath Provider: AIX Native
Multipathing Algorithm: round_robin
--------- ----------- ------ ------ ----------- ----------
MPIO Controller AIX Controller AIX MPIO path path MPIO host target HBA path status type path HBA port priority
--------- ----------- ------ ------ ----------- ----------
Enabled primary path0 fcs0 0a 1 Enabled secondary path1 fcs0 0a 1 Enabled primary path2 fcs0 1c 1 Enabled secondary path3 fcs0 1a 1 Enabled primary path4 fcs2 0b 1 Enabled secondary path5 fcs2 0b 1 Enabled primary path6 fcs2 1a 1 Enabled secondary path7 fcs2 1c 1
ONTAP_PATH: FAS6220-2A:/vol/lun1_aix_tsm_vol/aix_tsm_03 LUN: 3
LUN Size: 500.1g (536952700928)
Host Device: hdisk7
LUN State: GOOD
Controller_CF_State: Cluster Enabled
Controller Partner: FAS6220-2B
Multipath Provider: AIX Native
Multipathing Algorithm: round_robin
--------- ----------- ------ ------ ----------- ----------
MPIO Controller AIX Controller AIX MPIO path path MPIO host target HBA path status type path HBA port priority
--------- ----------- ------ ------ ----------- ----------
Enabled primary path0 fcs0 0a 1 Enabled secondary path1 fcs0 0a 1 Enabled primary path2 fcs0 1c 1 Enabled secondary path3 fcs0 1a 1 Enabled primary path4 fcs2 0b 1 Enabled secondary path5 fcs2 0b 1 Enabled primary path6 fcs2 1a 1 Enabled secondary path7 fcs2 1c 1
ONTAP_PATH: FAS6220-2A:/vol/lun1_aix_tsm_vol/aix_tsm_02 LUN: 2
LUN Size: 500.1g (536952700928)
Host Device: hdisk6
LUN State: GOOD
Controller_CF_State: Cluster Enabled
Controller Partner: FAS6220-2B
Multipath Provider: AIX Native
Multipathing Algorithm: round_robin
--------- ----------- ------ ------ ----------- ----------
MPIO Controller AIX Controller AIX MPIO path path MPIO host target HBA path status type path HBA port priority
--------- ----------- ------ ------ ----------- ----------
Enabled primary path0 fcs0 0a 1 Enabled secondary path1 fcs0 0a 1 Enabled primary path2 fcs0 1c 1 Enabled secondary path3 fcs0 1a 1 Enabled primary path4 fcs2 0b 1 Enabled secondary path5 fcs2 0b 1 Enabled primary path6 fcs2 1a 1 Enabled secondary path7 fcs2 1c 1
ONTAP_PATH: FAS6220-2A:/vol/lun1_aix_tsm_vol/aix_tsm_01 LUN: 1
LUN Size: 500.1g (536952700928)
Host Device: hdisk5
LUN State: GOOD
Controller_CF_State: Cluster Enabled
Controller Partner: FAS6220-2B
Multipath Provider: AIX Native
Multipathing Algorithm: round_robin
--------- ----------- ------ ------ ----------- ----------
MPIO Controller AIX Controller AIX MPIO path path MPIO host target HBA path status type path HBA port priority
--------- ----------- ------ ------ ----------- ----------
Enabled primary path0 fcs0 0a 1 Enabled secondary path1 fcs0 0a 1 Enabled primary path2 fcs0 1c 1 Enabled secondary path3 fcs0 1a 1 Enabled primary path4 fcs2 0b 1 Enabled secondary path5 fcs2 0b 1 Enabled primary path6 fcs2 1a 1 Enabled secondary path7 fcs2 1c 1
ONTAP_PATH: FAS6220-2A:/vol/lun1_aix_tsm_vol/aix_tsm_00 LUN: 0
LUN Size: 500.1g (536952700928)
Host Device: hdisk4
LUN State: GOOD
Controller_CF_State: Cluster Enabled
Controller Partner: FAS6220-2B
Multipath Provider: AIX Native
Multipathing Algorithm: round_robin
--------- ----------- ------ ------ ----------- ----------
MPIO Controller AIX Controller AIX MPIO path path MPIO host target HBA path status type path HBA port priority
--------- ----------- ------ ------ ----------- ----------
Enabled primary path0 fcs0 0a 1 Enabled secondary path1 fcs0 0a 1 Enabled primary path2 fcs0 1c 1 Enabled secondary path3 fcs0 1a 1 Enabled primary path4 fcs2 0b 1
Enabled secondary path5 fcs2 0b 1 Enabled primary path6 fcs2 1a 1 Enabled secondary path7 fcs2 1c 1
ONTAP_PATH: FAS6220-2A:/vol/lun1_aix_tsm_vol/aix_tsm_07 LUN: 7
LUN Size: 500.1g (536952700928)
Host Device: hdisk11
LUN State: GOOD
Controller_CF_State: Cluster Enabled
Controller Partner: FAS6220-2B
Multipath Provider: AIX Native
Multipathing Algorithm: round_robin
--------- ----------- ------ ------ ----------- ----------
MPIO Controller AIX Controller AIX MPIO path path MPIO host target HBA path status type path HBA port priority
--------- ----------- ------ ------ ----------- ----------
Enabled primary path0 fcs0 0a 1 Enabled secondary path1 fcs0 0a 1 Enabled primary path2 fcs0 1c 1 Enabled secondary path3 fcs0 1a 1 Enabled primary path4 fcs2 0b 1 Enabled secondary path5 fcs2 0b 1 Enabled primary path6 fcs2 1a 1 Enabled secondary path7 fcs2 1c 1
ONTAP_PATH: FAS6220-2A:/vol/lun1_aix_tsm_vol/aix_tsm_06 LUN: 6
LUN Size: 500.1g (536952700928)
Host Device: hdisk10
LUN State: GOOD
Controller_CF_State: Cluster Enabled
Controller Partner: FAS6220-2B
Multipath Provider: AIX Native
Multipathing Algorithm: round_robin
--------- ----------- ------ ------ ----------- ----------
MPIO Controller AIX Controller AIX MPIO path path MPIO host target HBA path status type path HBA port priority
--------- ----------- ------ ------ ----------- ----------
Enabled primary path0 fcs0 0a 1
Enabled secondary path1 fcs0 0a 1 Enabled primary path2 fcs0 1c 1 Enabled secondary path3 fcs0 1a 1 Enabled primary path4 fcs2 0b 1 Enabled secondary path5 fcs2 0b 1 Enabled primary path6 fcs2 1a 1 Enabled secondary path7 fcs2 1c 1
[tsm2:/opt/NetApp/santools/bin#]
[tsm2:/opt/NetApp/santools/bin#]。