Server HDD storage full

Discussion in 'General' started by abintipl, Jul 28, 2012.

  1. abintipl

    abintipl New Member

    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
     
  2. rosehosting

    rosehosting Member

    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
     
  3. abintipl

    abintipl New Member

    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
     
  4. falko

    falko Super Moderator

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

    pititis Member

    You should run:

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

    Cheers
     
  6. abintipl

    abintipl New Member

    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
     
  7. till

    till Super Moderator

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

    abintipl New Member

    Hdd

    Thank you sir
     

Share This Page