Can I gzip or delete pacct files in solaris ?

Hi,

On my server there are so many pacct files in /var/adm. It is eating up my /var partition. Can I delete or gzip those files ?

Thanks
NeeleshG

you can look for the turnacct command. think its like this

/usr/lib/acct/turnacct switch; /bin/rm -f /var/adm/pacct?

fine tune it according to your environment, then put in the cron.

When a process ends, the kernel writes one record per process, in the form of acct.h, in the /var/adm/pacct file, so yes, you may delete them.

just out of my curiosity, so what is this pacct? I read some articles it says, this file keep some of our logs?? I'm not sure.. is this pacct really important?

if this pacct file important, then it's not that good to delete it right??

http://docs.sun.com/app/docs/doc/817-1758/6mhfg8m7f?a=view