我有一个RHEL5 +3 mount存储环境,并且不确定如何设置一个多路径FC设备来安装到特定位置,如/data。我有RHEL的3 3Par实现指南,这对我来说仍然没有意义。我正在为我的存储供应商遵循指南,但是对于任何使用的存储,它都是通用的。
在
以下是他们的指南:
#Partitioning Device-mapper Nodes (pg:71)
NOTE: Do not use the fdisk command with /dev/mapper/XXX devices to create partitions
#Provision and export volumns to host
#excute multipath to create mappings (on my system it has /dev/dm-0)
multipath
#list out mappings
multipath -l
#format the top drive in the map
### multipath -l
##50002ac001b40031
##[size=5 GB][features="1 queue_if_no_path"][hwhandler="0"]
##\_ round-robin 0 [active]
##\_ 0:0:0:0 sda 8:0 [active]
##\_ 1:0:0:0 sdb 8:16 [active]
fdisk /dev/sda -- create a partition
################################################
#this part confuses me...
After the fdisk command completes, use the kpartx command to list and create DM devices
for the partitions on the device.
# kpartx /dev/mapper/350002ac001b40031
350002ac001b40031p1 : 0 10477194 /dev/mapper/350002ac001b40031 62
# kpartx -a /dev/mapper/350002ac001b40031 -- will add a partition mapping
# ls /dev/mapper
350002ac001b40031 350002ac001b40031p1
################################################发布于 2013-01-16 20:31:16
由于/dev/mapper/dm-N名称是由Linux内核动态分配的,所以不能依赖/etc/fstab中的这些名称。
您需要确保您正在安装到哪个分区。最好的方法是给分区命名。您可以通过在/etc/multipath.conf中添加以下部分来完成这一任务:
multipaths {
multipath {
wwid 3600a0b800011a2be00001dfa46cf0620
alias mydev1
}
}您可以从multipath -ll输出中获取wwids。不要忘记重新启动multipathd,以便在链路/开关/存储控制器故障时能够切换路径。
如果计划将SAN设备作为整体使用,则不一定需要在SAN设备上创建分区。
https://serverfault.com/questions/469765
复制相似问题