Results 1 to 6 of 6
  1. #1

    Need help with emptying var files

    Hi everyone,

    Our var files have filled up and the server is down as a result. Can anyone give me complete run down on how to empty them. I am new to shell access and would appreciate as detailed an answer as possible on HDA 5 shell codes.

    Much appreciated.

  2. #2
    Join Date
    May 2002
    Location
    Moscow
    Posts
    1,490
    will be best if you ask support from your DC support. On /var partition systrem save many important files (for example mysql database) so, if you haven't experince you may remove important files and lost your server at full (only reformat will help you in this case).
    for recommen you anything you as minimum should post there you /var listing (with size). You should do this with command:
    du -H /var
    This is not dangerous command.
    Rustelekom LLC Dedicated server since 2002, RIPE NCC member, LIR, AS51168

  3. #3
    Try:
    cd /var
    du -sM *

    This will output the size of each directory. Go to the biggest and repeat the du command.

    You'll eventually find the biggest few files. There is a good chance they'll be logs. Possibly apache logs. If you can rm -f the files (presuming you don't need them). And then setup the appropriate /etc/logrote.d/* file to perform the proper/regular file rotation. man logrotate.
    RimuHosting.com - VPS Hosting and Dedicated Server Hosting since 2003
    Pingability.com - Peace of Mind Web Site Monitoring

  4. #4
    Join Date
    Oct 2004
    Location
    Shimonoseki
    Posts
    2,101
    I have the same problem.
    In my case, /var/log/audit.d folder takes up near 90% of whole /var ...
    In the folder there are bin.0, bin.1, bin.2, bin.3 and bunch of save files.
    from save.0 to save.368
    Do anyone knows is it safe to delete them?
    Closed for winter...

  5. #5
    Thanks very much for the replies. We have managed to get it all sorted now and everything running sweet.

  6. #6
    Join Date
    May 2002
    Location
    Moscow
    Posts
    1,490
    Originally posted by BurakUeda
    I have the same problem.
    In my case, /var/log/audit.d folder takes up near 90% of whole /var ...
    In the folder there are bin.0, bin.1, bin.2, bin.3 and bunch of save files.
    from save.0 to save.368
    Do anyone knows is it safe to delete them?
    just stop audit

    service audit stop

    and then delete above files
    Rustelekom LLC Dedicated server since 2002, RIPE NCC member, LIR, AS51168

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •