Hi everyone,
I have a question regarding the pxmcfs process in Proxmox. I've noticed that it writes to the hard drive constantly, which has me concerned about potential long-term damage to the disk. After looking at the pve-cluster service code (available at here), I discovered that most of the writes are to the /var/lib/pve-cluster folder, specifically in the config.db-wal file.
To address this, I created a service that runs before pve-cluster, which does a bind mount of /dev/shm/pve-cluster-ram to /var/lib/pve-cluster. This results in files that change permanently being written to memory instead of the hard drive.
I should mention that I use Proxmox as a standalone node, and I do not have a cluster configured.
However, I have some questions about this approach. Firstly, what data could I lose in the event of a server restart where the config.db and config.db-wal files are lost? Secondly, would it be risky for my system if I don't make any system modifications like creating containers or changing the firewall? Lastly, how would backups be affected if I create a backup of a container/VM and the system shuts down (with config.db and config.db-wal in memory)? Could the backup list become out of sync with the actual data on my disk?
I would greatly appreciate any advice or suggestions on how to handle this situation. Thank you in advance for your help.
Best regards, Agustin I
I have a question regarding the pxmcfs process in Proxmox. I've noticed that it writes to the hard drive constantly, which has me concerned about potential long-term damage to the disk. After looking at the pve-cluster service code (available at here), I discovered that most of the writes are to the /var/lib/pve-cluster folder, specifically in the config.db-wal file.
To address this, I created a service that runs before pve-cluster, which does a bind mount of /dev/shm/pve-cluster-ram to /var/lib/pve-cluster. This results in files that change permanently being written to memory instead of the hard drive.
I should mention that I use Proxmox as a standalone node, and I do not have a cluster configured.
However, I have some questions about this approach. Firstly, what data could I lose in the event of a server restart where the config.db and config.db-wal files are lost? Secondly, would it be risky for my system if I don't make any system modifications like creating containers or changing the firewall? Lastly, how would backups be affected if I create a backup of a container/VM and the system shuts down (with config.db and config.db-wal in memory)? Could the backup list become out of sync with the actual data on my disk?
I would greatly appreciate any advice or suggestions on how to handle this situation. Thank you in advance for your help.
Best regards, Agustin I