[SOLVED] Restore PVE-OLD to PVE

dgruendig

New Member
Feb 2, 2025
3
0
1
On my system with a working instance of proxmox, I was trying to test something by installing a new instance on a secondary drive. I wasn't paying enough attention to reallize that the old system wasn't going to boot by itself anymore, since it is now renamed from pve to pve-old-(something).

Is there any way to restore the old system to a bootable state? This would save me alot of work...
 

Attachments

  • Screenshot 2025-02-02 195236.png
    Screenshot 2025-02-02 195236.png
    173.8 KB · Views: 5
AFAIK, if while in initramfs you use the vgrename command to change that pve-OLD-XXXXXXXX to pve, & then boot you should be good.
See vgrename.

Disclaimer: I've never done it before - YOU SHOULD ALWAYS HAVE FULL & RESTORABLE BACKUPS!
 
  • Like
Reactions: Kingneutron
AFAIK, if while in initramfs you use the vgrename command to change that pve-OLD-XXXXXXXX to pve, & then boot you should be good.
See vgrename.

Disclaimer: I've never done it before - YOU SHOULD ALWAYS HAVE FULL & RESTORABLE BACKUPS!

Code:
vgrename: not found

Unfortunately this does not work. I'm still relatively fresh to Linux so there might be something obvious that I missed. I couldn't find any usable info online though. I can see the file in the /dev folder but I guess this is just something symbolic that gets 'overwritten' upon reboot.

Of course I should have a backup. If I cannot restore this, it's fine but it would be a waste of quite some time. I was still configuring everything and didn't get to making any backups yet. The fault is my own, I totally accept that, yet this seems to be such a minor problem, that doesn't require a full reinstall, right?
 
I have booted into terminal from the live media, used /sbin/vgscan to show the available drive group and then renamed it, using /sbin/vgrename. Thanks for the help!
 
Last edited:
I will not be able to access the lvm drive from there?
Any live media that has the lvm2 package will be able to. If the live media not have that package, you could simply install it there, once booted (with internet access) using:
sudo apt update && sudo apt install lvm2

Just checked on Systemrescue & the LVM package is already included.
 
Once you've successfully booted up again in Proxmox - Maybe mark this thread as Solved. At the top of the thread, choose the Edit thread button, then from the (no prefix) dropdown choose Solved.