ssh_disk_breakdown
Identify what fills a disk over SSH: free space per filesystem, largest directories, and Docker, journald, and package cache sizes. Read-only analysis.
Instructions
Finds what filled a disk: free space per filesystem, the largest directories under each path given, and what docker, journald and package caches hold. Reads only, nothing is deleted. 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 |