kpartx - Create device maps from partition tables
This tool, derived from util-linux¡¯ partx, 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.
kpartx¸í·É¾î´Â »ç¿ë °¡´ÉÇÑ ÆÄƼ¼ÇµéÀÇ ÀåÄ¡ ¸ÅÆÛ ¸®½ºÆ®¿¡ ÀåÄ¡¸¦ »ý¼ºÇÕ´Ï´Ù
ex) # kpartx -a /dev/mapper/mpath<x>
¸í·ÉÀÌ ¼º°øÀûÀ¸·Î ¼öÇàµÇ¸é, Ãâ·Â°ªÀÌ Ç¥½ÃµÇÁö ¾Ê½À´Ï´Ù. ¼º°ø ¿©ºÎ¸¦ È®ÀÎÇÏ°í Á¤È®ÇÑ ÆÄƼ¼Ç À̸§À» º¸·Á¸é, ÀÌ·¯ÇÑ ¸í·É¾î¸¦ »ç¿ëÇÏ¿© ÁöÁ¤µÈ Àüü ÆÄƼ¼Ç À̸§À» º¼ ¼ö ÀÖ½À´Ï´Ù.
# cd /dev/mapper
# ls
usage : kpartx [-a|-d|-l] [-v] wholedisk
-a add partition devmappings
-d del partition devmappings
-l list partitions devmappings that would be added by -a
-p set device name-partition number delimiter
-v verbose