zhbzcy 发表于 2012-12-31 11:38

sun服务器连dell磁盘阵列动态多路径问题

      0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
         /ssm@0,0/pci@18,600000/scsi@2/sd@0,0
      1. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
         /ssm@0,0/pci@18,600000/scsi@2/sd@1,0
      2. c2t202490B11C245F71d31 <DELL-UniversalXport-0784 cyl 8 alt 2 hd 64 sec 64>
         /ssm@0,0/pci@18,700000/SUNW,qlc@1/fp@0,0/ssd@w202490b11c245f71,1f
      3. c2t202590B11C245F71d31 <DELL-UniversalXport-0784 cyl 8 alt 2 hd 64 sec 64>
         /ssm@0,0/pci@18,700000/SUNW,qlc@1/fp@0,0/ssd@w202590b11c245f71,1f
      

2和3是同一张盘显示出来是双倍状态,执行stmsboot -e 后还是显示双倍状态,请问高手是不是sun服务器和dell磁盘阵列不兼容的问题,如何能解决这个问题呢?

znnnz 发表于 2012-12-31 11:56

@zhbzcy


对于非SUN盘阵启用多路径,除了stmsboot -e ,还需要编辑/kernel/drv/scsi_vhci.conf.

ps:编辑文件前做好备份

zhbzcy 发表于 2012-12-31 13:36

znnnz 发表于 2012-12-31 11:56 static/image/common/back.gif
@zhbzcy





需要怎么改
bash-3.00# more /kernel/drv/scsi_vhci.conf
#
# Copyright 2004 Sun Microsystems, Inc.All rights reserved.
# Use is subject to license terms.
#
#pragma ident   "@(#)scsi_vhci.conf   1.9   04/08/26 SMI"
#
name="scsi_vhci" class="root";
#
# Load balancing global configuration: setting load-balance="none" will cause
# all I/O to a given device (which supports multipath I/O) to occur via one
# path.Setting load-balance="round-robin" will cause each path to the device
# to be used in turn.
#
load-balance="round-robin";
#
# Automatic failback configuration
# possible values are auto-failback="enable" or auto-failback="disable"
auto-failback="enable";
#
# For enabling MPxIO support for 3rd party symmetric device need an
# entry similar to following in this file. Just replace the "SUN   SENA"
# part with the Vendor ID/Product ID for the device, exactly as reported by
# Inquiry cmd.
#
device-type-scsi-options-list =
"DELL   SENA", "symmetric-option";
symmetric-option = 0x1000000;

znnnz 发表于 2012-12-31 14:08

本帖最后由 znnnz 于 2012-12-31 14:09 编辑

@zhbzcy


luxadm   display/dev/rdsk/c2t202490B11C245F71d31s2   可以看到VendorID和   ProductID,   替换"DELL   SENA"   这两个字符串。


wait空白 发表于 2012-12-31 15:53

赞。。。。。

zhbzcy 发表于 2012-12-31 16:26


bash-3.00# luxadm display /dev/rdsk/c3t201590B11C245F71d120s2 DEVICE PROPERTIES for disk: /dev/rdsk/c3t201590B11C245F71d120s2   Vendor:               DELL       Product ID:           MD36xxf            Revision:             0784   Serial Num:           2BE0068            Unformatted capacity: 51200.000 MBytes   Write Cache:          Enabled   Read Cache:           Enabled     Minimum prefetch:   0x1     Maximum prefetch:   0x0   Device Type:          Disk device   Path(s):    /dev/rdsk/c3t201590B11C245F71d120s2   /devices/ssm@0,0/pci@18,700000/SUNW,qlc@2/fp@0,0/ssd@w201590b11c245f71,78:c,raw     LUN path port WWN:          201590b11c245f71     Host controller port WWN:   210000e08b8980a8     Path status:                O.K.   /dev/rdsk/c3t201490B11C245F71d120s2   /devices/ssm@0,0/pci@18,700000/SUNW,qlc@2/fp@0,0/ssd@w201490b11c245f71,78:c,raw     LUN path port WWN:          201490b11c245f71     Host controller port WWN:   210000e08b8980a8     Path status:                O.K.

bash-3.00# more /kernel/drv/scsi_vhci.conf
#
# Copyright 2004 Sun Microsystems, Inc.All rights reserved.
# Use is subject to license terms.
#
#pragma ident   "@(#)scsi_vhci.conf   1.9   04/08/26 SMI"
#
name="scsi_vhci" class="root";
#
# Load balancing global configuration: setting load-balance="none" will cause
# all I/O to a given device (which supports multipath I/O) to occur via one
# path.Setting load-balance="round-robin" will cause each path to the device
# to be used in turn.
#
load-balance="round-robin";
#
# Automatic failback configuration
# possible values are auto-failback="enable" or auto-failback="disable"
auto-failback="enable";
#
# For enabling MPxIO support for 3rd party symmetric device need an
# entry similar to following in this file. Just replace the "SUN   SENA"
# part with the Vendor ID/Product ID for the device, exactly as reported by
# Inquiry cmd.
#
device-type-scsi-options-list =
"DELL   MD36xxf", "symmetric-option";
symmetric-option = 0x1000000;


@znnnz
按照你以上所说的我操作了一下,执行stmsboot -u 重启后还是老样子显示双倍状态,没有任何变化,我的磁盘阵列是dell3620f,服务器是sun的2900和890,你看一下/kernel/drv/scsi_vhci.conf 我配的对吗?


   

znnnz 发表于 2013-01-01 16:32

@zhbzcy


"SUN   SENA", "symmetric-option";

在原来的文件中这一行,SUN是vender   ID,从第一个字母到SENA的第一个字母我记得是8个字符,不足8位用空格补足, 后面ProductID有多长写多长。

也就是
"DELL   MD36xxf", "symmetric-option";

这个格式中,DELL后面应该有4个空格,具体按照原来文件中的示例写。


然后确保在/kernel/drv/fp.conf中mpxio是处于打开的状态,看对需要启用mpxio的HBA卡的路径是否写进去了,然后stmsboot -u   使其生效。

yezj2004 发表于 2013-01-02 00:36

我惊呆了,好贴啊,很难得的好贴

zhbzcy 发表于 2013-01-04 12:02


搞定了,谢谢!!

   

lanyang_tj 发表于 2013-01-05 16:02

页: [1]
查看完整版本: sun服务器连dell磁盘阵列动态多路径问题