所选语种没有对应资源,请选择:

本站点使用Cookies,继续浏览表示您同意我们使用Cookies。Cookies和隐私政策>

提示

尊敬的用户,您的IE浏览器版本过低,为获取更好的浏览体验,请升级您的IE浏览器。

升级

华为SAN存储在Solaris系统下的主机连通性指南

华为SAN存储在Solaris下的主机连通性指南
评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
操作系统自带多路径

操作系统自带多路径

本节中将重点介绍Solaris和华为存储系统建立连接时主机操作系统侧和存储侧的配置。

华为存储固件可以分为老版本和新版本,具体说明:

  • 老版本存储

    OceanStor T V1/T V2/18000 V1/V300R001/V300R002/V300R003C00/V300R003C10/V300R005/Dorado V300R001C00

  • 新版本存储

    OceanStor V500R007C00及后续版本/V300R003C20及后续版本/V300R006C00SPC100及后续版本/Dorado V300R001C01SPC100及后续版本

说明:

关于新版本、老版本的区分,请参见ALUA

华为新版本存储

存储侧

当非双活场景下使用操作系统自带多路径时,启动器需要勾选“使用第三方多路径”,如图6-5所示。

图6-5 勾选使用第三方多路径

“切换模式”及“路径类型”参数需要根据实际业务场景决定,具体推荐配置如表6-5所示。

表6-5 Solaris对接非双活华为存储上的配置

操作系统

存储系统上的配置

控制器数量

操作系统

使用第三方多路径

切换模式

特殊模式类型

路径类型

Solaris 10

Solaris 11

双控、多控

Solaris

勾选

通用ALUA

-

优选路径

Solaris 8

Solaris 9

双控、多控

Solaris

勾选

不使用ALUA

-

优选路径

1,Solaris支持的详细版本,参见华为存储兼容性列表

2,每次阵列上配置完启动器模式后,需要重启主机才能让新的配置生效!

3,以上的参数配置表为推荐的参数配置。部分场景下,客户可结合业务需要调整配置。

主机侧

Solaris 8/9

Solaris 10

Solaris 11

Solaris 8/9

对于Solaris 8和9版本需要手动安装多路径软件包。多路径软件的名称为StorageTek SAN Foundation。该软件最新版本为SAN 4.4。

软件更新历史及各个版本的安装说明文档可以从下面的地址中获取到:

http://www.oracle.com/technetwork/documentation/san-software-194281.html

目前,Solaris 8和9的应用相对很少了,而且Solaris 8和Solaris9已经停止维护。

本节针对于Solaris8和9的典型配置进行介绍。

Solaris8和9不支持ALUA特性,因此无论华为新版本存储还是老版本存储对接此版本的操作系统均需关闭ALUA,同时对操作系统多路径配置文件进行相应设置。主机系统上详细的配置步骤描述如下:

  1. 检测HBA卡驱动状态是否正常。

    在主机上执行命令cfgadm,检测HBA卡驱动状态是否正常。举例如下:

    bash-3.2# cfgadm
    Ap_Id             Type       Reseptacle      Occupant      Condition
    C0               scsi_bus    connected      configured         unknown
    C1               scsi_bus    connected      unconfigured         unknown
    C2               fc_private   connected      configured        unknown
    C3               fc_private   connected      configured        unknown

    如上所示,c2、c3的类型为“fc-private”代表两块HBA卡,且连接状态均为“connected”,驱动程序状态均为“configured”,说明驱动已经加载成功。如果该命令执行结果不是如上所示的状态,则说明系统自带HBA卡驱动未加载成功,执行重配置启动命令“reboot -r”,让系统重新自动加载HBA卡驱动。

    说明:

    cfgadm命令查询到HBA的Type值与HBA卡的组网方式相关。当HBA卡直接与存储相连时,Type值为fc-private;当HBA卡与交换机相连时,Type值为fc-fabric。

  2. 查询存储系统的Vendor ID和Product ID。

    主机上执行format命令,选定映射的磁盘后,选择inquiry菜单就可以查询到LUN的信息了。举例如下所示:

    bash-3.2# format
    Searching for disks...done
    
    
    AVAILABLE DISK SELECTIONS:
           0. c1t0d0 <FUJITSU-MAY2073RCSUN72G-0501 cyl 14087 alt 2 hd 24 sec 424>
              /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@0,0
           1. c1t1d0 <FUJITSU-MAY2073RCSUN72G-0501 cyl 14087 alt 2 hd 24 sec 424>
              /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@1,0
           2. c1t2d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
              /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@2,0
           3. c1t3d0 <FUJITSU-MAY2073RCSUN72G-0501 cyl 14087 alt 2 hd 24 sec 424>
              /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@3,0
           4. c7t28d0 <HUAWEI-S2600T-2102 cyl 10920 alt 2 hd 30 sec 64>
              /pci@1f,700000/pci@0/fibre-channel@2/fp@0,0/ssd@w2013323232323232,0
           5. c7t28d1 <HUAWEI-S2600T-2102 cyl 4367 alt 2 hd 30 sec 64>
              /pci@1f,700000/pci@0/fibre-channel@2/fp@0,0/ssd@w2013323232323232,1
           6. c8t4d0 <HUAWEI-S2600T-2102 cyl 10920 alt 2 hd 30 sec 64>
              /pci@1f,700000/pci@0/fibre-channel@2,1/fp@0,0/ssd@w2003323232323232,0
           7. c8t4d1 <HUAWEI-S2600T-2102 cyl 4367 alt 2 hd 30 sec 64>
              /pci@1f,700000/pci@0/fibre-channel@2,1/fp@0,0/ssd@w2003323232323232,1
    Specify disk (enter its number): 4
    selecting c7t28d0
    [disk formatted]
    
    
    FORMAT MENU:
            disk       - select a disk
            type       - select (define) a disk type
            partition  - select (define) a partition table
            current    - describe the current disk
            format     - format and analyze the disk
            repair     - repair a defective sector
            label      - write label to the disk
            analyze    - surface analysis
            defect     - defect list management
            backup     - search for backup labels
            verify     - read and display labels
            save       - save new disk/partition definitions
            inquiry    - show vendor, product and revision
            volname    - set 8-character volume name
            !<cmd>     - execute <cmd>, then return
            quit
    format> i      Vendor:   HUAWEI   Product:  S2600T          Revision: 2102
    format>

    如上所示,可以查询到LUN的Vendor ID为“HUAWEI”,Product ID为“S2600T”。

  3. 编辑/kernel/drv/scsi_vhci.conf文件,添加存储系统的Vendor ID和Product ID。

    举例如下:

    scsi-vhci-failover-override =
    "HUAWEI  S5500T", "f_sym",..."HUAWEI  S2600T", "f_sym";
    

    上面的内容中,我们添加了两类存储系统,分别是S5500T和S2600T。其中HUAWEI为存储系统的Vendor ID,S5500T和S2600T分别为两类存储系统的Product ID。

    Vendor ID部分必须占据8个字符位,不足8个的在末尾用空格补齐,Product ID部分有多少个字符就写多少个字符,后面不需要用空格补齐。

    各个Vendor ID/Product ID间用逗号分隔开,最后一个Vendor ID/Product ID以分号结尾。

  4. 编辑vi /kernel/drv/fp/conf文件, 将“mpxio-disable”的值修改为“no”后保存退出。
  5. 主机系统上执行命令stmsboot -e激活STMS功能。

    系统将提示您重新引导。在重新引导期间,/etc/vfstab文件和转储配置将更新,以反映设备名称更改。

    如果重新引导期间出现update //plat的字样,说明主机系统正在登陆官方服务器更新平台。

Solaris 10

从Solaris 10开始多路径软件合入操作系统的安装光盘中,默认就安装了,只是没有启用。针对存储侧是否开启ALUA,主机侧有两种不同的配置,客户根据实际业务是否启用ALUA,选择执行如下一种主机配置即可。

存储侧开启ALUA

存储侧不使用ALUA

存储侧开启ALUA

  1. 安装启用多路径。

    当存储系统上开启ALUA功能后,主机系统上不需要进行任何配置,直接运行命令stmsboot -D fp -e就可以了。

    操作举例如下。

    bash-3.2# stmsboot -D fp -e
    WARNING: This operation will require a reboot.
    Do you want to continue ? [y/n] (default: y) y
    The changes will come into effect after rebooting the system.
    Reboot the system now ? [y/n] (default: y) y
    updating /platform/sun4u/boot_archive

    上面的操作完成后,主机系统会重启一次。

    重启完成后,LUN的信息如下图所示。

    图6-6 Solaris上的LUN信息
    说明:

    路径格式为scsi_vhci就是多路径聚合后的路径信息。

  2. 配置多路径。

    华为存储系统开启ALUA后,主机侧多路径不需要额外的配置,启用即可。

  3. 检查与确认。

    存储映射LUN后,主机上扫描并查看LUN的信息,确保优选路径和非优选路径的数量和状态都是正确的,相关的检查命令如下所示。

    root@solarisx86:~# mpathadm show lu /dev/dsk/c0t6222222100222222000E25A800000004d0s2
    Logical Unit:  /dev/rdsk/c0t6222222100222222000E25A800000004d0s2
            mpath-support:  libmpscsi_vhci.so
            Vendor:  HUAWEI  
            Product:  XSG1            
            Revision:  4303
            Name Type:  unknown type
            Name:  6222222100222222000e25a800000004
            Asymmetric:  yes
            Current Load Balance:  round-robin
            Logical Unit Group ID:  NA
            Auto Failback:  on
            Auto Probing:  NA
    
            Paths:  
                    Initiator Port Name:  2100001b3210fbda
                    Target Port Name:  200800ac01020304
                    Override Path:  NA
                    Path State:  OK
                    Disabled:  no
    
                    Initiator Port Name:  2100001b3210fbda
                    Target Port Name:  2602222222222222
                    Override Path:  NA
                    Path State:  OK
                    Disabled:  no
    
                    Initiator Port Name:  2100001b3210fbda
                    Target Port Name:  2619222222222222
                    Override Path:  NA
                    Path State:  OK
                    Disabled:  no
    
                    Initiator Port Name:  2100001b3210fbda
                    Target Port Name:  202800ac01020304
                    Override Path:  NA
                    Path State:  OK
                    Disabled:  no
    
                    Initiator Port Name:  2101001b3230fbda
                    Target Port Name:  201800ac01020304
                    Override Path:  NA
                    Path State:  OK
                    Disabled:  no
    
                    Initiator Port Name:  2101001b3230fbda
                    Target Port Name:  2601222222222222
                    Override Path:  NA
                    Path State:  OK
                    Disabled:  no
    
                    Initiator Port Name:  2101001b3230fbda
                    Target Port Name:  2618222222222222
                    Override Path:  NA
                    Path State:  OK
                    Disabled:  no
    
                    Initiator Port Name:  2101001b3230fbda
                    Target Port Name:  203800ac01020304
                    Override Path:  NA
                    Path State:  OK
                    Disabled:  no
    
            Target Port Groups:  
                    ID:  33
                    Explicit Failover:  no
                    Access State:  active optimized
                    Target Ports:
                            Name:  200800ac01020304
                            Relative ID:  8193
    
                    ID:  1
                    Explicit Failover:  no
                    Access State:  active optimized
                    Target Ports:
                            Name:  2602222222222222
                            Relative ID:  23
    
                            Name:  2601222222222222
                            Relative ID:  22
    
                    ID:  2
                    Explicit Failover:  no
                    Access State:  active not optimized
                    Target Ports:
                            Name:  2619222222222222
                            Relative ID:  282
    
                            Name:  2618222222222222
                            Relative ID:  281
    
                    ID:  35
                    Explicit Failover:  no
                    Access State:  active not optimized
                    Target Ports:
                            Name:  202800ac01020304
                            Relative ID:  8705
    
                    ID:  34
                    Explicit Failover:  no
                    Access State:  active not optimized
                    Target Ports:
                            Name:  201800ac01020304
                            Relative ID:  8449
    
                    ID:  36
                    Explicit Failover:  no
                    Access State:  active not optimized
                    Target Ports:
                            Name:  203800ac01020304
                            Relative ID:  8961
    root@solarisx86:~#

    如上所示,有3条优选路径(Access State为active optimized的Target Ports),5条非优选路径(Access State为active not optimized的Target Ports)。

存储侧不使用ALUA

当存储系统上不使用ALUA的时候,主机系统上需要修改一下配置文件,然后多路径才能正常接管存储系统映射过来的LUN。

  1. 查看映射的存储系统的Vendor ID和Product ID。

    主机上执行format命令,选定映射的磁盘后,选择inquiry菜单就可以查询到LUN的信息了。举例如下所示:

    bash-3.2# format
    Searching for disks...done
    
    
    AVAILABLE DISK SELECTIONS:
           0. c1t0d0 <FUJITSU-MAY2073RCSUN72G-0501 cyl 14087 alt 2 hd 24 sec 424>
              /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@0,0
           1. c1t1d0 <FUJITSU-MAY2073RCSUN72G-0501 cyl 14087 alt 2 hd 24 sec 424>
              /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@1,0
           2. c1t2d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
              /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@2,0
           3. c1t3d0 <FUJITSU-MAY2073RCSUN72G-0501 cyl 14087 alt 2 hd 24 sec 424>
              /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@3,0
           4. c7t28d0 <HUAWEI-S2600T-2102 cyl 10920 alt 2 hd 30 sec 64>
              /pci@1f,700000/pci@0/fibre-channel@2/fp@0,0/ssd@w2013323232323232,0
           5. c7t28d1 <HUAWEI-S2600T-2102 cyl 4367 alt 2 hd 30 sec 64>
              /pci@1f,700000/pci@0/fibre-channel@2/fp@0,0/ssd@w2013323232323232,1
           6. c8t4d0 <HUAWEI-S2600T-2102 cyl 10920 alt 2 hd 30 sec 64>
              /pci@1f,700000/pci@0/fibre-channel@2,1/fp@0,0/ssd@w2003323232323232,0
           7. c8t4d1 <HUAWEI-S2600T-2102 cyl 4367 alt 2 hd 30 sec 64>
              /pci@1f,700000/pci@0/fibre-channel@2,1/fp@0,0/ssd@w2003323232323232,1
    Specify disk (enter its number): 4
    selecting c7t28d0
    [disk formatted]
    
    
    FORMAT MENU:
            disk       - select a disk
            type       - select (define) a disk type
            partition  - select (define) a partition table
            current    - describe the current disk
            format     - format and analyze the disk
            repair     - repair a defective sector
            label      - write label to the disk
            analyze    - surface analysis
            defect     - defect list management
            backup     - search for backup labels
            verify     - read and display labels
            save       - save new disk/partition definitions
            inquiry    - show vendor, product and revision
            volname    - set 8-character volume name
            !<cmd>     - execute <cmd>, then return
            quit
    format> i      
    Vendor:   HUAWEI   Product:  S2600T          
    Revision: 2102
    format>

    如上所示,可以查询到LUN的Vendor ID为“HUAWEI”,Product ID为“S2600T”。

  2. 主机系统上修改配置文件。

    Solaris 10系统上的多路径配置文件/kernel/drv/scsi_vhci.conf。该文件中,需要配置接管的LUN的Vendor ID和Product ID。

    一个配置好的文件内容显示如下:

    bash-3.2# cat /kernel/drv/scsi_vhci.conf 
    #
    # Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved.
    #
    #pragma ident   "@(#)scsi_vhci.conf     1.10    11/04/12 SMI"
    #
    name="scsi_vhci" class="root";
    #
    # Load balancing global configuration: setting load-balance="none" will cause
    # all I/O to a given device (which supports multipath I/O) to occur via one
    # path.  Setting load-balance="round-robin" will cause each path to the device
    # to be used in turn.
    #
    load-balance="round-robin";
    #
    # Automatic failback configuration
    # possible values are auto-failback="enable" or auto-failback="disable"
    auto-failback="enable";
    #
    # For enabling MPxIO support for 3rd party symmetric device need an
    # entry similar to following in this file. Just replace the "SUN     SENA"
    # part with the Vendor ID/Product ID for the device, exactly as reported by
    # Inquiry cmd.
    #
    device-type-scsi-options-list ="HUAWEI   S2600T", "symmetric-option";#symmetric-option = 0x1000000;
    #mpxio-disable="yes";
    #BEGIN: UPDATE_PATHSTATE_ON_RESET_BLOCK (DO NOT MOVE OR DELETE)
    #
    # Tunable for updating path states after a UNIT ATTENTION reset.
    # There are arrays which do not queue UAs during resets
    # after an implicit failover. For such arrays, we need to
    # update the path states after any type of UA resets, since
    # UA resets take higher precedence among other UNIT ATTENTION
    # conditions. By default, scsi_vhci does not update path states
    # on UA resets. To make scsi_vhci do that for such arrays, you need
    # to set the tunable scsi-vhci-update-pathstate-on-reset to "yes"
    # for the VID/PID combination as described below.
    #
    #       "012345670123456789012345",     "yes" or "no"
    #       "|-VID--||-----PID------|",
    # scsi-vhci-update-pathstate-on-reset =
    #       "Pillar  Axiom 600",            "yes";
    #
    #END: UPDATE_PATHSTATE_ON_RESET_BLOCK (DO NOT MOVE OR DELETE)
    bash-3.2#

    上面的内容中,我们需要关注的内容如下:

    • load-balance

      默认为round-robin模式,不需要修改。

    • auto-failback

      默认为enable,不需要修改。

    • 设备信息

      默认信息如下:

    ##device-type-scsi-options-list =#"SUN     SENA", "symmetric-option";##symmetric-option = 0x1000000;

    上面的内容中,“SUN SENA”这个字符串就是阵列的信息,前面部分表示Vendor ID,后面部分表示Product ID。

    这里我们需要去掉前面的注释符号(#),同时需要根据实际情况修改LUN的Vendor ID和Product ID。举例如下:

    device-type-scsi-options-list =
    "HUAWEI  S5500T", "symmetric-option",
    "HUAWEI  S2600T", "symmetric-option";
    #
    symmetric-option = 0x1000000;

    上面的内容中,我们添加了两类存储系统,分别是S5500T和S2600T。

    Vendor ID部分必须占据8个字符位,不足8个的在末尾用空格补齐,Product ID部分有多少个字符就写多少个字符,后面不需要用空格补齐。

    各个Vendor ID/Product ID间用逗号分隔开,最后一个Vendor ID/Product ID以分号结尾。

  3. 主机系统上激活STMS功能。

    同前面开启ALUA的步骤一样,这里在主机上执行命令stmsboot -D fp -e就可以激活STMS功能了。主机重启后,多路径即生效。

Solaris 11

针对存储侧是否开启ALUA,主机侧有两种不同的配置,客户根据实际业务是否启用ALUA,选择执行如下一种主机配置即可。

存储侧开启ALUA

存储侧不使用ALUA

存储侧开启ALUA

操作配置方法与Solaris 10上开启ALUA的方法一样,详见Solaris 10

存储侧不使用ALUA

与Solaris 10的配置相比,在Solaris 11上的配置步骤略有差异。

  1. 查询存储系统的Vendor ID和Product ID。

    主机上执行format命令,选定映射的磁盘后,选择inquiry菜单就可以查询到LUN的信息了。举例如下所示:

    root@solaris:~# format
    Searching for disks...done
    
    
    AVAILABLE DISK SELECTIONS:
           0. c2t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
              /pci@0/pci@0/pci@2/scsi@0/sd@0,0
           1. c2t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
              /pci@0/pci@0/pci@2/scsi@0/sd@1,0
           2. c2t2d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
              /pci@0/pci@0/pci@2/scsi@0/sd@2,0
           3. c2t3d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
              /pci@0/pci@0/pci@2/scsi@0/sd@3,0
           4. c2t5d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
              /pci@0/pci@0/pci@2/scsi@0/sd@5,0
           5. c3t201A9C37F496BDB8d1 <HUAWEI-XSG1-4303-100.00GB>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0/fp@0,0/ssd@w201a9c37f496bdb8,1
           6. c3t201A9C37F496BDB8d2 <HUAWEI-XSG1-4303 cyl 12798 alt 2 hd 64 sec 256>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0/fp@0,0/ssd@w201a9c37f496bdb8,2
           7. c3t20019C37F496BDB8d1 <HUAWEI-XSG1-4303-100.00GB>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0/fp@0,0/ssd@w20019c37f496bdb8,1
           8. c3t20019C37F496BDB8d2 <HUAWEI-XSG1-4303 cyl 12798 alt 2 hd 64 sec 256>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0/fp@0,0/ssd@w20019c37f496bdb8,2
           9. c4t201A9C37F496BDB8d1 <HUAWEI-XSG1-4303-100.00GB>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0,1/fp@0,0/ssd@w201a9c37f496bdb8,1
          10. c4t201A9C37F496BDB8d2 <HUAWEI-XSG1-4303 cyl 12798 alt 2 hd 64 sec 256>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0,1/fp@0,0/ssd@w201a9c37f496bdb8,2
          11. c4t20019C37F496BDB8d1 <HUAWEI-XSG1-4303-100.00GB>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0,1/fp@0,0/ssd@w20019c37f496bdb8,1
          12. c4t20019C37F496BDB8d2 <HUAWEI-XSG1-4303 cyl 12798 alt 2 hd 64 sec 256>
              /pci@0/pci@0/pci@8/pci@0/pci@2/QLGC,qlc@0,1/fp@0,0/ssd@w20019c37f496bdb8,2
    Specify disk (enter its number): 5
    selecting c3t201A9C37F496BDB8d1
    [disk formatted]
    
    
    FORMAT MENU:
            disk       - select a disk
            type       - select (define) a disk type
            partition  - select (define) a partition table
            current    - describe the current disk
            format     - format and analyze the disk
            repair     - repair a defective sector
            label      - write label to the disk
            analyze    - surface analysis
            defect     - defect list management
            backup     - search for backup labels
            verify     - read and display labels
            inquiry    - show disk ID
            volname    - set 8-character volume name
            !<cmd>     - execute <cmd>, then return
            quit
    format> i
    Vendor: HUAWEI
    Product: XSG1
    Revision: 4303
    Serial:
    format>
    

    如上所示,可以查询到LUN的Vendor ID为“HUAWEI”,Product ID为“XSG1”。

  2. 主机系统上将/kernel/drv/scsi_vhci.conf文件复制到/etc/driver/drv/scsi_vhci.conf 文件。
  3. 编辑/etc/driver/drv/scsi_vhci.conf文件,添加存储系统的Vendor ID和Product ID。

    一个配置好的文件内容显示如下:

    root@solaris:~# cat /etc/driver/drv/scsi_vhci.conf
    #
    # Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved.
    #
    #
    name="scsi_vhci" class="root";
    
    #
    # Load balancing global configuration: setting load-balance="none" will cause
    # all I/O to a given device (which supports multipath I/O) to occur via one
    # path.  Setting load-balance="round-robin" will cause each path to the device
    # to be used in turn.
    #
    load-balance="round-robin";
    
    #
    # Automatic failback configuration
    # possible values are auto-failback="enable" or auto-failback="disable"
    auto-failback="enable";
    
    #BEGIN: FAILOVER_MODULE_BLOCK (DO NOT MOVE OR DELETE)
    #
    # Declare scsi_vhci failover module paths with 'ddi-forceload' so that
    # they get loaded early enough to be available for scsi_vhci root use.
    #
    # NOTE: Correct operation depends on the value of 'ddi-forceload', this
    # value should not be changed. The ordering of entries is from
    # most-specific failover modules (with a "probe" implementation that is
    # completely VID/PID table based), to most generic (failover modules that
    # are based on T10 standards like TPGS). By convention the last part of a
    # failover module path, after "/scsi_vhci_", is called the
    # "failover-module-name", which begins with "f_" (like "f_asym_sun"). The
    # "failover-module-name" is also used in the override mechanism below.
    ddi-forceload =
            "misc/scsi_vhci/scsi_vhci_f_asym_sun",
            "misc/scsi_vhci/scsi_vhci_f_asym_lsi",
            "misc/scsi_vhci/scsi_vhci_f_asym_emc",
            "misc/scsi_vhci/scsi_vhci_f_sym_emc",
            "misc/scsi_vhci/scsi_vhci_f_sym_hds",
            "misc/scsi_vhci/scsi_vhci_f_sym",
    #       "misc/scsi_vhci/scsi_vhci_f_sym_enc",
    #       "misc/scsi_vhci/scsi_vhci_f_tpgs_tape",
    #       "misc/scsi_vhci/scsi_vhci_f_tape",
            "misc/scsi_vhci/scsi_vhci_f_tpgs";
    
    #
    # For a device that has a GUID, discovered on a pHCI with mpxio enabled, vHCI
    # access also depends on one of the scsi_vhci failover modules accepting the
    # device.  The default way this occurs is by a failover module's "probe"
    # implementation (sfo_device_probe) indicating the device is supported under
    # scsi_vhci.  To override this default probe-oriented configuration in
    # order to
    #
    #    1) establish support for a device not currently accepted under scsi_vhci
    #
    # or 2) override the module selected by "probe"
    #
    # or 3) disable scsi_vhci support for a device
    #
    # you can add a 'scsi-vhci-failover-override' tuple, as documented in
    # scsi_get_device_type_string(9F). For each tuple, the first part provides
    # basic device identity information (vid/pid) and the second part selects
    # the failover module by "failover-module-name". If you want to disable
    # scsi_vhci support for a device, use the special failover-module-name "NONE".
    # Currently, for each failover-module-name in 'scsi-vhci-failover-override'
    # (except "NONE") there needs to be a
    # "misc/scsi_vhci/scsi_vhci_<failover-module-name>" in 'ddi-forceload' above.
    #
    #       "                  111111"
    #       "012345670123456789012345",     "failover-module-name" or "NONE"
    #       "|-VID--||-----PID------|",
    # scsi-vhci-failover-override =
    #       "STK     FLEXLINE 400",         "f_asym_lsi",
    #       "SUN     T4",                   "f_tpgs",
    #       "CME     XIRTEMMYS",            "NONE";
    #
    #END: FAILOVER_MODULE_BLOCK (DO NOT MOVE OR DELETE)
    scsi-vhci-failover-override=
    "HUAWEI  XSG1","f_sym";
    
    #BEGIN: UPDATE_PATHSTATE_ON_RESET_BLOCK (DO NOT MOVE OR DELETE)
    #
    # Tunable for updating path states after a UNIT ATTENTION reset.
    # There are arrays which do not queue UAs during resets
    # after an implicit failover. For such arrays, we need to
    # update the path states after any type of UA resets, since
    # UA resets take higher precedence among other UNIT ATTENTION
    # conditions. By default, scsi_vhci does not update path states
    # on UA resets. To make scsi_vhci do that for such arrays, you need
    # to set the tunable scsi-vhci-update-pathstate-on-reset to "yes"
    # for the VID/PID combination as described below.
    #
    #       "012345670123456789012345",     "yes" or "no"
    #       "|-VID--||-----PID------|",
    #
    scsi-vhci-update-pathstate-on-reset =
            "Pillar  Axiom",                "yes",
            "Oracle  Oracle FS",            "yes";
    #
    #END: UPDATE_PATHSTATE_ON_RESET_BLOCK (DO NOT MOVE OR DELETE)
    
    #BEGIN: SPREAD_IPORT_RESERVATION_BLOCK
    #
    # Tunable for path selection optimization of SCSI reservation command. With
    # this optimization, a path with least busy initiator port will be selected
    # for a SCSI reservation command. If optimization is disabled scsi_vhci will
    # use load balancing policy "none" for SCSI reservation command's path
    # selection. Tunable spread-iport-reservation is used to establish the default
    # value. Its default value is "yes". To make scsi_vhci to turn off the
    # optimization globally, you need to set the tunable spread-iport-reservation
    # to "no". Tunable spread-iport-reservation-exceptions can describe exceptional
    # cases with the VID/PID combination specified, which has higher priority than
    # the tunable spread-iport-reservation.
    #
    spread-iport-reservation = "yes";
    #
    #       "012345670123456789012345",     "yes" or "no"
    #       "|-VID--||-----PID------|",
    # spread-iport-reservation-exceptions =
    #       "STK     T10000C",              "yes",
    #       "HP      Ultrium 4-SCSI",       "no";
    #
    # To find the least busy initiator port, traffic load of every initiator port
    # need to be monitored. One important traffic load metric is rlentime: the
    # cumulative run length*time product of every initiator port. Delta rlentime
    # of latest period of time is used to represent the historical traffic load.
    # The simultaneous snapshot rlentime of every initiator port is needed to
    # calculate the delta rlentime. Tunable iport-rlentime-snapshot-interval is
    # used to configure the time interval in seconds to create rlentime snapshot
    # of every initiator port. Its default value is 30 seconds.
    #
    iport-rlentime-snapshot-interval = 30;
    #
    #END: SPREAD_IPORT_RESERVATION_BLOCK
    
    #BEGIN: LSR_CLIENT_GRACE_PERIOD_BLOCK
    #
    # Keep the LSR suspended client device as attached for
    # lsr-client-lifetime seconds when all paths are LSR suspended.
    # During this extended lifetime, all I/O requests would be queued up. When the
    # extended lifetime is over, the I/O requests in the queue would be
    # re-processed with the client device detached.
    #
    # Setting this value to 0 will disable the feature.
    #
    # suspend-client-grace-period = 0;
    #
    #END: LSR_CLIENT_GRACE_PERIOD_BLOCK
    
    #BEGIN: NOTE_BLOCK
    # The VID fields above should contain exactly eight left-aligned ASCII
    # characters. If the VID is less than 8 characters, it should be padded with
    # spaces (ASCII 0x20) to 8 characters.
    #
    # The PID fields above should contain at most sixteen left-aligned ASCII
    # characters. The PID field has an implicit wild-card rule. The product ID
    # in the returned SCSI inquiry string is considered a match if it has the
    # PID field as its prefix. For example, "Pillar  Axiom" applies to both
    # the "Pillar  Axiom 600" and the "Pillar  Axiom 500".
    #
    #END: NOTE_BLOCK
    root@solaris:~#

    上面的内容中,我们添加了如下内容:存储系统XSG1。其中HUAWEI为存储系统的Vendor ID,XSG1为存储系统的Product ID。f_sym为配置文件中ddi-forceload中已有的failover-module-name。

    scsi-vhci-failover-override=
    "HUAWEI  XSG1","f_sym";

    Vendor ID部分必须占据8个字符位,不足8个的在末尾用空格补齐,Product ID部分有多少个字符就写多少个字符,后面不需要用空格补齐。

    各个Vendor ID/Product ID间用逗号分隔开,最后一个Vendor ID/Product ID以分号结尾。

  4. 主机系统上执行命令stmsboot -D fp -e激活STMS功能。如果已经激活了STMS功能,修改配置文件后执行stmsboot -u更新配置文件。

    系统将提示您重新引导。在重新引导期间,/etc/vfstab文件和转储配置将更新,以反映设备名称更改。

    如果重新引导期间出现update //plat的字样,说明主机系统正在登陆官方服务器更新平台。

华为老版本存储

存储侧

老版本存储仅支持双控ALUA,不支持多控ALUA及双活ALUA,存储侧默认推荐不开启ALUA,若要使用ALUA功能,可按如下方法启用:

  • T Series V100R005/Dorado2100/Dorado5100/Dorado2100 G2

    使用Huawei OceanStor ISM管理存储系统,并参照下图开启主机启动器的ALUA功能。

图6-7 开启T Series V100R005/Dorado2100/Dorado5100/Dorado2100 G2 ALUA功能

  • T Series V200R002/18000 Series/V3 Series/18000 V3 Series老版本

    使用Huawei OceanStor Device Manager管理存储系统,并参照下图步骤开启主机启动器的ALUA功能。

图6-8 开启T Series V200R002/18000 Series/V3 Series/18000 V3 Series ALUA功能
说明:

由于不支持多控ALUA,当存储控制器数>2的场景下,ALUA已默认关闭,不可修改。

主机侧

主机侧配置请参见主机侧

翻译
下载文档
更新时间:2019-08-22

文档编号:EDOC1000158280

浏览量:25965

下载量:1315

平均得分:
本文档适用于这些产品
相关版本
相关文档
Share
上一页 下一页