LOG_DISK_SIZE default too small for Proxmox/Ceph hosts
Summary
The default log2ram configuration uses:
This value is too small for hardened Proxmox VE hosts running additional services such as Ceph, auditd, process accounting (acct) and Netdata.
Environment
- PegaProx Hardened Proxmox VE 9
- 2-node HA cluster
- Ceph
- Netdata
- auditd
- acct (process accounting)
- RAM: 377 GiB
What happened
After several days of normal operation, /var/log filled up completely:
Filesystem Size Used Avail Use%
/dev/zram0 224M 219M 0 100%
Netdata warned about /var/log for several hours before the filesystem became full.
Eventually Proxmox started reporting:
No space left on device
closing file '/var/log/pve/tasks/active.tmp.xxxxx' failed
The HA manager then marked one HA resource as failed:
The VM could no longer be started or migrated until the HA error flag was manually cleared.
Root cause
The main log consumers were:
/var/log/account (acct process accounting)
- auditd
- journald
- Proxmox task logs
All of these are enabled by the PegaProx hardening profile.
Workaround
Increasing
followed by a reboot solved the issue.
Afterwards:
Filesystem Size Used Avail Use%
/dev/zram0 2.0G 238M 1.6G 14%
No further "No space left on device" errors occurred.
Suggestion
Instead of using a fixed value of 256M, consider one of the following:
- choose
LOG_DISK_SIZE dynamically based on installed roles (Ceph, HA, etc.)
- increase the default for server installations (e.g. 1–2 GiB)
- document that hosts with Ceph/auditd/acct should increase
LOG_DISK_SIZE
This would prevent HA failures caused by a full /var/log filesystem while keeping the benefits of log2ram.
LOG_DISK_SIZE default too small for Proxmox/Ceph hosts
Summary
The default
log2ramconfiguration uses:LOG_DISK_SIZE=256MThis value is too small for hardened Proxmox VE hosts running additional services such as Ceph, auditd, process accounting (
acct) and Netdata.Environment
What happened
After several days of normal operation,
/var/logfilled up completely:Netdata warned about
/var/logfor several hours before the filesystem became full.Eventually Proxmox started reporting:
The HA manager then marked one HA resource as failed:
The VM could no longer be started or migrated until the HA error flag was manually cleared.
Root cause
The main log consumers were:
/var/log/account(acct process accounting)All of these are enabled by the PegaProx hardening profile.
Workaround
Increasing
LOG_DISK_SIZE=2Gfollowed by a reboot solved the issue.
Afterwards:
No further "No space left on device" errors occurred.
Suggestion
Instead of using a fixed value of
256M, consider one of the following:LOG_DISK_SIZEdynamically based on installed roles (Ceph, HA, etc.)LOG_DISK_SIZEThis would prevent HA failures caused by a full
/var/logfilesystem while keeping the benefits oflog2ram.