Disk hda6 (/usr) DMA+ 100% full

alexz

Member
Jun 20, 2005
13
0
151
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
 

linuxrouter

Member
Nov 10, 2005
5
0
151
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.
 

Sinewy

Well-Known Member
May 15, 2004
364
1
168
Sydney, Australia
cPanel Access Level
DataCenter Provider
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