kpartx: Linux Create Device Maps From Partition Tables ( mpath devices for partitions )
Q. How can I create mpath devices for partitions under CentOS Linux 5?
A. You need to use tool called kpartx. This is derived from util-linux partx package, which reads partition tables on specified device and create device maps over partitions segments detected. It is called from hotplug upon device maps creation and deletion. This is useful for setting multipath which is used to detect multiple paths to devices for fail-over or performance reasons and coalesces them.
To Setup your multipath type the following command at a shell prompt (login as the root user):
# for d in $(ls /dev/mapper/mpath*); do kpartx -a -v $d ; done
E-mail this to a friend
Printable version
Related Other Helpful FAQs:
- Linux: How do I list all USB devices?
- Linux View Hard Drive Partitions with fdisk and parted commands
- Tape drives naming convention under Linux
- Dual boot 2 or 3 different Linux distributions on a laptop
- Linux partition naming convention and IDE drive mappings
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: CentOS, hotplug, kpartx command, mapper, maps, multipath, partition tables, redhat, rhel 4, rhel 5, segments, shell, tool




Recent Comments
Yesterday ~ 12 Comments
Yesterday ~ 7 Comments
Yesterday ~ 2 Comments
Yesterday ~ 3 Comments
Yesterday ~ 3 Comments