Help: lost LVM logical volumes on old disk after FC4 install




I'm seeking advice on how to recover old logical volumes that I stupidly lost after a FC4 install as follows:


Initial conditions
----------------------
- Had old computer running FC4
- Old computer had one disk with two partitions:   /boot and an LVM2 PV.
- The PV belonged to volume group VolGroup00, and had three logical volumes:
  LogVol00 (root), LogVol01 (swap), LogVol02 (home)
  (and this PV was the only PV in the group).

Then I went and did this
--------------------------------
- Got new computer (with new disk)
- Installed old disk in new computer, thinking I'll have easy access to my old data
- Performed custom install of FC4 on new computer
- During installer's manual partitioning phase, I defined a logical volume group
on the *new* disk called VolGroup00, with three logical volumes:
LogVol00 (root), LogVol01 (swap), LogVol02 (home)
- I then noticed that the installer had properly found my *old* disk and the *old*
PV. But the old PV was not associated to any LVM volume group
(unlike those on the *new* disk, which were shown as belonging to VolGroup00).
- Then I did something like: clicked "LVM", and created VolGroup01, which
then appeared (in the partitioner GUI listing) next to the PV on my old disk.
I thought: "OK, so my new FC installation will go on the new disk in
VolGroup00, and my old data will still be on the old disk in VolGroup01"
(I was careful to *not* check the "format" box).
- I then finished the FC4 installation


Now I can only find logical volumes on my new disk. My logical volumes on the old
disk seem to have disappeared!


Running vgscan and lvscan:
- on *new* disk: finds all LVs properly
- on *old* disk: finds only volume group VolGroup01, but no logical volumes!


Running vgchange -ay doesn't yield anything different.

Two questions:
1. What happened? Did I inadvertently overwrite my old volume group when I
defined VolGroup01 in the installation GUI? If so, I'm surprised that the
installer didn't warn that I was about to lose any predefined logical volumes!


2. Is there any way to recover the data on my old logical volumes? I have to
believe that the data is still all there in principle.


Thanks very much for any advice.

Dave

_________________________________________________________________
Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: Cannot mount old drive with LVM partition - help!
    ... Basically rename the volgroup00 to volgroup01 or whatever so hdb ... under LVM. ... Plz read the recovering Lvm2 volume part of article entirely. ... backup file by examining the LVM2 header on the disk and editing out the ...
    (alt.os.linux)
  • Re: Cannot mount old drive with LVM partition - help!
    ... Basically rename the volgroup00 to volgroup01 or whatever so hdb ... Some LVM prints might help etc. ... Recovering and Renaming the LVM2 Volume ... backup file by examining the LVM2 header on the disk and editing out the ...
    (alt.os.linux)
  • Re: How to mount an LVM volume? (was lvm2 problem)
    ... and I need to mount the old FC5 boot disk to copy some stuff off of it. ... I said "lvm vgscan" and got: ... Found volume group "VolGroup00" using metadata type lvm2 ...
    (Fedora)
  • Yet another post on disk copy methods
    ... Because I have experienced several disk failures over the past 20 years, I like to keep a duplicate hard disk around that duplicates all the software and setup on my work computer. ... Unfortunately, as I discovered, you cannot then mount this with the old disk and copy the partition contents, because the old and new disks have the same LVM names. ... I reinstalled a minimal system from scratch, but this time edited the LVM group name changing VolGroup00 -> VolGroup01. ... I altered those, repacked the initrd file according to those directions, and copied it to the boot partition of the new disk. ...
    (Fedora)
  • Re: Cant add second disk to FC4 to rsync every night.
    ... > hard disk to my system that won't be tied into my existing volume. ... > Now it seems that with LVM the drives are tied together into a bigger ... FC3 box where it was part of VolGroup00? ...
    (Fedora)