Questions tagged [kpartx]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

kpartx does not enumerate partitions properly on Software RAID

When I boot my system, partitions on a software raid group are not being enumerated automatically. As a temporary fix I added the instruction break=mount in grub, so I can run manually kpartx -a /dev/...
1
vote
1answer
192 views

Deciphering kpartx output

I hope I've posted this in the proper place, if I haven't then please advise me on where to move the post. I've tried deciphering the kpartx output myself but now I'm sort of stuck and in need of ...
1
vote
1answer
478 views

kpartx device to image mapping

I am using kpartx to map the paritions of an image file to device mapper. kpartx maps the image to one of the free loop devices, for example, /dev/loop0 Is there a way to query what image is mapped ...
5
votes
1answer
12k views

Loop back mount a VMDK flat image on a Linux Box

I am trying to loop mount a VMDK flat image generated by VMware fusion. The VMDK file has the -flat extension. I am trying to use kpartx kpartx -av /path/to /my/vmdk but I get llseek error device-...
1
vote
1answer
5k views

Device file in /dev/mapper/ present even after removing partition with parted

These observations are from CentOS 6.3, 6.4 and 6.5. I have a multipath device with a single partition: # ls -l /dev/mapper/ total 0 crw-rw---- 1 admin root 10, 57 Dec 22 12:52 control lrwxrwxrwx 1 ...
0
votes
1answer
930 views

No ouptut from kpartx -av and -l

I am trying to learn how to use kpartx, and am having some trouble. My end goal is to use nested LVMs for virtual machines, where the VM's "/home" is in one nested LVM and the rest of the VM is on a ...
4
votes
1answer
616 views

kpartx verbose info: what does it mean?

When mounting images with the wonderful kpartx in verbose mode it displays some, likely very useful, information: # kpartx -av wheezy_cln.img add map loop0p1 (252:2): 0 131072 linear /dev/loop0 2048 ...
1
vote
3answers
734 views

Opening a Qemu/Xen file based VM Image (won't boot after upgrade)

Apart from one Virtual Host still running Xen/RHEL5, all our virtual capability is hosted on KVM hosts with LVM storage devices. I've stupidly attempted an Ubuntu full release upgrade on a guest ...
0
votes
1answer
1k views

poor performance with vmdk mounted as loop device even after conversion to raw

Edit 13/12/12 - At this stage it would appear to be related to Western Digital (and possibly others) Advanced Format 4K block sizes. This link goes some way into describing the issue, however the ...
0
votes
3answers
856 views

Backing up LVM volume with multiple partitions

I want to create a backup of a LVM volume (Xen DomU's), however a LVM volume can have multiple partitions and those are dynamic (I cannot guarantee LVM #1 has 1 partition and LVM #2 has 3 etcetera). ...
6
votes
1answer
7k views

losetup -d giving : device busy

I am mounting a KVM disk (LVM) following these commands : # losetup /dev/loop0 foo.img # kpartx -av /dev/loop0 # mount /dev/mapper/loop0p1 /mnt # unmount /mnt # kpartx -dv /dev/loop0 # losetup -d /...