关于HP EVA 4400在linux平台的问题。
本帖最后由 xuheng0628 于 2010-07-25 22:36 编辑
HP EVA 4400磁阵 直连的 2台服务器,
服务器HBA卡是AE312A 用的redhat 5.4自带的HBA驱动,
服务器各装了HPDMmultipath-4.4.0聚合软件。
安装完软件,没有配置/etc/multipath.conf (HP800说,4.0以上版本已经不需要配置),开启multipath服务。开机自动启动。
聚合之后,
multipath -ll
[root@rac2 ~]# multipath -ll
mpath2 (3600143800648ccb70000500000290000) dm-4 HP,HSV300
[size=550G][features=1 queue_if_no_path][hwhandler=0][rw]
_ round-robin 0 [prio=50][active]
_ 2:0:0:3 sdc 8:32 [active][ready]
_ round-robin 0 [prio=10][enabled]
_ 3:0:0:3 sdf 8:80 [active][ready]
mpath1 (3600143800648ccb70000500000250000) dm-3 HP,HSV300
[size=550G][features=1 queue_if_no_path][hwhandler=0][rw]
_ round-robin 0 [prio=50][active]
_ 2:0:0:2 sdb 8:16 [active][ready]
_ round-robin 0 [prio=10][enabled]
_ 3:0:0:2 sde 8:64 [active][ready]
mpath0 (3600143800648ccb70000500000210000) dm-2 HP,HSV300
[size=550G][features=1 queue_if_no_path][hwhandler=0][rw]
_ round-robin 0 [prio=50][active]
_ 2:0:0:1 sda 8:0 [active][ready]
_ round-robin 0 [prio=10][enabled]
_ 3:0:0:1 sdd 8:48 [active][ready]
HP800提供的文档上写着 可以fdisk /dev/mapper/mpath* and use them as RAW or FS
但是fdisk /dev/mapper/mpath* 建立400M 主分区时,(建立RAW裸设备)
[root@rac2 ~]# fdisk /dev/mapper/
control VolGroup01-LogVol00
mpath0 mpath1 mpath2 VolGroup01-LogVol01
[root@rac2 ~]# fdisk /dev/mapper/mpath0
The number of cylinders for this disk is set to 71797.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (58445-71797, default 58445):
Using default value 58445
Last cylinder or +size or +sizeM or +sizeK (58445-71797, default 71797): +400M
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 22: Invalid argument. 警告:重新读取分区表失败 错误22:无效参数
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
[root@rac2 ~]#
fdisk -l 查看分区表信息
[root@rac2 ~]# fdisk -l
Disk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes
255 heads, 63 sectors/track, 17844 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 13 104391 83 Linux
/dev/cciss/c0d0p2 14 17844 143227507+ 8e Linux LVM
Disk /dev/sda: 590.5 GB, 590558003200 bytes
255 heads, 63 sectors/track, 71797 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 50 401593+ 83 Linux
Disk /dev/sdb: 590.5 GB, 590558003200 bytes
255 heads, 63 sectors/track, 71797 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdc: 590.5 GB, 590558003200 bytes
255 heads, 63 sectors/track, 71797 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdd: 590.5 GB, 590558003200 bytes
255 heads, 63 sectors/track, 71797 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 1 50 401593+ 83 Linux
Disk /dev/sde: 590.5 GB, 590558003200 bytes
255 heads, 63 sectors/track, 71797 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdf: 590.5 GB, 590558003200 bytes
255 heads, 63 sectors/track, 71797 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/dm-2: 590.5 GB, 590558003200 bytes
255 heads, 63 sectors/track, 71797 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/dm-2p1 1 50 401593+ 83 Linux
Disk /dev/dm-3: 590.5 GB, 590558003200 bytes
255 heads, 63 sectors/track, 71797 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/dm-4: 590.5 GB, 590558003200 bytes
255 heads, 63 sectors/track, 71797 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/dm-5: 411 MB, 411231744 bytes
255 heads, 63 sectors/track, 49 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-5 doesn't contain a valid partition table
而dm-5便是我fdisk /dev/mapper/mpath0 建立的分区,就会跳出一个。如果我在建立一个,它又会跳出一个dm-6
是EVA4400的存储的事情吗?
还有单独对 fdisk /dev/sd* 建立主分区,保存,是不会有错误。
有人知道怎么回事吗
有人做过类似项目吗?可以告诉下吗
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
什么时间不可以?
eva4400支持与server直连了?
必須要先 fdisk LUN
才能再用 HPDMmultipath 做聚合 ( 也就是說 , 要再次使用 fdisk , 必須先移除 HPDMmultipath )
現階段不建議大家使用 HPDMmultipath , 限制條件太多了 , 也不方便
HPDMmultipath唯一的好處是 , 當 end user 的 FC HBA 壞掉 , 改換成其他 vender FC HBA ( ex: Qlogic -> Emulex )
不需要修改 fstab , 可保留 path
HP AE312A , 建議安裝 HP 官方驱动
http://h20000.www2.hp.com/bizsup ... amp;submit=Go%20%BB
官方文档中有說明
安裝驱动 option -f , 可啟動 failover multipath mode
這是 Qlogic 官方的软件 , 非常方便
ex : 兩個 paths , /dev/sda , /dev/sdb => 聚合成 /dev/sda
可以使用 fdisk 或是任何 OS上自帶的 command.
我也碰到lz的问题,不太懂,我后来是直接raw /dev/raw/raw1 /dev/mapper/mpath的。
还听说不能用fdisk建分区,要用kpartx -a /dev/mapper/mpath来建,不知道对不对