File system Usage is full


If your file system usage is full then follow the below steps to resolve the issue.

  1. Check which file is larger
  2. Check which file is recently modified
  3. Check which process is holding more disk memory

Check which file is Larger

~]#find / -type f -size +100000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'

 above command will find all the files which are more than 100MB, if you want to change the size and path of the mount point you can also do that.

Check which file is recently modified 


To find the most recently modified files, sorted in the reverse order of update time
~]# find / -type f -printf '%TY-%Tm-%Td %TT %p\n' | sort -r
 
To search for files in / and all its sub-directories, that have been modified in the last 60 minutes
~]# find / -type f -mmin -60

Check which process is holding more disk memory

Check which process using more memory using below command
~]#ps axu | awk '{print $2, $3, $4, $11}' | head -1 && ps axu | awk '{print $2, $3, $4, $11}' | sort -k3 -nr |head -5


If any process is using more memory restarting that process will release the space.

Thanks for reading.. Provide your Valuable comments


No comments:

Post a Comment