hhak 发表于 2009-07-23 18:56

cluster环境。 6140盘阵配多路径应该怎么配?

环境Solaris 10 。cluster3.2。    如题,主机上和盘阵上应该怎么设置。谢谢

[ 本帖最后由 hhak 于 2009-7-23 19:01 编辑 ]

kingdisc666 发表于 2009-07-23 19:59

先看看SUN CLUSTER 相关文档吧

kingdisc666 发表于 2009-07-23 20:51

root@web-db1 # reboot -- -r
运行cfgadm –al 可以看见系统已经注册了控制器,只需启用多路径mpxio即可。

root@web-db1 # cfgadm -al
Ap_Id                        Type         Receptacle   Occupant   Condition
c0                           scsi-bus   connected    configured   unknown
c0::dsk/c0t0d0               CD-ROM       connected    configured   unknown
c1                           fc-private   connected    configured   unknown
c1::5000cca00432dcc9         disk         connected    configured   unknown
c1::5000cca00432dce1         disk         connected    configured   unknown
c2                           fc-private   connected    configured   unknown
c2::200400a0b82aaf01         disk         connected    configured   unknown
c3                           fc-private   connected    configured   unknown
c3::200500a0b82aaf01         disk         connected    configured   unknown
usb0/1                         usb-mouse    connected    configured   ok
usb0/2                         usb-device   connected    configured   ok
usb0/3                         unknown      empty      unconfigured ok
usb0/4                         unknown      empty      unconfigured ok

root@web-db1 #ls -l /dev/fc
总数 6
lrwxrwxrwx   1 root   root          51 12月1日 12:55 fp0 -> ../../devices/pci@8,600000/SUNW,qlc@1/fp@0,0:devctl
lrwxrwxrwx   1 root   root          51 12月1日 12:55 fp1 -> ../../devices/pci@8,600000/SUNW,qlc@2/fp@0,0:devctl
lrwxrwxrwx   1 root   root          51 12月1日 12:55 fp2 -> ../../devices/pci@9,600000/SUNW,qlc@2/fp@0,0:devctl

注:(fp0,fp1为HBA卡上的光纤通道,fp2为本地的光线通道
fp0,fp1开启多路径,fp2关闭多路径)

root@web-db1#vi /kernel/drv/fp.conf

添加如下语句。


注释掉
#mpxio-disable="yes";

parent="/pci@8,600000/SUNW,qlc@1" port=0 mpxio-disable="no"; name="fp"
parent="/pci@8,600000/SUNW,qlc@2" port=0 mpxio-disable="no"; name="fp"
// fp0,fp1开启多路径

parent="/pci@9,600000/SUNW,qlc@2" port=0 mpxio-disable="yes"; name="fp"
// fp2关闭多路径
注:(多路径软件用于管理指向共享群集存储设备的多个I/O 路径。对于Solaris 8 或Solaris 9 操作系统,安装并配置Sun StorEdge Traffic Manager 软对于Solaris 10 操作系统,启用Solaris 多路径功能,此功能作为Solaris 10 软件的一部分已被默认安装。
以上表明在HBA卡FC接口上启用mpxio,而不是全局启用。这样正常阵列设备识别的磁盘号就为长串字符,而本地磁盘识别的磁盘号为正常的cxtxsx,因为只是在FC口局部启用的多路径,而本地禁用多路径)

root@web-db1# stmsboot –u      
WARNING: This operation will require a reboot.
Do you want to continue ? (default: y) y
The changes will come into effect after rebooting the system.
Reboot the system now ? (default: y) y

在web-server2上执行相同的步骤

可以看见盘阵已经变成multipath-devices

root@web-db1 # format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w5000cca00432dcc9,0
       1. c1t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w5000cca00432dce1,0
       2. c4t600A0B80002A2B320000066F492B138Dd0 <SUN-CSM200_R-0619 cyl 63998 alt 2 hd 256 sec 64>
          /scsi_vhci/ssd@g600a0b80002a2b320000066f492b138d
       3. c4t600A0B80002AAF00000007BF492B135Cd0 <SUN-CSM200_R-0619 cyl 510 alt 2 hd 64 sec 64>
          /scsi_vhci/ssd@g600a0b80002aaf00000007bf492b135c
       4. c4t600A0B80002AAF00000007C5492B13D6d0 <SUN-CSM200_R-0619 cyl 65533 alt 2 hd 128 sec 113>
          /scsi_vhci/ssd@g600a0b80002aaf00000007c5492b13d6
Specify disk (enter its number):


root@web-db2 # format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w21000000878d59a1,0
       1. c1t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w21000000878d0ef5,0
       2. c4t600A0B80002A2B320000066F492B138Dd0 <SUN-CSM200_R-0619 cyl 63998 alt 2 hd 256 sec 64>
          /scsi_vhci/ssd@g600a0b80002a2b320000066f492b138d
       3. c4t600A0B80002AAF00000007BF492B135Cd0 <SUN-CSM200_R-0619 cyl 510 alt 2 hd 64 sec 64>
          /scsi_vhci/ssd@g600a0b80002aaf00000007bf492b135c
       4. c4t600A0B80002AAF00000007C5492B13D6d0 <SUN-CSM200_R-0619 cyl 65533 alt 2 hd 128 sec 113>
          /scsi_vhci/ssd@g600a0b80002aaf00000007c5492b13d6

brucewoo 发表于 2009-07-23 21:37

不错,学习一下.

easybegin 发表于 2009-07-24 09:22

很好,支持一下

东方蜘蛛 发表于 2009-07-24 09:57

# stmsboot -D fp -e

guopy007 发表于 2009-07-24 10:21

学习一下。。手册看来是看得太少了

hhak 发表于 2009-07-24 11:24

谢谢 kingdisc666 和蜘蛛。学习了。

killer911 发表于 2009-07-24 15:53

回复 #6 东方蜘蛛 的帖子

如果是890怎么排除内部磁盘用的FP卡啊?

东方蜘蛛 发表于 2009-07-24 16:14

Exclude controllers from MPxIO in /kernel/drv/qlc.conf
e.g: name="qlc" parent="/pci@6,2000" unitaddress="2" mpxio-disable="yes";
or /kernel/drv/fp.conf (recommended for SAN4.3 and higher)
e.g: name="fp" parent="/pci@6,2000/SUNW,qlc@2" port=0 mpxio-disable="yes";
sol8,9可以按照上面方法做,sol10下没试过,听说也可以,你试试吧:em15:
页: [1] 2
查看完整版本: cluster环境。 6140盘阵配多路径应该怎么配?