Solaris HBA启用多路径方法

Solaris 10 HBA启用多路径有两种方法:

1/usr/sbin/stmsboot -e

# stmsboot -e

WARNING: stmsboot operates on each supported multipath-capable controller

detected in a host. In your system, these controllers are

If you do NOT wish to operate on these controllers, please quit stmsboot

and re-invoke with -D { fp | mpt } to specify which controllers you wish

to modify your multipathing configuration for.

Do you wish to continue? [y/n] (default: y)

2、修改配置文件/kernel/drv/fp.conf

/kernel/drv/fp.conf默认配置如下:

**********************************************************************

#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# Sun Fibre Channel Port driver configuration
#
#ident "@(#)fp.conf 1.3 04/10/22 SMI"
#

name="fp" class="fibre-channel" port=0;
name="fp" class="fibre-channel" port=1;

#
# Automatic configuration of the fabric is turned on by default
# and thus allows all devices discovered in the SAN zone to be
# enumerated in the Solaris devinfo tree automatically.
#
# The manual_configuration_only property may be used to
# disable the default behavior and force the manual configuration of
# the devices in the SAN. Setting manual_configuration_only=1
# will disable the automatic configuration of devices.
# NOTE: Use of this property is not recommended. If used, the
# fabric devices accessed at boot time need to get manually configured
# before the next reboot. Otherwise, fabric devices that are needed at
# boot time may not get configured and may cause boot problems.
# To manually configure fabric devices, refer to cfgadm_fp(1M).
# manual_configuration_only=1;
#
# To generate the binding-set specific 'compatible' forms used to address
# legacy issues the 'scsi-binding-set' property must be defined. (do not remove)
#
scsi-binding-set="fcp";

#
# List of ULP modules for loading during port driver attach time
#
load-ulp-list="1","fcp";

#
# Force attach driver to support hotplug activity (do not remove the property)
#
ddi-forceattach=1;

#
# I/O multipathing feature (MPxIO) can be enabled or disabled using
# mpxio-disable property. Setting mpxio-disable="no" will activate
# I/O multipathing; setting mpxio-disable="yes" disables the feature.
#
# Global mpxio-disable property:
#
# To globally enable MPxIO on all fp ports set:
# mpxio-disable="no";
#
# To globally disable MPxIO on all fp ports set:
#mpxio-disable="yes";#
# Per port mpxio-disable property:
#
# You can also enable or disable MPxIO on a per port basis.
# Per port settings override the global setting for the specified ports.
# To disable MPxIO on port 0 whose parent is /pci@8,600000/SUNW,qlc@4 set:
# name="fp" parent="/pci@8,600000/SUNW,qlc@4" port=0 mpxio-disable="yes";#
# NOTE: If you just want to enable or disable MPxIO on all fp ports, it is
# better to use stmsboot(1M) as it also updates /etc/vfstab.#
#
# You can describe a list of target port WWNs and LUN numbers which will
# not be configured. LUN numbers will be interpreted as decimal. White
# spaces and ',' can be used in the list of LUN numbers.
#
# pwwn-lun-blacklist=
# "target-port-wwn,lun-list"
#
# To prevent LUNs 1 and 2 from being configured for target
# port 510000f010fd92a1 and target port 510000e012079df1, set:
#
# pwwn-lun-blacklist=
# "510000f010fd92a1,1,2",
# "510000e012079df1,1,2";
***********************************************************************

/kernel/drv/fp.conf文件增加以下内容:

mpxio-disable="yes";

#启用全局多路径支持;

name="fp" parent="/pci@9,600000/SUNW,qlc@2" port=0 mpxio-disable="yes";

#禁用本地硬盘多路径支持;/pci@9,600000/SUNW,qlc@2"是通过format命令查看本地硬盘的信息;

根据fp.conf注释部分可以看出,厂家更倾向于使用第一种方式来修改!

[@more@]

Solaris 8 9 OS 启用多路径:在运行 Solaris OS 8 9 的主机上启用多路径软件:
1.
使用文本编辑器打开 /kernel/drv/scsi_vhci.conf 文件。
2.
在文件中设置 mpxio-disable=”no”;
3.
在文件中设置 load-balance=”round-robin”;
4.
在文件中设置 auto-failback=”enable”;
5.
保存更新后的文件。
6.
重新引导主机。
7.
使用 cfgadm 命令配置 HBA 路径。(配置路径的方式取决于您在 SAN 或直接连接环境中使用阵列的方式。)

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/60144/viewspace-1023920/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/60144/viewspace-1023920/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值