- Log into system:
ssh <system>
- Check for full filesystem:
df -h
- Detemine the largest files on the filesystem:
du -ah / --exclude="/proc" | sort -h -r | head -n 5 2>/dev/null
- Check the output for something that can be deleted.
- If the
du
command doesn’t show anything, consider whether something that was running might have created a temporary file that exceeded the remaining space on the filesystem. - If you find temporary files created at run-time that exceed the remaining drive space, you have 3 choices:
A. add more drive space
B. spread out the run times of jobs so that concurrent jobs don’t exceed the remaining drive space
C. consider adding compression to the temporary files before writing them to the filesystem - Check the inode usage with this:
df -i
- If you find the issue is inode usage, you have 2 choices:
A. delete file s of directories that use a large number of inodes:
1. identify which files and directories are using the most inodes by running this:
for i in /*; do echo $i; find $i | wc -l; done
2. examine the output for toplevel directories that are using a lot of inodes
3. re-run the command in step 1. replacing/*
with the toplevel directory to check
4. Once you determine where the issue is: delete expendable files or directories
B. increase the number of available inodes:
1. unmount the full filesystem:umount <filesystem mountpoint>
2. update the number of inodes:mkfs.ext3 /dev/<device> -N <desired num of inodes>
3. re-mount the filesystem:mount -a
Archives
- October 2024
- August 2024
- June 2024
- May 2024
- February 2024
- December 2023
- October 2023
- June 2023
- April 2023
- August 2016
- June 2016
- May 2016
- February 2016
- December 2015
- October 2015
- May 2015
- April 2015
- January 2015
- December 2014
- November 2014
- October 2014
- January 2014
- December 2013
- November 2013
- October 2013
- August 2013
- July 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- April 2012
Categories
Meta