1835927 Members
2645 Online
110088 Solutions
New Discussion

acct

 
NHL
Frequent Advisor

acct

Hi,

is there a max size for /var/adm/pacct file ?

Ours got to 256000 bytes and now 'prmanalyze -t hourly' will not show the latest acct info and /var/adm/pacct is not getting any bigger.

There is no space issue on /var .

Thanks,
Nick .

5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: acct

Shalom Nick,

Try copying the file off, zeroing it out as follows:

> var/adm/pacct

If suddenly data gets written to the file than you've hit a limit.

If not, its a problem with prmanalyze, not running. There should be logs for prm.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
NHL
Frequent Advisor

Re: acct

Hi SEP,

I've already zeroed /var/adm/pacct and restarted acct and accounting is now back up to date, thankyou.

I think I need to cron /usr/sbin/acct/ckpacct to check the size of /var/adm/pacct which will in turn run turnacct.

Thanks for your help.
Nick .
Peter Godron
Honored Contributor

Re: acct

Nick,
are you running/cron-ing ckpacct ?

From "man ckpacct":
"It periodically checks the size of /var/adm/pacct. If the size exceeds blocks, 1000 by default, turnacct is invoked with argument switch. If the number of free disk blocks in the /var file system falls below 500, ckpacct automatically turns off the collection of process accounting records via the off argument to turnacct."
NHL
Frequent Advisor

Re: acct

Hi Peter,

thanks for you input. I cronned ckpacct to run at midnight every day so I hope that will help keep /var/adm/pacct under control.

Many thanks,
Nick .
NHL
Frequent Advisor

Re: acct

Thankyou.