Root partition alerts

From Apoyar Wiki
Revision as of 08:55, 30 November 2021 by 223.185.118.125 (talk) (Created page with " Login to server magento.zeb.apoyar (access.log file) ------------------------------------------------- Check at cd /var/log/nginx ls -latrh for demo.apoyar (update.log f...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Login to server magento.zeb.apoyar (access.log file)


Check at cd /var/log/nginx

ls -latrh


for demo.apoyar (update.log file)


Go to cd /var/www/magento2/var/log

ls -latrh


for caching.pcr.apoyar (access.log file)


Go to cd /var/log/nginx/

ls -latrh



To truncate the log file


truncate --size 0 /path/logfilenamedf -h

it should below 75% than only it will be ok

du -s /* 2> >(grep -v 'cannot access') | sort -nr | cut -f2- | xargs du -hs Above command gives the results for where the space is occupying more..

du -s /var/* 2> >(grep -v 'cannot access') | sort -nr | cut -f2- | xargs du -hs This command gives the path of folder where it is taking more space.

In the specific folder we should delete old .sql files

Alternate method find / -type f -size +1G This command shows where it was taking more Space