WHICH FOLDERS IN /VAR CAN I CLEAN WITHOUT BREAKING THE JUMP HOST? lol

disk-spacelinuxlogs3 replies 路 255 views 路 started
  1. Help. The jump host is barely alive. SSH works, but every command complains about writing temp files. Here's the disk:

    Disk 0 (C:) Active time 100%

    Disk 0 (C:)   Active time 100%
    Not responding
    

    i deleted the biggest log i could find and df didn't budge. am I losing my mind?

    im pretty suree Im missing something fundamental about how Linux handles deleted files, the service is still running and still writing, as far as I can tell... do I need to restart something? will that lose data?? im nervous.

    thinking

    1
  2. wait does lsof +L1 list any large deleted files still held open? ??

    1 0 helpful
  3. ok so lsof +L1 shows the app process holding a multi-GB deleted log. that's why df didn't move. idk what else to say tbh

    5 2 helpful
  4. drill down without crossing mounts:

    sudo du -xh --max-depth=2 /var | sort -h | tail -20
    

    The usual suspects are /var/log, /var/lib/docker, /var/cache/apt or /var/cache/dnf, /var/lib/mysql, and /var/spool (mail queues). worked for me anyway 馃し

    thinking

    2 2 helpful

Reply to this topic

Sign in or create an account to reply.