[linux-lvm] lvmdiskscan and mouting a LVM2 loopback file

Benjamin Henrion bh at udev.org
Mon Jul 26 19:40:31 UTC 2010


I have setup an LVM device on loopback, but I cannot remember how to
mount it back.

I did an lvmdiskscan:

# lvmdiskscan
  /dev/loop0 [      39.06 GiB] LVM physical volume
  /dev/root  [     222.79 GiB]
  /dev/sda5  [       9.45 GiB]
  1 disk
  1 partition
  0 LVM physical volume whole disks
  1 LVM physical volume

But I don't know how to detect the logical volumes inside /dev/loop0.

lvdisplay and vgdisplay says:

# lvdisplay
  No volume groups found
# vgdisplay
  No volume groups found

Any idea how to get the volume and group back?


Benjamin Henrion <bhenrion at ffii.org>
FFII Brussels - +32-484-566109 - +32-2-4148403
"In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators."

More information about the linux-lvm mailing list