Help - Search - Members - Calendar
Full Version: What files to delete when server space is up to the linit.
The Planet Forums > System Administration > Server Hardware > RaQ Support
sebans

I have to reduce space on my server But I hace not idea of what files to remove without causing damage.


thanks in advance for your help.

Here is the breakdown of files that are over 20 megs inside of your /usr partition that has reached the 81%:

/usr/lib64/libgcj.so.7rh.0.0: 42M
/usr/lib64/xulrunner-1.9/libxul.so: 22M
/usr/share/frysk/test-core-x8664: 21M
/usr/share/frysk/test-core-x86: 21M
/usr/local/cpanel/cpanel: 32M
/usr/local/cpanel/logs/access_log: 21M
/usr/local/cpanel/whostmgr/bin/whostmgr: 35M
/usr/local/cpanel/whostmgr/bin/xml-api: 27M
/usr/local/cpanel/whostmgr/bin/whostmgr2: 38M
/usr/local/cpanel/whostmgr/bin/whostmgr5: 29M
/usr/local/cpanel/bin/wwwacct: 22M
/usr/local/cpanel/install/core.27426: 87M
/usr/local/cpanel/install/core.23158: 87M
/usr/local/cpanel/install/core.21803: 87M
/usr/local/cpanel/install/core.5713: 88M
/usr/local/cpanel/install/core.30176: 87M
/usr/local/cpanel/install/core.22396: 87M
/usr/local/cpanel/install/core.497: 87M
/usr/local/cpanel/install/core.7839: 87M
/usr/local/cpanel/install/core.23881: 87M
/usr/local/cpanel/install/core.8720: 87M
/usr/local/cpanel/install/core.2914: 87M
/usr/local/cpanel/install/core.6652: 87M
/usr/local/apache/logs/suexec_log: 152M
/usr/local/apache/logs/access_log: 116M
/usr/local/apache/logs/error_log: 492M
/usr/local/apache/domlogs/atoncer.com-smtpbytes_log: 50M
/usr/lib/locale/locale-archive: 54M
Tomy Durden
Don't delete any of those files.


You can reclaim some space by reducing the file sizes of:
/usr/local/apache/logs/suexec_log: 152M
/usr/local/apache/logs/access_log: 116M
/usr/local/apache/logs/error_log: 492M

However, depending on what analytic apps you're running, it might eliminate some of the historic metrics.

To empty those files out, back them up to an offsite location and then use echo to clear them out

QUOTE
echo > /usr/local/apache/logs/suexec_log: 152M
echo > /usr/local/apache/logs/access_log: 116M
echo > /usr/local/apache/logs/error_log: 492M

Simply deleting them might cause some issues, echoing nothing into them will keep the apps that write to them happy and still get the result you're wanting.

Alternatively, you could remove all the entries before a certain date.
ajz4221
If you are to the point to where you must start removing files you are unsure about, it is time to purchase additional disk space.
I know that doesn't solve your immediate problem but new hardware is something you should consider soon.
Jeff
How big is your usr partition?

What does the overall server's disk space look like

df -h

If the partitioning is not ideal for your needs but difficult to change at this point, some use a workaround to move some things off a too-small partition to another and then create a symlink so files still appear to be on the now too-small partition so no rework of application configurations, etc.
sebans
this is the situation of the /usr and the other partitions as of today


--------------------- Disk Space Begin ------------------------

Filesystem Size Used Avail Use% Mounted on
/dev/sda5 7.8G 691M 6.7G 10% /
/dev/sda8 875G 8.8G 821G 2% /home
/dev/sda6 996M 34M 910M 4% /tmp
/dev/sda3 7.8G 6.0G 1.4G 82% /usr
/dev/sda2 9.7G 1.8G 7.4G 20% /var
/dev/sda1 122M 17M 99M 15% /boot





I can't believe I have to face this problem only after few months of using this server with almost 1000 G of unused space.

this might have be caused be an erronowus server set up by the planet.





ajz4221
QUOTE (sebans @ May 20 2009, 05:53 AM) *
this is the situation of the /usr and the other partitions as of today


--------------------- Disk Space Begin ------------------------

Filesystem Size Used Avail Use% Mounted on
/dev/sda5 7.8G 691M 6.7G 10% /
/dev/sda8 875G 8.8G 821G 2% /home
/dev/sda6 996M 34M 910M 4% /tmp
/dev/sda3 7.8G 6.0G 1.4G 82% /usr
/dev/sda2 9.7G 1.8G 7.4G 20% /var
/dev/sda1 122M 17M 99M 15% /boot





I can't believe I have to face this problem only after few months of using this server with almost 1000 G of unused space.

this might have be caused be an erronowus server set up by the planet.


Ah - yea bad partition setup is always a problem.
Kind of like Dell's default 12 GB server OS partition in 2009.
Jeff
QUOTE (sebans @ May 20 2009, 06:53 AM) *
this is the situation of the /usr and the other partitions as of today


--------------------- Disk Space Begin ------------------------

Filesystem Size Used Avail Use% Mounted on
/dev/sda5 7.8G 691M 6.7G 10% /
/dev/sda8 875G 8.8G 821G 2% /home
/dev/sda6 996M 34M 910M 4% /tmp
/dev/sda3 7.8G 6.0G 1.4G 82% /usr
/dev/sda2 9.7G 1.8G 7.4G 20% /var
/dev/sda1 122M 17M 99M 15% /boot


I can't believe I have to face this problem only after few months of using this server with almost 1000 G of unused space.

this might have be caused be an erronowus server set up by the planet.

It does seem usr is oddly small on a server with that much overall disk space. On a web server with 140 to 210 GB disk space I unusually go with about that size var but a usr twice that size, and that's not overly ample for my own needs.

On the other hand, it would be difficult for the planet to predict everyone's individual uses of each server, but when you order a server you can request your own partitioning for your particular needs using the notes section.
lms
QUOTE (Jeff @ May 28 2009, 01:50 PM) *
It does seem usr is oddly small on a server with that much overall disk space. On a web server with 140 to 210 GB disk space I unusually go with about that size var but a usr twice that size, and that's not overly ample for my own needs.

On the other hand, it would be difficult for the planet to predict everyone's individual uses of each server, but when you order a server you can request your own partitioning for your particular needs using the notes section.


ive got a similar issue. i reckon my /usr partition was provisioned relatively small: 7.8GB of 146HDD in RAID-1 and heading toward capacity, fast. what files can i safely remove to reduce disk use? im hosting numerous cpanel accounts including fantastico. ive disabled stats. is there any alternative other than an OS reload and repartition? thanks

Filesystem Size Used Avail Use% Mounted on
/dev/sda5 7.8G 429M 7.0G 6% /
/dev/sda8 104G 7.6G 91G 8% /home
/dev/sda6 996M 34M 911M 4% /tmp
/dev/sda3 7.8G 4.5G 2.9G 62% /usr
/dev/sda2 9.7G 1.2G 8.1G 13% /var
/dev/sda1 122M 17M 100M 14% /boot
none 2.0G 0 2.0G 0% /dev/shm

root@host [~]# du --max-depth=1 -h /usr/local
2.0M /usr/local/IonCube
3.0M /usr/local/include
232K /usr/local/modules
66M /usr/local/apache.backup_archive
108K /usr/local/bandmin
1.5M /usr/local/cpanel-rollback
1.9G /usr/local/cpanel
4.6M /usr/local/share
144M /usr/local/src
44K /usr/local/doc
620K /usr/local/rkhunter
17M /usr/local/bin
1.5M /usr/local/etc
179M /usr/local/apache
5.5M /usr/local/sbin
28K /usr/local/man
4.5M /usr/local/lib
120K /usr/local/libexec
31M /usr/local/frontpage
8.0K /usr/local/games
35M /usr/local/apache.backup
2.4G /usr/local

root@host [~]# du --max-depth=1 -h /usr/local/cpanel
12K /usr/local/cpanel/ea2-tools
13M /usr/local/cpanel/perl
88K /usr/local/cpanel/sys_cpanel
173M /usr/local/cpanel/3rdparty
44K /usr/local/cpanel/vsrvmgr
44K /usr/local/cpanel/cpupdatepatches
96K /usr/local/cpanel/spamassassin_sandbox
5.9M /usr/local/cpanel/Cpanel
4.0K /usr/local/cpanel/mail
923M /usr/local/cpanel/whostmgr
36K /usr/local/cpanel/var
4.0K /usr/local/cpanel/modules-install
7.1M /usr/local/cpanel/cgi-sys
16K /usr/local/cpanel/docs
20K /usr/local/cpanel/redhat
104K /usr/local/cpanel/share
72K /usr/local/cpanel/hooks
288M /usr/local/cpanel/src
264K /usr/local/cpanel/install
6.7M /usr/local/cpanel/java-sys
173M /usr/local/cpanel/bin
209M /usr/local/cpanel/base
2.7M /usr/local/cpanel/build-tools
3.0M /usr/local/cpanel/etc
40K /usr/local/cpanel/apache
32K /usr/local/cpanel/img-sys
148K /usr/local/cpanel/obj
48M /usr/local/cpanel/logs
16K /usr/local/cpanel/sqloptimizer
6.4M /usr/local/cpanel/lib
28K /usr/local/cpanel/php
48K /usr/local/cpanel/entropychat
1020K /usr/local/cpanel/Whostmgr
48K /usr/local/cpanel/libexec
36K /usr/local/cpanel/htdocs
20K /usr/local/cpanel/cpaddons
20K /usr/local/cpanel/tests
2.0M /usr/local/cpanel/lang
1.9G /usr/local/cpanel
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.