其他分享
首页 > 其他分享> > NetApp FAS FC相关基础配置案例

NetApp FAS FC相关基础配置案例

作者:互联网

背景

近期某代理商去一用户现场实施一台FAS2720,由于对环境及配置不是很熟悉,仅做了简单的初始化,本着对用户负责人的态度,后期我这边过去把他们前期不完善的工作进行了梳理并且完善了所有后续工作,简单记录,仅做参考。

环境及需求概述

设备信息:FAS2750,24*1.2T SAS
前期工作:完成初始化集群,划分磁盘归属(保证高可靠性的前提下最大化利用空间),创建AGGR及SVM
大致拓扑:
在这里插入图片描述

操作流程

1.环境摸排:简单摸排了下,标准的VMWare服务器虚拟化环境挂载FC存储,原来使用HP MSA的SAN存储,目前替换为NetApp

2.连线及配置查看:物理连线没问题,配置存在较大问题,主要为相关命名不规范,部分配置混乱等,下面做详细阐述,另外关于FAS系列的标准初始化流程及相关经验和建议,会另外写文章说明

3.首先是相关命名的规范化,具体包括(以下命令用户名称均替换为xxxxx):

system node rename -node Xxxxx-03 -newname xxxxx-02
xxxxx::> cluster show
Node                  Health  Eligibility
--------------------- ------- ------------
xxxxx-01              true    true
xxxxx-02              true    true
2 entries were displayed.
xxxxx::> network interface modify -vserver xxxxx -lif xxxxx-02_mgmt_auto -service-policy default-management -address 10.33.99.79 -netmask 255.255.255.128 -home-node xxxxx-02 -home-port e0M 
xxxxx::> network interface show
            Logical    Status     Network            Current       Current Is
Vserver     Interface  Admin/Oper Address/Mask       Node          Port    Home
----------- ---------- ---------- ------------------ ------------- ------- ----
Cluster
            xxxxx-01_clus1 
                         up/up    169.254.202.20/16  lonza-01      e0a     true
            xxxxx-01_clus2 
                         up/up    169.254.239.168/16 lonza-01      e0b     true
            xxxxx-02_clus1 
                         up/up    169.254.34.102/16  lonza-02      e0a     true
            xxxxx-02_clus2 
                         up/up    169.254.181.89/16  lonza-02      e0b     true
lonza
            cluster_mgmt up/up    10.33.99.77/25     lonza-01      e0M     true
            xxxxx-01_mgmt_auto 
                         up/up    10.33.99.78/25     lonza-01      e0M     true
            xxxxx-02_mgmt_auto 
                         up/up    10.33.99.79/25     lonza-02      e0M     true
7 entries were displayed.
xxxxx::> system service-processor network modify -node xxxxx-01 -address-family IPv4 -enable true -ip-address 10.33.99.75 -netmask 255.255.255.128
xxxxx::> system service-processor show
                               IP           Firmware
Node          Type Status      Configured   Version   IP Address
------------- ---- ----------- ------------ --------- -------------------------
xxxxx-01      BMC  online      true         11.5      10.33.99.75
xxxxx-02      BMC  online      true         11.5      10.33.99.76
2 entries were displayed.

至此相关基础配置完成,良好的地址及命令规划对于后期的进一步配置及排错有重要意义。

4.完成基础话配置后发现光纤线交换机那头亮黄灯,拔出模块一看果然插到NetApp 10Gb模块上了-_-||,插回16Gb FC模块,两头都不良,由于NetApp是UTA2口,根据模块不同兼容FC及以太网模块,但默认工作在cna模式(即以太网模式),需要改为fc模式

xxxxx::> ucadmin show 
                       Current  Current    Pending  Pending    Admin
Node          Adapter  Mode     Type       Mode     Type       Status
------------  -------  -------  ---------  -------  ---------  -----------
xxxxx-01      0c       cna      target     -        -          online
xxxxx-01      0d       cna      target     -        -          online
xxxxx-01      0e       cna      target     -        -          online
xxxxx-01      0f        cna      target     -        -          online
xxxxx-02      0c        cna      target     -        -          online
xxxxx-02      0d        cna      target     -        -          online
xxxxx-02      0e        cna      target     -        -          online
xxxxx-02      0f        cna      target     -        -          online
8 entries were displayed.
xxxxx::> network fcp adapter modify -node xxxxx-01 -adapter 0e -status-admin down

xxxxx::> ucadmin modify -node xxxxx-01 -adapter 0e -mode fc              

Warning: Mode on adapter 0e and also adapter 0f will be changed to fc.
Do you want to continue? {y|n}: y
Any changes will take effect after rebooting the system. Use the "system node reboot" command to reboot.

xxxxx::> network fcp adapter show
                      Connection  Port    Admin    Operational
Node         Adapter  Established Address Status   Status
------------ -------- ----------- ------- -------- ---------------
xxxxx-01     0c       false       0       up       link not connected
xxxxx-01     0d       false       0       up       link not connected
xxxxx-01     0e       true        11700   up       online
xxxxx-01     0f       true        11700   up       online
xxxxx-02     0c       false       0       up       link not connected
xxxxx-02     0d       false       0       up       link not connected
xxxxx-02     0e       true        11500   up       online
xxxxx-02     0f       true        11500   up       online
8 entries were displayed.

5.端口确定正常后创建Interface,最终实际用来真实通信的是Interface的WWPN,注意service policy需要选择block,配置完成后记录WWPN

xxxxx::> network interface create -vserver CNSZNTAP2_FC -lif FC1_1 -service-policy default-data-blocks -role data -data-protocol fcp -home-node xxxxx-01 -home-port 0e -status-admin up 
xxxxx::> network interface show
            Logical    Status     Network            Current       Current Is
Vserver     Interface  Admin/Oper Address/Mask       Node          Port    Home
----------- ---------- ---------- ------------------ ------------- ------- ----
CNSZNTAP2_FC
            FC1_1        up/up    20:06:d0:39:ea:27:61:e8 
                                                     xxxxx-01      0e      true
            FC1_2        up/up    20:07:d0:39:ea:27:61:e8 
                                                     xxxxx-01      0f      true
            FC2_1        up/up    20:09:d0:39:ea:27:61:e8 
                                                     xxxxx-02      0e      true
            FC2_2        up/up    20:08:d0:39:ea:27:61:e8 
                                                     xxxxx-02      0f      true

6.准备配置交换机,HP SAN交换机就是Brocade的贴牌,配置与Brocade完成类似,看了下之前的配置,是用的端口划分的Zone,由于是替换存储,继续使用原端口,因此配置几乎不需要变更(若使用WWPN号划分的Zone就需要重新配置Alias,Group,Zone等,在此不多阐述)

swd77:admin> zoneshow
Defined configuration:
 cfg:   CFG     STORAGE1_SZVMVSP01A; STORAGE1_SZVMVSP02A; STORAGE1_SZVMVSP03A; 
                STORAGE1_SZVMVSP04A; STORAGE2_SZVMVSP01A; STORAGE2_SZVMVSP02A; 
                STORAGE2_SZVMVSP03A; STORAGE2_SZVMVSP04A; 
                CNSZNTAP01_SZVMVSP01A; CNSZNTAP01_SZVMVSP02A; 
                CNSZNTAP01_SZVMVSP03A; CNSZNTAP01_SZVMVSP04A
 zone:  CNSZNTAP01_SZVMVSP01A
                CNSZNTAP01; SZVMVSP01A
 zone:  CNSZNTAP01_SZVMVSP02A
                CNSZNTAP01; SZVMVSP02A
 zone:  CNSZNTAP01_SZVMVSP03A
                CNSZNTAP01; SZVMVSP03A
 zone:  CNSZNTAP01_SZVMVSP04A
                CNSZNTAP01; SZVMVSP04A
 zone:  STORAGE1_SZVMVSP01A
                1,0; 1,2
 zone:  STORAGE1_SZVMVSP02A
                1,0; 1,3
 zone:  STORAGE1_SZVMVSP03A
                1,0; 1,4
 zone:  STORAGE1_SZVMVSP04A
                STORAGE1; SZVMVSP04A
 zone:  STORAGE2_SZVMVSP01A
                1,1; 1,2
 zone:  STORAGE2_SZVMVSP02A
                1,1; 1,3
 zone:  STORAGE2_SZVMVSP03A
                1,1; 1,4
 zone:  STORAGE2_SZVMVSP04A
                STORAGE2; SZVMVSP04A
 alias: CNSZNTAP01
                20:02:00:a0:98:e5:7b:8d
 alias: STORAGE1
                1,0
 alias: STORAGE2
                1,1
 alias: SZVMVSP01A
                1,2
 alias: SZVMVSP02A
                1,3
 alias: SZVMVSP03A
                1,4
 alias: SZVMVSP04A
                1,5

Effective configuration:
 cfg:   CFG
 zone:  CNSZNTAP01_SZVMVSP01A
                20:02:00:a0:98:e5:7b:8d
                1,2
 zone:  CNSZNTAP01_SZVMVSP02A
                20:02:00:a0:98:e5:7b:8d
                1,3
 zone:  CNSZNTAP01_SZVMVSP03A
                20:02:00:a0:98:e5:7b:8d
                1,4
 zone:  CNSZNTAP01_SZVMVSP04A
                20:02:00:a0:98:e5:7b:8d
                1,5
 zone:  STORAGE1_SZVMVSP01A
                1,0
                1,2
 zone:  STORAGE1_SZVMVSP02A
                1,0
                1,3
 zone:  STORAGE1_SZVMVSP03A
                1,0
                1,4
 zone:  STORAGE1_SZVMVSP04A
                1,0
                1,5
 zone:  STORAGE2_SZVMVSP01A
                1,1
                1,2
 zone:  STORAGE2_SZVMVSP02A
                1,1
                1,3
 zone:  STORAGE2_SZVMVSP03A
                1,1
                1,4
 zone:  STORAGE2_SZVMVSP04A
                1,1
                1,5

7.至此基础配置基本完成,接下来直接NetApp Web UI中配置即可(这部分未做截图,简单叙述),由于SVM已经创建:

xxxxx::> lun show
Vserver   Path                            State   Mapped   Type        Size
--------- ------------------------------- ------- -------- -------- --------
CNSZNTAP2_FC 
          /vol/CNSZLUN03/CNSZLUN03        online  mapped   vmware        5TB
CNSZNTAP2_FC 
          /vol/CNSZLUN04/CNSZLUN04        online  mapped   vmware        5TB
2 entries were displayed.

简单总结

整个过程省略了不少排错的过程,也有不少需要注意的细节的地方,仅做简单记录

标签:02,01,zone,true,FAS,up,FC,NetApp,xxxxx
来源: https://blog.csdn.net/sjj222sjj/article/details/112972814