hp va7110儲存 解決問題回顧

fengzhengsheng發表於2009-02-18
hp va7110儲存配置過程[@more@]

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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章