Whm is showing me that my /usr partition is 100% full
Is there anything I can do? Which files can I safely delete in there? Or mybe I can transfer some of the files to other partitions?
Thank you
Alex
Whm is showing me that my /usr partition is 100% full
Is there anything I can do? Which files can I safely delete in there? Or mybe I can transfer some of the files to other partitions?
Thank you
Alex
Check /usr/src and /usr/local/src for file size
du -sm /usr/src
du -sm /usr/local/src
or check all /usr directories
du -sm /usr/src/*
You could move /usr/local to a separate partition. Make a new partition, format, and copy files from /usr/local over. Edit /etc/fstab and add a new line for /usr/local.
Example:
/dev/sda2 /usr/local xfs defaults 1 2
Set the file system to the filesystem you formatted the partition with and the correct device.
Verify copy and remove files from the original partition for local and then `mount -a` You could move just about any other directory under /usr over to its own partition as well. Just make sure that the files you move do not have any running processes and if so, stop those services first.
du -sm /usr/src/* in my previous post is meant to be
du -sm /usr/*
Try clearing the domlogs.
rm -f /usr/local/apache/domlogs/*
/scrips/restartsrv_httpd
Then go into WHM and go to tweak settings and select "delete logs after each stats run".
This is usually the culprit on most servers.
Regards,
Alan