... Playbook #8

Low space on server(%)

High space utilization on a server can cause performance degradation, system instability, and service disruptions. This playbook assists in identifying the sources of disk space consumption and provides strategies for swift recovery.

Check disk space usage
                              
df -kh,
                              
                            
Get folders usage of affected partitions in GB
                              
df -h | awk '$5+0 >= 90 {print $6}' | xargs -I {} sh -c 'echo \"Usage in {}:\" && du -sh {}/* | grep G'
                              
                            
Get folders usage of affected partitions in TB
                              
 df -h | awk '$5+0 >= 90 {print $6}' | xargs -I {} sh -c 'echo \"Usage in {}:\" && du -sh {}/* | grep T'