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. Any advice appreciated. Thanks. Dave.
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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20070512/c6f2cd09/attachment.sig>
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.I consider LVM to be in the same class as "Maxblast" and similar so-called disk management software: Handy for those who really need it but a real PITA for those who don't. In the case of both, deliver me! My current CentOS-4.4 system on this machine uses LVM: Disk /dev/hda: 163.9 GB, 163928604672 bytes 255 heads, 63 sectors/track, 19929 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 13 104391 83 Linux /dev/hda2 14 19929 159975270 8e Linux LVM The drive on which I will install CentOS-5 is also physically installed on this machine as /dev/hdb: Device Boot Start End Blocks Id System /dev/hdb1 * 1 26 208813+ 83 Linux /dev/hdb2 27 153 1020127+ 82 Linux swap /dev/hdb3 154 12907 102446505 83 Linux /dev/hdb4 12908 23830 87738997+ 5 Extended /dev/hdb5 12908 23830 87738966 83 Linux I created a mount point on the running CentOS-4.4, mounted /dev/hdb5 and copied the root filesystem to it. When I get ready to install CentOS-5, the current /dev/hda goes on the shelf, /dev/hdb becomes /dev/hda and CentOS-5 gets installed on partitions hda1 and hda3 (boot & root respectively -- NO LVM). Then, to have access to all the wunnerful junque I've accumulated since 2005, I'll simply mount /dev/hda5 on a mount point created for that purpose, copy and consult as needed and LVM will be in my past. Let the flames begin. I dragged out an old asbestos suit.> 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. > Any advice appreciated. > Thanks. > Dave.