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

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

提示

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

升级

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

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

主机侧

版本与补丁要求

要求支持HP-UX 11i v3 Update 4(11.31.0903)及后续版本。

查看操作系统版本的命令如下。

bash-4.1# swlist | grep HPUX11i
  HPUX11i-DC-OE                 B.11.31.1403   HP-UX Data Center Operating Environment
bash-4.1#

如上所示,就是HP-UX 11i v3 1403版本。

启用多路径

使用的是操作系统自带的NMP多路径软件,默认开启,不需要额外设置。

可以使用下面的命令来检查LUN的负载均衡策略和LUN的ALUA开关。

bash-4.1# scsimgr get_attr -D /dev/rdisk/disk24 -a load_bal_policy

        SCSI ATTRIBUTES FOR LUN : /dev/rdisk/disk24

name = load_bal_policy
current = round_robin
default = round_robin
saved =

bash-4.1#
bash-4.1# scsimgr get_attr -D /dev/rdisk/disk24 -a alua_enabled

        SCSI ATTRIBUTES FOR LUN : /dev/rdisk/disk24

name = alua_enabled
current = true
default = true
saved =

bash-4.1#

如上所示,负载均衡策略是round-robin,并且已经开启了ALUA。

说明:

disk24是配置连通性后,映射过来的LUN所创建的设备文件。

配置多路径

采用默认配置即可,可使用如下命令查看磁盘的路径信息和LUN的属性。

bash-4.1# scsimgr lun_map -D /dev/rdisk/disk24

        LUN PATH INFORMATION FOR LUN : /dev/rdisk/disk24

Total number of LUN paths     = 4
World Wide Identifier(WWID)    = 0x69c37f410096bdb8246d2a0b0000007c

LUN path : lunpath20
Class                         = lunpath
Instance                      = 20
Hardware path                 = 0/0/0/7/0/0/0/5/0/0/1.0x201a9c37f496bdb8.0x4003000000000000
SCSI transport protocol       = fibre_channel
State                         = STANDBY
Last Open or Close state      = STANDBY

LUN path : lunpath21
Class                         = lunpath
Instance                      = 21
Hardware path                 = 0/0/0/7/0/0/0/5/0/0/1.0x20019c37f496bdb8.0x4003000000000000
SCSI transport protocol       = fibre_channel
State                         = ACTIVE
Last Open or Close state      = ACTIVE

LUN path : lunpath22
Class                         = lunpath
Instance                      = 22
Hardware path                 = 0/0/0/7/0/0/0/5/0/0/0.0x20019c37f496bdb8.0x4003000000000000
SCSI transport protocol       = fibre_channel
State                         = ACTIVE
Last Open or Close state      = ACTIVE

LUN path : lunpath23
Class                         = lunpath
Instance                      = 23
Hardware path                 = 0/0/0/7/0/0/0/5/0/0/0.0x201a9c37f496bdb8.0x4003000000000000
SCSI transport protocol       = fibre_channel
State                         = STANDBY
Last Open or Close state      = STANDBY

bash-4.1#

bash-4.1# scsimgr get_info -D /dev/rdisk/disk24

        STATUS INFORMATION FOR LUN : /dev/rdisk/disk24

Generic Status Information

SCSI services internal state                  = ONLINE
Device type                                   = Direct_Access
EVPD page 0x83 description code               = 1
EVPD page 0x83 description association        = 0
EVPD page 0x83 description type               = 3
World Wide Identifier (WWID)                  = 0x69c37f410096bdb8246d2a0b0000007c
Serial number                                 = "210235982610F40000170124"
Vendor id                                     = "HUAWEI  "
Product id                                    = "XSG1            "
Product revision                              = "4303"
Other properties                              = ""
SPC protocol revision                         = 6
Open count (includes chr/blk/pass-thru/class) = 1
Raw open count (includes class/pass-thru)     = 1
Pass-thru opens                               = 0
LUN path count                                = 4
Active LUN paths                              = 2
Standby LUN paths                             = 2
Failed LUN paths                              = 0
Maximum I/O size allowed                      = 2097152
Preferred I/O size                            = 2097152
Outstanding I/Os                              = 1
I/O load balance policy                       = round_robin
Transient time period                         = 120
Tracing buffer size                           = 1024
LUN Path used when policy is path_lockdown    = NA
LUN access type                               = T10 Asymmetric Active-Active
Asymmetric logical unit access supported      = Implicit
Asymmetric states supported                   = ao_sup, an_sup, u_sup
Preferred paths reported by device            = Yes
Preferred LUN paths                           = 0
LUN Path used when policy is preferred_path   = NA

Driver esdisk Status Information :

Capacity in number of blocks                      = 209715200
Block size in bytes                               = 512
Number of active IOs                              = 0
Special properties                                =
Maximum number of IO retries                      = 45
IO transfer timeout in secs                       = 30
FORMAT command timeout in secs                    = 86400
START UNIT command timeout in secs                = 60
Timeout in secs before starting failing IO        = 120
IO infinite retries                               = false
bash-4.1#

在上面显示的内容中,可以查看LUN的如下属性:

  • State

    路径状态。State=ACTIVE的路径对应AO路径,State=STANDBY的路径对应AN路径,说明ALUA配置已经生效。

    当存储系统映射给主机的LUN上没有任何业务的时候,主机上的路径状态会变成“UNOPEN”。此时只需要执行一下硬件扫描命令或者是对映射的LUN进行读写操作就可以恢复成“ACTIVE”的状态。

  • LUN access type

    T10 Asymemetric Active-Active就表示支持ALUA。

  • Asymmetric logical unit access supported

    如果启用了ALUA,则该项会显示其支持的ALUA的类型:

    • Implicit:表示LUN支持的是Implicit(隐式)ALUA模式。
    • Explicit:表示LUN支持的是Explicit(显式)ALUA模式。
翻译
下载文档
更新时间:2019-09-12

文档编号:EDOC1000158279

浏览量:23339

下载量:1068

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