Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1915113
  • 博文数量: 346
  • 博客积分: 10221
  • 博客等级: 上将
  • 技术积分: 4079
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-01 19:43
文章分类

全部博文(346)

文章存档

2012年(1)

2011年(102)

2010年(116)

2009年(127)

我的朋友

分类:

2009-08-06 10:42:30

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 ? [y/n] (default: y) y
The changes will come into effect after rebooting the system.
Reboot the system now ? [y/n] (default: y) y

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

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

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


AVAILABLE DISK SELECTIONS:
       0. c1t0d0
          /pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w5000cca00432dcc9,0
       1. c1t1d0
          /pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w5000cca00432dce1,0
       2. c4t600A0B80002A2B320000066F492B138Dd0
          /scsi_vhci/ssd@g600a0b80002a2b320000066f492b138d
       3. c4t600A0B80002AAF00000007BF492B135Cd0
          /scsi_vhci/ssd@g600a0b80002aaf00000007bf492b135c
       4. c4t600A0B80002AAF00000007C5492B13D6d0
          /scsi_vhci/ssd@g600a0b80002aaf00000007c5492b13d6
Specify disk (enter its number):


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


AVAILABLE DISK SELECTIONS:
       0. c1t0d0
          /pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w21000000878d59a1,0
       1. c1t1d0
          /pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w21000000878d0ef5,0
       2. c4t600A0B80002A2B320000066F492B138Dd0
          /scsi_vhci/ssd@g600a0b80002a2b320000066f492b138d
       3. c4t600A0B80002AAF00000007BF492B135Cd0
          /scsi_vhci/ssd@g600a0b80002aaf00000007bf492b135c
       4. c4t600A0B80002AAF00000007C5492B13D6d0
          /scsi_vhci/ssd@g600a0b80002aaf00000007c5492b13d6

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