2008年给用户买了一台hp rp8400小型机和一台hp va7110存储系统,小型机的操作系统安装非常正常,
但是和存储的连接则折腾了我两个月。
刚开始存储上安装的不是hp原装的光纤硬盘,则在存储上执行dsp -d看硬盘状态时如下:
Not Enough Drives > dsp -d
DISK AT M/D1:
Drive State: Unsupported
Vendor ID: SEAGATE
Product ID: ST336607FC-F
Product Revision: 4F1E
Capacity: 16896 MB
Loop Address: 111
Node WWN: 0x2000000c50b90bb6
Initialization State: Ready
Volume Set Serial No: FFFFFFFFFFFFFFFF
Block Size: 520
Serial Number: 3JA7DE8V0000
DISK AT M/D2:
Drive State: Unsupported
Vendor ID: SEAGATE
Product ID: ST336607FC-F
Product Revision: 4F12
Capacity: 16896 MB
Loop Address: 112
Node WWN: 0x2000000c50525194
Initialization State: Ready
Volume Set Serial No: FFFFFFFFFFFFFFFF
Block Size: 520
Serial Number: 3JA2HWPQ0000
DISK AT M/D3:
Drive State: Unsupported
Vendor ID: SEAGATE
Product ID: ST336607FC-F
Product Revision: 4F12
Capacity: 16896 MB
Loop Address: 113
Node WWN: 0x20000004cfc3798c
Initialization State: Ready
Volume Set Serial No: FFFFFFFFFFFFFFFF
Block Size: 520
Serial Number: 3JA2250D0000
DISK AT M/D4:
Drive State: Unsupported
Vendor ID: SEAGATE
Product ID: ST336607FC-F
Product Revision: 4F12
Capacity: 16896 MB
Loop Address: 114
Node WWN: 0x2000000c50524561
Initialization State: Ready
Volume Set Serial No: FFFFFFFFFFFFFFFF
Block Size: 520
Serial Number: 3JA2HDW10000
Total capacity of physical disks in array = 66 GB
而正常的存储上看见的信息则如下
DISK AT M/D14:
Drive State: Included
Vendor ID: HP 73.4G
Product ID: ST373307FC
Product Revision: HP03
Capacity: 68096 MB
Loop Address: 124
Node WWN: 0x2000000c506e1f0d
Initialization State: Ready
Volume Set Serial No: 0000CB760000000A
Block Size: 520
Serial Number: 3HZ66GQK
Recovery Maps are on this disk.
从上面可见不同之处在前两行。
同时在小型机上执行armdiscover时,则有如下报错信息:
This could take several minutes ...
Failed to obtain remote database interface to host: localhost
但是使用ioscan -f |grep A6189B
则可以看见存储信息。
使用armdsp -i时信息如下:
Error logging in: TIMEOUT EXPIRED
可见小型机上不能对存储进行管理。
没有办法,打电话询问hp 800工程师,则告诉我把硬盘换成hp原装的再给他打电话。
找来找去,两个月过去了,终于找来的hp原装硬盘。
但是上面的问题依然存在。打电话询问hp 800工程师,想了很多办法:如
/opt/sanmgr/hostagent/sbin/HA_trigger stop
/opt/sanmgr/hostagent/sbin/dial_trigger stop
/opt/sanmgr/hostagent/sbin/HA_trigger start
/opt/sanmgr/hostagent/sbin/dial_trigger start
重新启动存储管理进程。问题依旧。
在存储上进行个中修改,问题依旧。
如
vfpfmt,mgr -R full 命令等
最后采用在存储上修改主机接口速率,命令如下:
mgr -S 2 -c 2 -hp 1
将存储主机接口修改为2GB(默认1GB),此时看到小型机上的光纤卡的指示灯变化了,(两个灯,一个是电源灯,另外一个是速度指示灯),速度指示灯由黄变绿。
同时采用命令mgr -t 4 -c 2 -hp 1将拓扑结构由原来的Private topology改为Direct fabric attached topology,但是此时在小型机上执行ioscan -f |grep A6189B,什么也看不见,而用户原有通过san交换机连接的存储上的拓扑结构参数就是后者Direct fabric attached topology,可见存储和小型机直接连接不能采用这种拓扑参数,于是将其修改为Private topology,则又可以看见存储了。
但是问题依旧。
最后hp工程师让我修改了一个文件:/etc/opt/sanmgr/hostagent/config/commIpAddr.txt
该文件的内容是192.168.0.200,是我刚装系统时设置的系统IP地址。而现在的ip地址则改为
10.8.32.156,于是修改为现在的ip地址。则armdiscover之后,可以发现存储了。信息如下:
# armdiscover
This could take several minutes ...
HP 36.4G-ST336754LC /dev/dsk/c0t6d0 3KQ02WBN00007530 db
HP-A6189B /dev/rscsi/c7t2d0 00SG147G0008 db hparray
HP 36.4G-MAS3367NC /dev/dsk/c2t6d0 KT043189 0421 db
# armdsp -i
Product ID: HP-A6189B
Device Type: Virtual Disk Array
Alias: hparray
World Wide Name: 50060b000008abbd
Unique ID: HPA6189B00SG147G0008
Serial Number: 00SG147G0008
Management Path: db:/dev/rscsi/c7t2d0
由此可见存储终于和小型机连接上了。
查看状态,hparray 为 alias[别名]
armdsp -a hparray
划分lun
添加
armcfg -L 0 -a 80g -g 1 hparray
armcfg -L 1 -a 40g -g 1 hparray
# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
disk 0 0/0/0/2/0.6.0 sdisk CLAIMED DEVICE HP 36.4GST336754LC
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0
disk 1 0/0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 2 0/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 36.4GMAS3367NC
/dev/dsk/c2t6d0 /dev/rdsk/c2t6d0
disk 4 0/0/6/0/0.8.0.2.0.0.0 sdisk CLAIMED DEVICE HP A6189B
/dev/dsk/c6t0d0 /dev/rdsk/c6t0d0
disk 5 0/0/6/0/0.8.0.2.0.0.1 sdisk CLAIMED DEVICE HP A6189B
/dev/dsk/c6t0d1 /dev/rdsk/c6t0d1
创建物理卷:
# pvcreate -f -B /dev/rdsk/c6t0d0
Physical volume "/dev/rdsk/c6t0d0" has been successfully created.
# pvcreate -f -B /dev/rdsk/c6t0d1
Physical volume "/dev/rdsk/c6t0d1" has been successfully created.
#
创建卷组:
mkdir /dev/vg02
mknod /dev/vg02/group c 64 0x010000
vgcreate -s 16 vg02 /dev/dsk/c6t0d0 (这里的16指的是每个pe的尺寸)
如果报错信息如下:
Increased the number of physical extents per physical volume to 10239.
vgcreate: Volume group "/dev/vg02" could not be created:
VGRA for the disk is too big for the specified parameters. Increase the
extent size or decrease max_PVs/max_LVs and try again.
可以通过修改该数字来更改,直到不报错为止。
扩充逻辑卷
vgextend /dev/vg02 /dev/dsk/c6t0d1
划分逻辑卷
lvcreate -L 120000 -n lvarray /dev/vg02
在lv上建立文件系统:
newfs -F vxfs /dev/vg02/rlvarray
修改/etc/fstab文件,以便重启系统后自动挂载文件系统,添加以下内容:
/dev/vg02/lvarray /array vxfs delaylog 0 2
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/18976069/viewspace-1017511/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/18976069/viewspace-1017511/