我有一个RHEL5 + 3Par FC SAN存储环境,并且不确定如何设置一个多pathFC设备来挂载到特定位置(如/ data)。 我有3PAR实施指南RHEL,它仍然没有任何意义。 我正在按照我的存储供应商的指南,但它是通用的任何存储使用。
在RHEL 5中,将/ dev / mapper / dm-1等开发映射程序安装到/ data的正确方法是什么?
以下是他们引导的内容:
#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 ################################################
由于/dev/mapper/dm-N名称是由Linux内核dynamic分配的,因此不能依赖/etc/fstab这些名称。
您需要确保将哪个LUN挂载到哪个分区。 最好的办法是命名你的分区。 你可以通过在/etc/multipath.conf添加以下部分来实现:
multipaths { multipath { wwid 3600a0b800011a2be00001dfa46cf0620 alias mydev1 } }
你可以从multipath -ll输出你的wwids。 不要忘记重启多path,以便在链路/交换机/存储控制器故障的情况下切换path。
如果您计划将其作为整体使用,则不一定需要在SAN设备上创build分区。