2009/05/19

Multipath and partitions on linux

If you have a multipath device, you can partition it. This can have many purposes, typically to use some space differently if you have a cluster and only a LUN to use as quorum disk and for data.

Sometimes, you partition the multipath device with fdisk, but the device is "in use" by the kernel and partition devices (mpathXp1, mpathXp2 and so on) don't get created.

Simply use kpartx to create those devices in "userspace":

root# kpartx -a /dev/mpath/mpath0

If you are not sure, leave the -a to preview the results.

No comments:

Post a Comment