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