Looks like someone on the fedora forum had something similar happen....they seemed to be able to recover knowing the UUID of the "lost" drive and the file in /etc/lvm pvcreate -f –uuid "Z4lh8H-G0e8-K8q1-4WB6-faac-39hk-b82MWU" –restorefile /etc/lvm/backup/recover /dev/sdb
http://fedoraforum.org/forum/showthread.php?t=164626 Hope that's helpful. -Shawn On 12/14/07, Dan Coutu <[EMAIL PROTECTED]> wrote: > > FYI, I do have Red Hat support on this case as well. I figured, and so > far correctly, that I'd get faster answers here then there. > More below. > > Ben Scott wrote: > > On Dec 14, 2007 12:23 PM, Dan Coutu <[EMAIL PROTECTED]> wrote: > > > >> Yes, I did them in that order. The reason that I did the mkfs ... > >> > > > > If you ran mkfs on a device that was a PV, after you ran "pvcreate", > > you've overwritten that PV's on-disk metadata, and basically wrecked > > that PV. > > > > All the subsequent error messages about not finding the signature or > > UUID are likely because LVM has copies of the metadata in other > > locations. So LVM knows there *should* be a PV there, but can't find > > it goes to look. (I know LVM caches metadata under /etc/lvm/, and I > > think it also keeps copies of all the metadata for a VG in each member > > of the VG.) > > > > > >> # vgextend VolGroup00 /dev/sdb > >> /dev/cdrom: open failed: No medium found > >> Volume group "VolGroup00" successfully extended > >> > > > > The /dev/cdrom part is likely a red herring. Some LVM utilities > > scan all the possible devices in the system, looking for devices which > > might have PVs on them. Since any IDE node (hda, hdb, hdc, etc.) > > might have a hard disk on it, it's going to probe all of those. Once > > of those was likely your CD-ROM. > > > > The second message, about the VG being successfully extended, > > indicates the PV was successfully added to the VG. Then you blew it > > away with the mkfs. ;-) > > > Exactly. I had never seen any message like that when doing LVM things > and it threw me off. I figured it was an error of some sort and that I > had to take some other action. Feh. > > > >> I've tried a new pvcreate but can't get rid of the uuid error message > >> and cannot do any vg* commands at all because of it. > >> > > > > You probably need to first do a vgreduce to remove the (wrecked) PV > > from the VG. You may also need to do a pvremove to remove all traces > > of the wrecked PV; not sure on that. > > > Yeah, the Red Hat support person suggested that. Only it doesn't work. > The vgreduce that is. It gripes about > the unknown uuid. So the ball's back in his court. We shall see. > > Dan > _______________________________________________ > gnhlug-discuss mailing list > gnhlug-discuss@mail.gnhlug.org > http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/ >
_______________________________________________ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/