System Administration Guide: Advanced Administration

ProcedureHow to Fix tacct Errors

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

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

  3. Convert the tacctMMDD file from binary format 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 format.

    # /usr/lib/acct/acctmerg -i < xtacct > tacctMMDD
  6. Merge the files tacctprev and tacct.MMDD into the tacct file.

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