how to mount /etc/pve in rescue mode

tincboy

Renowned Member
Apr 13, 2010
466
6
83
I've a crushed server which I want to recover it's important data only
but in a systemrescue live cd environmental how can I read /etc/pve data ?
 
  • Like
Reactions: RocketSam
Is it possible to use this file on newly installed server? ( just copying to new server's /var/lib/pve-cluster/config.db )
 
Is it possible to use this file on newly installed server? ( just copying to new server's /var/lib/pve-cluster/config.db )

Yes (depend on what happened on the old server?). But stop 'pve-cluster' service first (and make backup of old file)
 
I've copied the /var/lib/pve-cluster/config.db to new installed server but even after reboot the `qm list` command shows no vm also /etc/pve/qemu-servers is empty
 
I've copied the /var/lib/pve-cluster/config.db to new installed server but even after reboot the `qm list` command shows no vm also /etc/pve/qemu-servers is empty

You probably changed the hostname?

Directory /etc/pve/qemu-server/ is just a symbolic link to /etc/pve/nodes/<hostname>/qemu-server/
 
Yes the hostname is exactly the same,
But it's also necessary to copy below files:
/var/lib/pve-cluster/config.db /var/lib/pve-cluster/config.db-shm /var/lib/pve-cluster/config.db-wal
coping all these 3 files it got working and `qm list` shows all VMs,