[ale] Recovering PV/LVG without /etc/lvm/archive/file.vg
Raj Wurttemberg
rajaw at c64.us
Wed Jun 19 22:17:03 EDT 2024
Hey <mailto:deepbsd.ale at gmail.com> @David Jackson,
I’ve never had to do this… but I found an interesting Red Hat article that seems to have a similar situation as yours. You might have already seen this article but I thought I would mention it:
6.4. Recovering Physical Volume Metadata
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/4/html/cluster_logical_volume_manager/mdatarecover
Kind regards,
/Raj W.
From: Ale <ale-bounces at ale.org> On Behalf Of David Jackson via Ale
Sent: Wednesday, June 19, 2024 9:00 PM
To: Atlanta Linux Enthusiasts <ale at ale.org>
Cc: David Jackson <deepbsd.ale at gmail.com>
Subject: [ale] Recovering PV/LVG without /etc/lvm/archive/file.vg
The subject says it. I was installing a new drive and installing a fresh OS onto the new drive, then transporting the old files over to the new drive and OS (ie, /home/dsj)
I had booted from an archlinux ISO, was doing a manual partition. But then I made a boo boo with the new Logical Volume Group and wanted to blow it away to start over.
My new system was on nvme1n1 and I blew away the PV and LV info for nvme0n1 which contained the PV/LV info for all my previous data. Very sad senior moment!
Now, since I booted from an arch ISO usb stick, the /etc/lvm/archive files were in volatile memory, so I don't have a copy of them. When I load up my new system, which I eventually installed just fine (I'm writing this email from that system), everything works great. But I'd like to recover the old system (that's probably still on nvme0n1 in the second partition, When I boot from the new system on nvme1n1, I can look in /dev/disk/by-uuid/ and see the old PV for nvme0n1 uuid I think:
2f1aede8-a033-4ec4-8c9f-290d7a7c3458
But there's no record for LVs or PVs on nvme0n1 anywhere in /etc/lvm/archive.
Also, whenever I install Arch, I use a script that auto creates the same PV and LV specs on the target drive. The partition sizes won't have changed.
(Pretty much all the googling I've read assumes that a /etc/lvm/archive/filename.vg <http://filename.vg> exists somewhere. )
Is there any way I can restore the PV/LVG info on nvme0n1 with what I have available? Without the archive file?
Thanks!
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.ale.org/pipermail/ale/attachments/20240619/5b0041c8/attachment.htm>
More information about the Ale
mailing list