HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Server HDD storage full (http://www.howtoforge.com/forums/showthread.php?t=58106)

abintipl 28th July 2012 11:23

Server HDD storage full
 
Hi,

I have latest ispconfig3 on Debain Sequeeze on VPS with 5 GB of HDD space.

I do not have much data on my server but over a period HDD storage is Full.

Request you to advice, how to clean up HDD( with path), so I can delete unnecessary files from server

Thanks

BR

rosehosting 29th July 2012 10:02

Quote:

Originally Posted by abintipl (Post 282895)
Hi,

I have latest ispconfig3 on Debain Sequeeze on VPS with 5 GB of HDD space.

I do not have much data on my server but over a period HDD storage is Full.

Request you to advice, how to clean up HDD( with path), so I can delete unnecessary files from server

Thanks

BR

I'm not sure if ISPconfig3 stores some data somewhere, but generally to free up some space you can always clean old log files, remove temporary data in '/tmp' and/or '/var/tmp', clean the cache of your package manager etc...

Firstly, You need to determine what is taking up your space. You can do this by using the 'du' command line utility or 'ncdu' which is ncurses based version of 'du'.

for example here's a sample usage of calculating the size of my '/var' directory:

Code:

du -csxh /var/*
56K    /var/bind
6.4M    /var/cache
62M    /var/db
72K    /var/empty
68M    /var/lib
4.0K    /var/lock
129M    /var/log
0      /var/mail
0      /var/named
112K    /var/run
13M    /var/spool
25M    /var/tmp
319M    /var/www
620M    total

hope that helps

abintipl 29th July 2012 11:17

Hdd
 
Hello,

Thank you for your reply

mine looks something like this

root@server1:~# du -csxh /var/*
8.0K /var/backup
3.1M /var/backups
405M /var/cache
246M /var/lib
4.0K /var/local
12K /var/lock
58M /var/log
164K /var/mail
4.0K /var/opt
124K /var/run
760K /var/spool
4.0K /var/tmp
1.1M /var/vmail
640M /var/www
1.4G total

falko 29th July 2012 12:11

I suggest you first delete old, unneeded web access logs (and maybe also error logs).

pititis 29th July 2012 21:46

Quote:

Originally Posted by abintipl (Post 282919)


root@server1:~# du -csxh /var/*
405M /var/cache
1.4G total

You should run:

Quote:

apt-get clean
I guess your /var/cache/apt/ is full of downloaded packages.

Cheers

abintipl 1st August 2012 09:14

Hdd
 
Dear Sir,

Yes, I have freed some HDD space after running apt-get clean

Further, is it safe to delete from

/var/log/ispconfig/httpd/mydomain.com, I have few logs in every website folder, some of files are as under;

20120730-access.log.gz

Please confirm you I move ahead

Thank you for your support making me learn more and more about Ispconfig

regards

till 1st August 2012 10:04

You can delete the .gz log files. They get removed automatically after 30 days anyway.

abintipl 1st August 2012 10:12

Hdd
 
Thank you sir


All times are GMT +2. The time now is 04:21.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.