Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

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
Archunan 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
God is Artist, we are all just brushes
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.