You are here

mount disk image that contains LVM volumes

The easy way:

- install kpartx package (yum install kpartx)
- create device map from the disk image partition table (kpartx -a diskimage.img or kpartx -a /dev/volume-group/volume)
- rescan physical volume in the disks (pvscan)
- makes active the volume (vgchange  -a y /dev/other-volume-group/volume)
- mount it (mount /dev/other-volume-group/volume /path)
Hard way: