LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-13-2008, 09:47 PM   #1
viniosity
Member
 
Registered: Oct 2001
Location: Washington, DC
Distribution: Debian, Archlinux, Ubuntu, Sidux
Posts: 244

Rep: Reputation: 30
Question purging disk space help


I need to clear some disk space from a Debian server. I've gone through and run apt-get clean as well as apt-get autoclean. It looks like the majority of the files taking up space are in /var/spool/Spamassassin.

I don't have access to the individual email accounts so I'm not sure if there's a "proper" way to remove those files. Is it bad to just rm -rf the contents of the /var/spool/spamassassin directory? Is there a recommended way to purge those files?
 
Old 08-13-2008, 10:52 PM   #2
danboland
Member
 
Registered: Feb 2006
Location: NJ, USA
Distribution: Debian
Posts: 72

Rep: Reputation: 17
If thats where user's email is quarantined for spam then i would write a script that automatically deletes messages older then X days. And then make sure that they know that the server policy is to delete all spam that is that old.
 
Old 08-13-2008, 10:55 PM   #3
viniosity
Member
 
Registered: Oct 2001
Location: Washington, DC
Distribution: Debian, Archlinux, Ubuntu, Sidux
Posts: 244

Original Poster
Rep: Reputation: 30
It's my first time on this box.. the old admin quit in a huff and sort of walked out. I'm doing damage control so I'm afraid I don't know much.

The server is 100% full and there's 4GB of stuff in the /var/spool/spamassassin folder.. I'd love to just rm -rf it but I've no idea if spamassassin would complain or stop working properly if I did that..
 
Old 08-14-2008, 11:04 PM   #4
danboland
Member
 
Registered: Feb 2006
Location: NJ, USA
Distribution: Debian
Posts: 72

Rep: Reputation: 17
Most of what is in there I believe is user spam database from sa-learn.

you can try:
Code:
sa-learn --force-expire
Let me know if that solves anything.
 
Old 08-15-2008, 05:26 AM   #5
viniosity
Member
 
Registered: Oct 2001
Location: Washington, DC
Distribution: Debian, Archlinux, Ubuntu, Sidux
Posts: 244

Original Poster
Rep: Reputation: 30
No, unfortunately that didn't seem to purge any actual emails (at least disk space usage is unchanged..) Thanks for trying though.
 
Old 08-15-2008, 05:46 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
If the server is 100% full, you need to do a lot more than clean out that one directory.

Why not backup the directory onto another drive (server, DVD, etc.). Then delete it and see if anyone misses it. (Tell people first what you are doing.)

More generally, do users have disk quotas? (Perhaps they should.)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with freeing disk space on a two hard disk Fedora Core 4 box favadalikhan Linux - Server 1 04-29-2008 09:04 PM
add space to / when from spare space on disk ctsiow Linux - General 4 11-07-2007 07:55 AM
Cedega "Disk space required for the installation exceeds available disk space" Solved Spewdemon LinuxQuestions.org Member Success Stories 1 10-18-2007 06:19 PM
How to assign disk quota(disk space limited) to user and group. hocheetiong Linux - Newbie 1 08-24-2007 04:20 AM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration