S3200存储对接HP-UX系统时,由于HP双机PV-link多路径配置不当引起存储告警LUN不在优选路径

发布时间:  2017-05-04 浏览次数:  107 下载次数:  0
问题描述

S3200存储对接HP-UX系统时,由于HP双机PV-link多路径配置不当引起存储告警LUN不在优选路径。

告警信息

S3200存储对接HP-UX系统时,存储阵列出现如下告警:

Failure Entry 1: NON_PREFERRED_PATH

Details

Storage array: S3100-A

Preferred owner: Controller in slot B

Current owner: Controller in slot A

Affected volume group: 1

Volume: vgcbpshare

处理过程

通过vgreduce与vgextent修改PV-link的优选路径与磁盘实际的优选路径一致。

步骤一、vgreduce取消配置错误的PV-link主路径

# vgreduce /dev/vg01 /dev/dsk/c17t0d1

Device file path "/dev/dsk/c17t0d1" is an primary link.

Removing primary link and switching to an alternate link.

Volume group "/dev/vg01" has been successfully reduced.

Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf

步骤二、vgextend添加磁盘路径为备用路径

# vgextend /dev/vg01 /dev/dsk/c17t0d1

Volume group "/dev/vg01" has been successfully extended.

Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf

步骤三、确认PV-link的主备路径已经与存储实际的主备路径一致。

# SMdevices

OceanStor Manager Suite Devices, Version 10.00.44.02

Built Thu Dec 04 03:54:36 CST 2008

Copyright (C) 2007-2008 Huawei Technologies Co., Ltd. All rights reserved.

/dev/rdsk/c29t0d1 [Storage Array S3200, Volume vg01, LUN 1, Volume ID <600a0b8000421c9c000040744bd5a050>, Preferred Path (Controller-B): In Use]

/dev/rdsk/c17t0d1 [Storage Array S3200, Volume vg01, LUN 1, Volume ID <600a0b8000421c9c000040744bd5a050>, Alternate Path (Controller-A): Not In Use]

# vgdisplay -v vg01 | grep dsk

PV Name /dev/dsk/c29t0d1

PV Name /dev/dsk/c17t0d1 Alternate Link

可以看出,c29t0d1已经调整为主路径,c17t0d1已经调整为备用路径,与真实的物理路径对应。

根因

主机端运行SMdevices和vgdisplay –v命令,查看优选路径对应的磁盘盘符是否被PV-link优先访问。本例,vg01这个LUN的优选路径磁盘为c29t0d1,但PV-link错误配置成了备用路径。

# SMdevices

OceanStor Manager Suite Devices, Version 10.00.44.02

Built Thu Dec 04 03:54:36 CST 2008

Copyright (C) 2007-2008 Huawei Technologies Co., Ltd. All rights reserved.

/dev/rdsk/c29t0d1 [Storage Array S3200, Volume vg01, LUN 1, Volume ID <600a0b8000421c9c000040744bd5a050>, Preferred Path (Controller-B): Not In Use]

/dev/rdsk/c17t0d1 [Storage Array S3200, Volume vg01, LUN 1, Volume ID <600a0b8000421c9c000040744bd5a050>, Alternate Path (Controller-A): In Use]

# vgdisplay -v | grep dsk

PV Name /dev/dsk/c17t0d1

PV Name /dev/dsk/c29t0d1 Alternate Link

解决方案

遇到此类问题首先要细心排查
1.对接HP-UX时查看磁盘访问顺序是否正确。
2.确保PV-link优先访问的磁盘与SMdevices优选路径一致。

建议与总结

END