Operating System - Tru64 Unix
1751703 Members
5011 Online
108781 Solutions
New Discussion юеВ

accounting files keep growing

 
SOLVED
Go to solution
Qing Zhu
Advisor

accounting files keep growing

Hi,

On one of my wkstns the accouning files: /var/adm/pacct, /var/adm/acct/nite/...,
/var/adm/acct/fiscal/... they are keeping growing and eat up my disk space at an incredible speed (around 100mb/day).

I used the following command trying to stop it:
#shutacct
#turnacct off
also I set ACCOUNTING=NO in /etc/rc.config
but none of them seems to work at all.

This wkstn is a DS10/tru64 4.0g, it doesn't need to run auditing at all, I don't even know how it get started. Can anyone tell me which process is writing to those files and how to stop it.

Many thanks,
Qing
4 REPLIES 4
Arch_Muthiah
Honored Contributor

Re: accounting files keep growing

Qing,

Have you checked cron daemon process, usually runacct shell will be scheduled to run automatically daily/weekly/monthly or any specific time. If there is any RUNACCT scheduled, then better you can remove the line from you cronab to stop accounting. Aslo there are so many target files/intermedicate database files to collect the accounting info. Find and delete those files.


Archunan
Regards
Archie
Harmanjit_1
Frequent Advisor

Re: accounting files keep growing

Hi,

You can set accounting OFF by following command :-

rcmgr set ACCOUNTING NO

Also check, you crontab should not have any entry with acct word in it.
Rani sawade
Occasional Advisor
Solution

Re: accounting files keep growing

The cron entry exist for running runacct script in adm's crontab file, which need to be removed or commented.
As root do the following.

# crontab -e adm

Remove the entry of "/usr/sbin/acct/runacct".

After this the execution "shutacct" and
"rcmgr set ACCOUNTING NO" should
set the accounting off forever.

Regards,
Rani





Qing Zhu
Advisor

Re: accounting files keep growing

Thanks.