Installation guide

AdvFS fileset. If the −o option is not specified, the variable must be the raw
or character device special file. For example:
# /usr/sbin/acct/dodisk /dev/rrz3c
If you do not specify any arguments, disk accounting is performed on the
UFS device special files decribed in the /etc/fstab database file. Refer to
the fstab
(4) reference page for more information.
_______________________ Note _______________________
If you have a swap space specified in the /etc/fstab file, the
dodisk shell script will not execute correctly. In this case, you
can edit the dodisk shell script to use only specific file systems
or you can invoke the dodisk shell script and specify the file
systems for which you want accounting.
If you specify the −o option, the dodisk shell script uses the acctdusg
command instead of the diskusg command to perform a more thorough
but slower version of disk accounting. If you specify the −o option and a
filesystem
variable, specify the mount point instead of the device special
file name.
12.6.2 The diskusg Command
The diskusg command displays disk accounting records. The diskusg
command obtains user login names and identification numbers from the
/etc/passwd file. The diskusg command has the following syntax:
/usr/sbin/acct/diskusg
[−options][filesystems]
Refer to the diskusg(8) reference page for information on the command
options.
The diskusg command produces ASCII output, which is directed to the
/var/adm/dtmp file. This file is used as input to the acctdisk command,
which converts the ASCII records to binary total accounting records in the
/var/adm/acct/nite/dacct file. You can merge these records with other
accounting records to create a daily total accounting report.
Each output record produced by the diskusg command contains the user
identification number, login name, and the total number of disk blocks
allocated to the user. Because the diskusg command checks user inode
records, all disk space is accounted for, including empty directories.
The following is an example of the diskusg command:
# /usr/sbin/acct/diskusg /dev/rrz3c
0 root 63652
Administering the System Accounting Services 12–31