Re: reading lvm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Saturday 12 May 2007, Dave wrote:
> Hi,
>     I don't like to start messages out this way and this is my opinion but
> i'm really beginning to hate lvm.
>     With that out of the way here's the situation. I have a centos 4.4
> drive with two partitions on it, one an hd*1 partition former /boot ext3
> partition, which i can read fine, but which doesn't have the data i want.
> I've got some data on an lvm volume /dev/hd*2 which contains two partitions
> within it's volume, the last one which i believe is swap and the first one
> which was a former / filesystem and has data on it i am trying to obtain.
> Using fdisk i can read that it's linux-lvm, but i can't get mount to read
> it.

I may have misunderstood you, but partitions that show up as "LVM" when you 
use fdisk are not meant to be mounted. LVM is a bit more complex, that 
partition is in lvmspeak a PV (Physical Volume). The next layer up is the VG 
layer (Volume Groups). A VG can be made up out of one or more PVs. And then 
finally, the topmost layer, LV (Logical Volumes). LVs are the actual block 
devices that you use (where filesystems live, what you mount etc.). You can 
have many LVs in a VG and they can span several PVs.

To find out which LVs you can mount run lvdisplay. You then typically mount it 
like "mount /dev/VGNAME/LVNAME /mountpoint".

All that said, please do read up on how LVM works.

/Peter

Attachment: pgp0qPQgxHMQ5.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux