Solaris10 for x86下iSCSI的MpxIO的实现(原创)

上一篇 / 下一篇  2008-01-03 09:42:14

 

环境:dlink3200一台,两条网线连接01口,不经过交换机,直接连接服务器的两个网口,也可以通过交换机,普通的就可以的。

测试细节:

1vendor ID and product ID(注意大小写)

vendor IDDLink

product IDDLKATX

以上参数获得,是通过format。进入format命令的界面后,看到找到的一块存储上的卷,选inquiry就可以看到。

2、两个网口设置成不同的网段。

3、创建一个TARGET,两个LAG,里面是各一个网口

 

4、创建一个大卷

以上为硬件设置部分,每个盘阵都不一样,我手头只有DLINK的iSCSI盘阵,就拿这个做例子了。

 

测试步骤;

1、修改/kernel/drv/scsi_vhci.conf   fp.conf

# Copyright 2001-2003 Sun Microsystems, Inc. All rights reserved.

# Use is subject to license terms.

#

#pragma ident "@(#)scsi_vhci.conf 1.903/06/16SMI"

#

name="scsi_vhci" class="root";

#

# mpxio global enable/disable switch: setting mpxio-disable="no" will activate

# I/O multipathing; setting mpxio-disable="yes" disables this feature (do

# not remove this property).

#

mpxio-disable="yes";-àno 这里要改成no

#

# 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";确定是这个参数

#

# Force load driver to support hotplug activity (do not remove this property).

#

ddi-forceattach=1;

#

# Automatic failback configuration

# possible values are auto-failback="enable" or auto-failback="disable"

auto-failback="disable";

#

# 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 =”Dlink  DLKATX“, "symmetric-option";

# "SUN SENA", "symmetric-option";这里是有格式的,名字长度有要求,不足后面补空格

#The vendor ID (v_id) must be eight characters long. You must specify all eight

characters. Trailing characters are blanks or spaces. Tabs or the tab character are not

allowed.

The product ID (prod_id) can be up to 16 characters long. Trailing characters are

blanks or spaces. Tabs or the tab character are not allowed.

symmetric-option = 0x1000000;

 

 

2、配置iscsi

#iscsiadm add discovery-address 192.168.0.10

#iscsiadm add discovery-address 192.168.1.10增加两个iscsi连接

 

#iscsiadm modify initiator-node –N iqn.1980-03.com.sun:oracle编辑主机上的iscsi名字,和存储上面的initiator一样

 

#iscsiadm modify discovery –s enable

#iscsiadm modify discovery –t enable  允许solaris自动连接存储

 

#iscsiadm list target      列存储上的LUN

 

3、发现硬盘

Format

 

AVAILABLE DISK SELECTIONS:

      0. c1d0 <DEFAULT cyl 15934 alt 2 hd 255 sec 126>

         /pci@0,0/pci-ide@1f,2/ide@0/cmdk@0,0

      1. c2t7xxxxxxxxxxxxxxxxxxxxxxxxxd0<DLink-DLKATX-0036-100GB>

         /scsi_vhci/disk@0000naa.60015e90045b8520474bef5c872cdb4a0001,0

 

会有上面类似的disk出现。

 

假如出现多块同名的卷,那么意味着以上的配置有问题,需要翻回去重新检查。

 

4、创建文件系统

newfs /dev/rdsk/c2t7xxxxxxxxxxxxxxxxxxxxxxxxxd0s6 这里需要注意的是,中间那很长的一段字符是可以忽略的

 

5mount

mount /dev/dsk/c2t7xxxxxxxxxxxxxxxxxxxxxxxxxd0s6 /aaa

 

6、测试

cd /aaa

mkfile10gt1

 

如果大家在iSCSI方面有什么需要我提供资料的,加我MSN即可

ruimin2001@hotmail.com


TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-08-29  
     12
3456789
10111213141516
17181920212223
24252627282930
31      

我的存档

数据统计

  • 访问量: 106
  • 日志数: 3
  • 建立时间: 2008-01-03
  • 更新时间: 2008-01-29

RSS订阅

Open Toolbar