System Administration Guide: Advanced Administration

How to Fix tacct Errors

  1. Become superuser.

  2. Change to the /var/adm/acct/sum directory.

  3. Convert the tacctMMDD file from binary to ASCII format.


    # /usr/lib/acct/acctmerg -v < tacctMMDD > xtacct
    

    MMDD is pair of two-digit numbers that represent the month and day.

  4. Edit the xtacct file, removing corrupted records and writing duplicate records to another file.

  5. Convert the xtacct file from ASCII format to binary.


    # /usr/lib/acct/acctmerg -i < xtacct > tacctMMDD
    

    MMDD is pair of two-digit numbers that represent the month and day.

  6. Merge the files tacctprev and tacct.MMDD into the tacct file.


    # /usr/lib/acct/acctmerg < tacctprev tacctMMDD > tacct