Simpler Navigation for Servers and Operating Systems
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.
cancel
Showing results for 
Search instead for 
Did you mean: 

Spacct?

SOLVED
Go to solution
Victor Semaska_3
Esteemed Contributor

Spacct?

Greetings,

I'm having a problem with a V5.1B PK5 cluster where the /var disk is running out of space because of a lot of /var/adm/acct/Spacct?. files. These files are obviously related to accounting. Do I need these files and if not how do I stop them from being created.

Thanks,
Vic
There are 10 kinds of people, one that understands binary and one that doesn't.
3 REPLIES
Ivan Ferreira
Honored Contributor

Re: Spacct?

>>> Do I need these files and if not how do I stop them from being created.

It depends, if you will ever do some auditing, then you will need the files.

You can configure audit with:

sysman auditconfig
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Vladimir Fabecic
Honored Contributor
Solution

Re: Spacct?

That should be related to accounting.
Do you need accounting?
If not disable it by:
# crontab -e adm
Remove the entry of "/usr/sbin/acct/runacct" from crontab
Execute "shutacct"
then do
"rcmgr set ACCOUNTING NO"
This will disable accounting.
Depend of system accounting may eat 100MB per day of disk space.
If you need accounting then you must find another way, for example script that will clean up /var.
In vino veritas, in VMS cluster
Victor Semaska_3
Esteemed Contributor

Re: Spacct?

Thanks to both.

They do use up a lot of space per day. Decided to be cautious and leave accounting running but add an entry in root's crontab to delete all that are more than 7 days old. That should keep their space usage down.

Vic
There are 10 kinds of people, one that understands binary and one that doesn't.