Case study: a NAS root partition at 100%
The data volume was 1% used. The system partition was full. The cause was a backup job writing to a drive that was not mounted.
The alert
A Synology NAS running the Metis Linux agent went Critical on the dashboard:
drive md0 [/] is 98% full. The NAS had four volumes and terabytes free, so the alert looked wrong.
md0 is the DSM system partition, about 2.3 GB, and it normally sits high. The first assumption was a false alarm.
It was not. A full system partition stops DSM from writing logs, package data and settings. A reading near 98% on a partition this size has little margin.
What was checked
df -hshowed/dev/md0at 100% (2.3 GB used, 0 free) and the data volume at 1% of 2.7 TB.du -xon/(one filesystem only) listed the largest directories./usrand/varwere normal DSM content.- The Metis agent used 4.6 MB under
/var/lib/metis, within its 30 MB history limit. It was not the cause. /tmpis a separate in-memory filesystem and was not counted./mnt/usb-backupsheld about 650 MB, on the root partition.mountand/proc/partitionsshowed no USB storage attached at all.
The cause
A virtualisation backup tool had two destinations pointing at /mnt/usb-backups, a folder meant to be a mounted USB drive.
The drive was not mounted, so the folder was an ordinary directory on the root filesystem. Three VM exports (327, 167 and 167 MB) were written into it, and the partition filled.
Deleting the three files brought the partition from 100% to 74%. The lasting fix is to point the backup destinations at a share on the data volume, or to make sure the drive is mounted before jobs run.
What Metis changed because of it
Finding this took an SSH session and four commands. The same questions are now answered from the alert.
- Find what's using space on any drive-space alert. The agent reads the volume on request and returns the largest folders and files. Names and sizes only; nothing is kept, and it reads only one filesystem.
- Recent growth. The alert shows how much the volume gained and when, from the agent's own history, so a one-day jump of 640 MB reads differently from a slow leak.
- Unmounted drive hint. Data found under
/mntor/mediaon the volume being read is flagged: if that folder is meant to be a separate drive, it is not mounted. - Explain covers system partitions: what they hold, why they run high, and what to check.
- Hide. If a drive is meant to be full, Hide on the alert leaves it out of the space checks. It can be turned back on under the machine's Edit dialog.
- Copy on every alert copies its message, for tickets and chat.
Metis raised the alert and narrowed it to one volume. It does not repair anything: deleting files and changing backup destinations stay with you.
Takeaways
- A small system partition at 90% or more is worth one look. Do not hide it before checking what is on it.
- A path that should be a mount point and holds data on the root filesystem is a common way to fill
/. - Alert on the volume that is full, not the machine's total free space. Here the totals looked fine.