ssh_disk_breakdown
Find what filled a disk after a disk alarm. Reports free space per filesystem, largest directories, and docker, journald, and package caches—read-only, nothing deleted.
Instructions
Finds what filled a disk. Reports free space per filesystem, the largest directories under each path given, and what docker, journald and package caches hold. Reads only, nothing is deleted. Use it after a disk alarm; for how full the disks are at all, ssh_snapshot answers in one line.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sudo | No | Read as root. Straight away for places a plain user cannot read (/root, /var/lib/docker); otherwise retry with true when the answer names what it could not read. Default: false The cache section then reads root's home, not the profile user's. | |
| paths | No | Where to look. Naming the suspect beats walking the whole filesystem. Default: ["/"] | |
| top_n | No | Largest directories named per path. Default: 20 | |
| profile | Yes | Machine name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cache | No | ||
| docker | No | ||
| largest | No | ||
| var_log | No | ||
| journald | No | ||
| unreadable | No | Not looked into: the sizes above leave these out | |
| filesystems | No | ||
| unavailable | No |