Configuration: Device Mapper Multipath for Linux 223
\_ round-robin 0 [prio=1][enabled]
\_ 6:0:0:22 sdcl 69:144 [active][ghost
where:
mpathb is the name of the virtual device created by device mapper. It is
located in the /dev/mapper directory.
DELL is the vendor of the device
MD36xxf is the model of the device
Sdx is the physical path to the owning controller for the device
Sdcl is the physical path to the non-owning controller for the device
Create a New fdisk Partition on a Multipath Device Node
The fdisk command allows you to create a partition space for a file system on
the newly scanned and mapped virtual disks that are presented to Device
Mapper.
To create a partition with the multipathing device nodes
/dev/mapper/mpath<x>, for example, use the following command, where
mpath<x> is the multipathing device node on which you want to create
the partition:
# fdisk /dev/mapper/mpath<x>
NOTE: The <x> value is an alphanumeric operating system dependent format. The
corresponding value for mapped virtual disks can be seen using the previously run
multipath command. Please see your operating system documentation for
additional information on fdisk usage.
Add a New Partition to Device Mapper
The kpartx command adds the newly fdisk created partition to the Device
Mapper list of usable partitions. See examples below, where mpath<x> is the
device node on which the partition was created.
# kpartx –a /dev/mapper/mpath<x>
If successful, the command does not show an output. To verify success and
view exact partition naming, the user can use these commands to see the full
partition names assigned.
# cd /dev/mapper
# ls
book.book Page 223 Tuesday, June 18, 2013 3:03 PM