Monday, 10 June 2013

Out of inodes: file write error (No space left on device)


  1. df -hi
    1. proves you are out of inodes or not
    2. cause is most likely tons of small files in some "problem directory", poke around
  2. find <random_dir> -type f | wc -l
    1. give a count of file in that subdir
    2. common problem dirs
      1. /var/spool/<XYZ>
      2. /tmp
  3. find <problem_dir> -type f -delete
    1. deletes one file at a time
    2. rm will get stuck finding files first if you use wildcard like *

No comments:

Post a Comment

Note: only a member of this blog may post a comment.

Interview questions: 2020-12

Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer  Networking Layer 1 vs Layer 4 haproxy u...