Bug#638793: lvm2: Devices for partitioned logical volume

Frédéric MASSOT frederic at juliana-multimedia.com
Sun Aug 21 22:16:09 UTC 2011

Package: lvm2
Version: 2.02.84-3
Severity: wishlist


I use Proxmox that processes the logical volume as a raw disk and create partitions for the virtual machine.

When the virtual machine is stopped, sometimes I need to access data from virtual machines for maintenance purposes, or when I migrate a physical machine to a virtual machine.

One way to access the Linux partition is to use losetup with offest calculated using information from fdisk, then re-scan the physical volumes, volume groups to activate and mount the physical volume.

I have always found this solution quite risky to calculate the offset and heavy handling LVM.

The other method is to use kpartx.

It would be interesting that LVM2 to create the devices for logical volumes that are partitioned. This allowed to easily know if there are partitions in a logical volume, and to intervene quickly and easily in case of problems in a virtual machine that will not start or a bug.

Udev script of mdadm to create the devices when the RAID drives are partitioned.

Can you fill in the udev script of LVM2?


-- System Information:
Debian Release: wheezy/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-gloon (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lvm2 depends on:
ii  dmsetup                      2:1.02.63-3 The Linux Kernel Device Mapper use
ii  libc6                        2.13-4      Embedded GNU C Library: Shared lib
ii  libdevmapper1.02.1           2:1.02.63-3 The Linux Kernel Device Mapper use
ii  libreadline5                 5.2-7       GNU readline and history libraries
ii  libudev0                     167-3       libudev shared library
ii  lsb-base                     3.2-27      Linux Standard Base 3.2 init scrip

lvm2 recommends no packages.

lvm2 suggests no packages.

-- no debconf information

More information about the pkg-lvm-maintainers mailing list