[torqueusers] how can I make pbs_mom rotate its old log files.
crl at ansto.gov.au
Mon Dec 1 18:00:58 MST 2008
Logrotate is always good here to use.
gzip is also your friend :)
Cooper Ry Lees
UNIX Evangelist - Information Management Services (IMS)
Australian Nuclear Science and Technology Organisation
T +61 2 9717 3853
F +61 2 9717 9273
M +61 403 739 446
E cooper.lees at ansto.gov.au
Important: This transmission is intended only for the use of the
addressee. It is confidential and may contain privileged information
or copyright material. If you are not the intended recipient, any use
or further disclosure of this communication is strictly forbidden. If
you have received this transmission in error, please notify me
immediately by telephone and delete all copies of this transmission as
well as any attachments.
On 02/12/2008, at 11:56 AM, Joshua Bernstein wrote:
> On Dec 1, 2008, at 4:53 PM, Garrick Staples wrote:
>> On Mon, Dec 01, 2008 at 02:37:28PM -0600, Rahul Nabar alleged:
>>> How can I get the torque mom to rotate its logs? Currently it logs
>>> /var/spool/torque/mom_logs/ directory with date-encoded filenames
>>> of the
>>> sort 20080728 etc.
>>> But I recently had a case where my compute node got a 100% full /
>>> mainly because of the mom_logs dir getting too big (close to 3 gigs)
>>> What solution do people typically employ? Or do I have to cron my
>>> own shell
>>> script to keep a watch. Had a similar problem with the
>>> /var/spool/torque/spool having some old un-removed files of the sort
>>> 233046.supe.ER. I guess these are error files but one of them was
>>> cloase to
>>> 2 gigs.
>> Yes, people have their own cronjobs handle this stuff.
>> My cluster has a daily cronjob that ssh's to each node, moving all
>> log files
>> back to a head node.
> Would you mind sharing the script?
> -Joshua Bernstein
> Software Engineer
> Penguin Computing
> torqueusers mailing list
> torqueusers at supercluster.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the torqueusers