Page MenuHomeSoftware Heritage

Fix lack of disk space on louvre:/
Closed, MigratedEdits Locked

Description

The root filesystem on louvre became full last night between 4am and 5am.

Proposed fixes:

  • extend the filesystem. Only 20 GB are currently being used while 500 GB remain free on the vg-louvre volume group.
  • remove various pve-kernel packages and other Linux versions. Only one of them is obviously being used while at least 25 different ones use space on the root filesystem.

Event Timeline

ftigeot triaged this task as High priority.Aug 23 2018, 1:49 PM
ftigeot created this task.
ftigeot changed the task status from Open to Work in Progress.Aug 23 2018, 2:18 PM

Root filesystem successfully resized:

lvextend -v -L+20G /dev/vg-louvre/louvre-root
resize2fs /dev/mapper/vg--louvre-louvre--root
# df -h / 
/dev/mapper/vg--louvre-louvre--root   38G   13G   24G  36% /

Running sudo apt-get purge 'pve-kernel-4.(9|13).*' will clean up (some of) the useless kernels.

Proxmox ships /etc/apt/apt.conf.d/75pveconf which tells apt never to autoremove old pve-kernel packages;

What they should really do is use the same hook as Debian, which generates a configuration file that prevents autoremoving only a few kernels (the latest one, the running one, and the version below the currently running one) and lets apt clean up the rest, but I guess they consider hypervisor disk space to be cheap...

The current situation looks good enough for now, closing.