/usr getting filled up in cPanel server

/usr getting filled up in cPanel server
=======================================

Following actions can be performed if /usr is consuming high disk usage:

Check whether it is getting filled up due to mailman.

root@server[/usr]# du -sch /usr/local/cpanel/3rdparty/mailman
4.8G /usr/local/cpanel/3rdparty/mailman
4.8G total
root@server[/usr]#

If mailman is having maximum disk usage, you can move it to /home and create a symblolic link to the original location.

Firstly stop cPanel and take a backup of mailman before proceeding with the task.

cp -R /usr/local/cpanel/3rdparty/mailman /home/mailman.bak

After doing that, move only these directories in /usr/local/cpanel/3rdparty/mailman/ location:

archives
lists
logs
messages

After that, symlink them back to /usr/local/cpanel/3rdparty/mailman location:

ln -s /home/mailman/archives /usr/local/cpanel/3rdparty/mailman/archives
ln -s /home/mailman/lists /usr/local/cpanel/3rdparty/mailman/lists
ln -s /home/mailman/logs /usr/local/cpanel/3rdparty/mailman/logs
ln -s /home/mailman/messages /usr/local/cpanel/3rdparty/mailman/messages

Finally, chown for ownership to mailman:mailman:

chown -R mailman:mailman /usr/local/cpanel/3rdparty/mailman/{archives,lists,logs,messages}

Start cPanel once the work is complete and check the websites and mail and ensure whether everything is working fine.

Advertisements
  1. #1 by easyfairings on June 14, 2013 - 7:38 AM

    Your style is really unique compared to other people I’ve read stuff from. I appreciate you for posting when you’ve got the opportunity, Guess I’ll just bookmark this site.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: