免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3482 | 回复: 0
打印 上一主题 下一主题

solaris多路径管理 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-08-06 10:42 |只看该作者 |倒序浏览

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

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/97963/showart_2019470.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP