* [linux-lvm] lvmdiskscan and mouting a LVM2 loopback file
@ 2010-07-26 19:40 Benjamin Henrion
2010-07-27 9:01 ` Bryn M. Reeves
0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Henrion @ 2010-07-26 19:40 UTC (permalink / raw)
To: linux-lvm
Hi,
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?
Best,
--
Benjamin Henrion <bhenrion@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."
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] lvmdiskscan and mouting a LVM2 loopback file
2010-07-26 19:40 [linux-lvm] lvmdiskscan and mouting a LVM2 loopback file Benjamin Henrion
@ 2010-07-27 9:01 ` Bryn M. Reeves
0 siblings, 0 replies; 2+ messages in thread
From: Bryn M. Reeves @ 2010-07-27 9:01 UTC (permalink / raw)
To: LVM general discussion and development
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07/26/2010 08:40 PM, Benjamin Henrion wrote:
> ===============================================
> # 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?
Can you post the output of the comand "pvs -a"?
It should look something like this:
sudo pvs -a
PV VG Fmt Attr PSize PFree
/dev/dm-1 -- 0 0
/dev/dm-2 -- 0 0
/dev/dm-3 -- 0 0
/dev/loop0 lvm2 -- 32.00M 32.00M
/dev/loop1 tvg0 lvm2 a- 28.00M 28.00M
/dev/ram0 -- 0 0
/dev/ram1 -- 0 0
/dev/ram10 -- 0 0
/dev/ram11 -- 0 0
/dev/ram12 -- 0 0
/dev/ram13 -- 0 0
/dev/ram14 -- 0 0
/dev/ram15 -- 0 0
/dev/ram2 -- 0 0
/dev/ram3 -- 0 0
/dev/ram4 -- 0 0
/dev/ram5 -- 0 0
/dev/ram6 -- 0 0
/dev/ram7 -- 0 0
/dev/ram8 -- 0 0
/dev/ram9 -- 0 0
/dev/root -- 0 0
/dev/sda1 -- 0 0
/dev/sda2 t60_vg0 lvm2 a- 93.03G 0
In that output loop0 is an orphan PV (i.e. it has not been assigned to
any VG yet) and loop1 contains a VG named "tvg0" (sda2 is my system VG).
Regards,
Bryn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkxOoHAACgkQ6YSQoMYUY959RACgn1US38H1qfRMlrSRBn7uPya5
iasAoM2Iw/1PJUVsJRJt3LoFcQ4Blt8O
=JpOa
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-07-27 9:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-26 19:40 [linux-lvm] lvmdiskscan and mouting a LVM2 loopback file Benjamin Henrion
2010-07-27 9:01 ` Bryn M. Reeves
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).