csa
[Top] [All Lists]

Re: CSA : No spacct file

To: fabre@xxxxxxxxxxx
Subject: Re: CSA : No spacct file
From: Jay Lan <jlan@xxxxxxxxxxxx>
Date: Wed, 06 Jul 2005 09:11:08 -0700
Cc: csa@xxxxxxxxxxx
In-reply-to: <1120639925.2692.16.camel@xxxxxxxxxxxxxxxxxxx>
References: <1120639925.2692.16.camel@xxxxxxxxxxxxxxxxxxx>
Sender: csa-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225
Hi Greg,

'csabuild' is one step in a series of command action performed
by 'csarun'. The current state of 'csarun' is saved at
/var/csa/nite/statefile.

The 'csarun' is a script file. It is at /usr/sbin/csarun. As you
can see from the script file, 'csabuild' is to be performed when
the csa state is at "BUILD" state, and it uses file prepared
by the "SETUP" state.

I would suggest you to run 'csarun'. If you need to have intermediate
files, you may use "ARCHIVE1" or "ARCHIVE2" user exits to save
the intermediate files. (Please see 'csarun' man page.)

Hope this help!

Cheers,
 - jay



Greg FABRE wrote:
Hi,

I'm using CSA with a Linux-2.6.12-rc6-mm1 computer.

It's working fine except some commands.

On the Linux Ressource Administration Guide 007-4413-008 page 31, there
is the CSA system diagram. It says that csabuild seems to create the
sorted pacct file which can be used with other commands. But :

[root@po03 day]# csabuild
Could not open the first pacct file '/var/csa/work/Wpacct1'

So, I don't know how to use this command. Here is my csa var tree :

[root@po03 day]# ls -hlR /var/csa/
/var/csa/:
total 40K
drwxr-xr-x  2 root sys 4.0K Jul  5 16:42 day
drwxr-xr-x  2 root sys 4.0K Jul  5 16:12 fiscal
drwxr-xr-x  2 root sys 4.0K Jul  5 16:43 nite
drwxr-xr-x  2 root sys 4.0K Jul  5 15:25 sum
drwxr-xr-x  2 root sys 4.0K Jul  5 15:25 work

/var/csa/day:
total 11M
-rw-r-----  1 adm     adm      276 Jul  5 16:13 dtmp
-rw-rw----  1 root    csaacct 8.8K Jul  4 14:58 fee
-rw-------  1 root    root       0 Jul  5 16:42 nohup.out
-rw-rw-r--  1 csaacct csaacct 5.0M Jul  6 10:47 pacct
-rw-rw-r--  1 root    csaacct 5.2M Jul  5 15:25 pacct0

/var/csa/fiscal:
total 128K
-rw-rw----  1 root csaacct 61K Jul  5 16:12 cms.07051612
-rw-rw----  1 root csaacct 18K Jul  5 16:12 pdacct.07051612
-rw-rw----  1 root csaacct 28K Jul  5 16:12 rprt.07051612

/var/csa/nite:
total 188K
-rw-rw-r--  1 csaacct csaacct   99 Jul  5 16:42 active07051642
-rw-rw-r--  1 csaacct csaacct  133 Jul  5 16:43 active07061525
-rw-rw-r--  1 csaacct csaacct  130 Jul  5 09:53 active20948
-rw-rw----  1 root    root      20 Jul  5 15:25 clastdate
-rw-r--r--  1 root    root      39 Jun 17 13:33 csarun.log
-rw-r-----  1 adm     adm     106K Jul  5 16:13 diskcacct
-rw-r--r--  1 root    root      39 Jul  5 16:43 fd2log
-rw-rw-r--  1 csaacct csaacct  402 Jul  5 16:12 pdact
-rw-rw-r--  1 csaacct csaacct  225 Jul  4 14:59 pdact.07041459
-rw-r--r--  1 root    sys        9 Jul  5 15:25 statefile

/var/csa/sum:
total 208K
-rw-rw----  1 root    root       0 Jun 17 13:28 cacct.06171328
-rw-rw----  1 root    csaacct    0 Jun 17 13:30 cacct.06171330
-rw-rw----  1 root    csaacct    0 Jun 17 13:33 cacct.06171333
-rw-rw----  1 root    csaacct  18K Jul  5 09:48 cacct.07050948
-rw-rw----  1 root    csaacct 8.8K Jul  5 15:25 cacct.07051525
-rw-rw----  1 root    root       0 Jun 17 13:28 cms.06171328
-rw-rw----  1 root    csaacct    0 Jun 17 13:30 cms.06171330
-rw-rw----  1 root    csaacct    0 Jun 17 13:33 cms.06171333
-rw-rw----  1 root    csaacct  61K Jul  5 09:48 cms.07050948
-rw-rw----  1 root    csaacct 4.1K Jul  5 15:25 cms.07051525
-rw-rw-r--  1 csaacct csaacct  591 Jul  5 15:25 loginlog
-rw-rw----  1 root    root    3.5K Jun 17 13:28 rprt.06171328
-rw-rw----  1 root    csaacct 3.5K Jun 17 13:30 rprt.06171330
-rw-rw----  1 root    csaacct 3.5K Jun 17 13:33 rprt.06171333
-rw-rw----  1 root    csaacct  11K Jul  5 09:48 rprt.07050948
-rw-rw----  1 root    csaacct 5.2K Jul  5 15:25 rprt.07051525

/var/csa/work:
total 0


Thanx a lot for your help,

Greg.




<Prev in Thread] Current Thread [Next in Thread>