Chinaunix首页 | 论坛 | 博客
  • 博客访问: 669729
  • 博文数量: 128
  • 博客积分: 265
  • 博客等级: 二等列兵
  • 技术积分: 1464
  • 用 户 组: 普通用户
  • 注册时间: 2011-09-27 20:44
个人简介

just do it

文章分类

全部博文(128)

文章存档

2023年(1)

2020年(1)

2019年(1)

2018年(3)

2017年(6)

2016年(17)

2015年(16)

2014年(39)

2013年(34)

2012年(10)

分类: 系统运维

2012-08-25 14:02:58

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注释部分可以看出,厂家更倾向于使用第一种方式来修改!


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 或直接连接环境中使用阵列的方式。)

阅读(1623) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~