Re: Very large directory

2005-01-21 Thread Robert Watson
On Wed, 19 Jan 2005, Phillip Salzman wrote: I have a pair of servers that act as SMTP/AV gateways. It seems that even though we've told the AV software not to store messages, it is anyway. They've been running for a little while now - and recently we've noticed a lot of disk space

Re: Very large directory

2005-01-20 Thread Peter Jeremy
On Wed, 2005-Jan-19 21:30:53 -0600, Phillip Salzman wrote: They've been running for a little while now - and recently we've noticed a lot of disk space disappearing. Shortly after that, a simple du into our /var/spool returned a not so nice error: du: fts_read: Cannot allocate memory No

Re: Very large directory

2005-01-20 Thread Oliver Fromme
Peter Jeremy [EMAIL PROTECTED] wrote: On Wed, 2005-Jan-19 21:30:53 -0600, Phillip Salzman wrote: They've been running for a little while now - and recently we've noticed a lot of disk space disappearing. Shortly after that, a simple du into our /var/spool returned a not so nice error:

Re: Very large directory

2005-01-20 Thread Bill Vermillion
From: Phillip Salzman [EMAIL PROTECTED] Subject: Very large directory I have a pair of servers that act as SMTP/AV gateways. It seems that even though we've told the AV software not to store messages, it is anyway. They've been running for a little while now - and recently we've noticed

Re: Very large directory

2005-01-20 Thread David Landgren
Peter Jeremy wrote: On Wed, 2005-Jan-19 21:30:53 -0600, Phillip Salzman wrote: They've been running for a little while now - and recently we've noticed a lot of disk space disappearing. Shortly after that, a simple du into our /var/spool returned a not so nice error: du: fts_read: Cannot

Re: Very large directory

2005-01-20 Thread David Landgren
Oliver Fromme wrote: Peter Jeremy [EMAIL PROTECTED] wrote: On Wed, 2005-Jan-19 21:30:53 -0600, Phillip Salzman wrote: They've been running for a little while now - and recently we've noticed a lot of disk space disappearing. Shortly after that, a simple du into our /var/spool returned

Re: Very large directory

2005-01-20 Thread Oliver Fromme
David Landgren [EMAIL PROTECTED] wrote: Oliver Fromme wrote: I would suggest trying this simple hack: cd /var/spool/directory ; cat . | strings | xargs rm -f It's a dirty hack, but might work, if the file names in that directory aren't too strange (no spaces etc.). why

RE: Very large directory

2005-01-20 Thread Phillip Salzman
into a for loop removing the files. -- Phillip Salzman -Original Message- From: Peter Jeremy [mailto:[EMAIL PROTECTED] Sent: January 20, 2005 3:46 AM To: Phillip Salzman Cc: [EMAIL PROTECTED] Subject: Re: Very large directory On Wed, 2005-Jan-19 21:30:53 -0600, Phillip Salzman

Re: Very large directory

2005-01-20 Thread Wolfgang Zenker
Hello Phillip, I've received a couple perl scripts from a few different people. I can't use any of them until this evening due to the current load of the machines though. Last night I ended up doing a strings on the directory, and taking its output into a for loop removing the files. if

RE: Very large directory

2005-01-20 Thread Phillip Salzman
of the shell script. Oh well. I can't really wo -Original Message- From: Wolfgang Zenker [mailto:[EMAIL PROTECTED] Sent: January 20, 2005 2:04 PM To: Phillip Salzman Cc: 'Peter Jeremy'; [EMAIL PROTECTED] Subject: Re: Very large directory Hello Phillip, I've received a couple perl

Re: Very large directory

2005-01-20 Thread Darryl Okahata
Oliver Fromme [EMAIL PROTECTED] wrote: I would suggest trying this simple hack: cd /var/spool/directory ; cat . | strings | xargs rm -f Since the original poster was willing to use -rf, wouldn't it be better to do: cd /var/spool/directory ; find . -type f -print0 | xargs -0 rm -f

RE: Very large directory

2005-01-20 Thread Bjrn Knig
Darryl Okahata wrote: find . -type f -print0 | xargs -0 rm -f Slightly more typing, but more robust. The find utility of FreeBSD knows a -delete option, e.g.: find /path/to/your/directory -type f -delete Regards Bjrn ___

Re: Very large directory

2005-01-20 Thread Peter Jeremy
On Thu, 2005-Jan-20 13:36:30 -0800, Darryl Okahata wrote: Since the original poster was willing to use -rf, wouldn't it be better to do: cd /var/spool/directory ; find . -type f -print0 | xargs -0 rm -f The original poster mentioned that find wouldn't work: find(1) uses fts(3) which reads

Very large directory

2005-01-19 Thread Phillip Salzman
Hello, I have a pair of servers that act as SMTP/AV gateways. It seems that even though we've told the AV software not to store messages, it is anyway. They've been running for a little while now - and recently we've noticed a lot of disk space disappearing. Shortly after that, a simple du

Re: Very large directory

2005-01-19 Thread Dan Nelson
In the last episode (Jan 19), Phillip Salzman said: I have a pair of servers that act as SMTP/AV gateways. It seems that even though we've told the AV software not to store messages, it is anyway. They've been running for a little while now - and recently we've noticed a lot of disk space

Re: Very large directory

2005-01-19 Thread Michael Butler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan Nelson wrote: | Try raising your datasize rlimit value; .. I found this (lots of files in a directory) to be generally a Bad Idea. Search performance tends to be poor even with the improvements in 5.x While I'm not sure that it's possible to in