what can to if deleted /etc/pce


New Member
Jun 18, 2023
Hi Team
( while attempting to delete a cluster.)
I accidentally deleted /etc/pve.
After doing this, I have no access through a browser to my proxmox
Fortunately, I noticed that the machines I created and in my possession are still active, and nothing was deleted
I do not have a backup of this file or anything similar.
I'm in serious trouble.

Please help me. What can I do now?
I have no experience and have essential things on the servers :(
Last edited:
On a normal ext4 mounted filesystem you could well use testdisk/photorec, but that's unfortunately not possible in this case with fuse/sqlite (db located in /var/lib/pve-cluster - but without a backup not helpful). Without a (recent enough) backup there's likely not much you can do about.

mount | grep etc
/dev/fuse on /etc/pve type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other)

A bit late for now but the whole pve-cluster folder can be backed up and stored somewhere else with
tar czf pve-cluster-bak.tgz -C /var/lib/pve-cluster ./

To see the current state of your configuration or a backed up version:
sqlite3 /var/lib/pve-cluster/config.db  # file readable by root

SELECT * FROM tree WHERE parent = 0;

I'm not sure if that works for you since you didn't deleted the db file directly just its mounted content. But maybe you could try to run photorec (apt install testdisk) to restore (a previous version of) the db file. Choose:
Disk /dev/mapper/pve-root
and set 'File Opt' only to
[X] sqlite SQLite
> Save > Search > ext2/ext3

It's a good idea store the found files on another physical disk to avoid writing on your current one. There will be many restored db files, you can walk through them with a simple script and look for the right db with the above sql statement.
Last edited:
  • Like
Reactions: Lukas Wagner
I tried to run rm -rf /etc/pve on a local (newly-created) VM and found out that not every directory can be deleted, even as root. Could you please share the output of ls /etc/pve?
Hi, my friends. I recently experienced a system reboot that caused all my VMs to shut down. To resolve the issue, I made the decision to reinstall everything from scratch and upload all the necessary proxmox components again.
Unfortunately, I lost a lot of my machines and had no recruitment


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!