Diagnose a Full Disk on a Production Host

Asked at ByteDance · Coding Questions · Difficulty: Medium · Last asked Jul 3, 2026

A Linux host runs an API service. Users report that requests have become slow and some fail, and the service logs show errors when it writes to disk. Monitoring shows the root filesystem at 100% usage. You have shell access to the host. Diagnose the incident step by step, from the first command to the fix.

Loading the problem…