Skip to content

[Feature] LOG_DISK_SIZE default too small for Proxmox/Ceph hosts #595

Description

@Blecherer

LOG_DISK_SIZE default too small for Proxmox/Ceph hosts

Summary

The default log2ram configuration uses:

LOG_DISK_SIZE=256M

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:

service vm:108 (error)

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

LOG_DISK_SIZE=2G

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions