Deleted files under /etc/pve/nodes,is there any other way to recover them?

eden

New Member
Sep 25, 2023
2
0
1
I accidentally deleted files under /etc/pve/nodes, resulting in no virtual machines being visible in pve. I have tried testdisk and extundelete, but neither can recover the files. The qm related commands also cannot find the nodes related configuration files and cannot be used. Is there any other way to recover them?
 
Last edited:
I have tried testdisk and extundelete, but neither can recover the files.
Those aren't normal files. Its the content of a SQLite DB mounted to /etc/pve via fuse as pmxcfs: https://pve.proxmox.com/wiki/Proxmox_Cluster_File_System_(pmxcfs)#_recovery

Without a backup of your config.db or /etc/pve folder you are out of luck. Always have a recent backup of the /etc folder. You can for example back it up to your PBs using the proxmox-backup-client.

In case you run a cluster you might get a copy of those files from there. And PBS/VZDump backups of your guests at least should contain the firewall and VM/LXC configs of those guests.
 
Last edited:
Those aren't normal files. Its the content of a SQLite DB mounted to /etc/pve via fuse as pmxcfs: https://pve.proxmox.com/wiki/Proxmox_Cluster_File_System_(pmxcfs)#_recovery

Without a backup of your config.db or /etc/pve folder you are out of luck. Always have a recent backup of the /etc folder. You can for example back it up to your PBs using the proxmox-backup-client.

In case you run a cluster you might get a copy of those files from there. And PBS/VZDump backups of your guests at least should contain the firewall and VM/LXC configs of those guests.
It is indeed unfortunate that I didn't back up the config.db and /etc/pve directory.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!