beautypg.com

Create a new fdisk, See "add a new partition to device mapper" on – Dell PowerVault MD3200i User Manual

Page 195

background image

Configuration: Device Mapper Multipath for Linux

193

\_ 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

MD3200i

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 creation of 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, for example, use the following command, where

mpath is the multipathing device node on which you want to create the

partition:

# fdisk /dev/mapper/mpath

NOTE:

The value is an alphanumeric operating system dependent format. The

corresponding value for mapped virtual disks can be seen using the previously run

multipath command. See your operating system documentation for additional

information on fdisk.

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 is the

device node on which the partition was created.

# kpartx –a /dev/mapper/mpath

If successful, the command does not display an output. To verify success and

view exact partition naming, you can use these commands to see the full

partition names assigned.

# cd /dev/mapper

book.book Page 193 Tuesday, June 18, 2013 3:15 PM

This manual is related to the following products: