B    AdvFS Commands

This appendix summarizes the AdvFS commands. The reference pages provide detailed information.

B.1    AdvFS Base System Commands

The following tables list and describe each of the AdvFS commands available in the base portion of AdvFS. These commands are included with the basic license; they do not require a layered product license. If you installed the reference page subset, you can access reference pages for each of these commands by issuing the man command.

Table B-1:  AdvFS Configuration Commands

Command Description
chfile Changes the attributes of a file
chvol Changes the attributes of a volume
defragment Makes the files in a domain more contiguous
mkfdmn Creates a domain
mkfset Creates a fileset within a domain
renamefset Renames an existing fileset
rmfdmn Removes a domain
rmfset Removes a fileset from a domain
switchlog Moves the AdvFS log file to a different volume in a domain

Table B-2:  AdvFS Information Display Commands

Command Description
advfsstat Displays file system statistics
ncheck Displays the tag and full pathname for each file in the file system
showfdmn Displays the attributes of a domain
showfile Displays the attributes of a file
showfsets Displays the attributes of filesets in a domain
vdf Displays used and available disk space for a fileset or a domain

Table B-3:  AdvFS Backup Commands

Command Description
rvdump Remotely performs full and incremental fileset backup
rvrestore Remotely restores files from backup media
vdump Performs full and incremental fileset backup
vrestore Restores files from backup media

Table B-4:  AdvFS Check and Repair Commands

Command Description
advscan Locates AdvFS partitions on disks
fixfdmn Fixes on-disk metadata corruption
mountlist Checks for mounted AdvFS filesets
salvage Recovers file data from damaged AdvFS domains
tag2name Prints the pathname of a file given the tag number
verify Checks for and repairs file system inconsistencies

Table B-5:  AdvFS Quota Commands

Command Description
chfsets Changes file and block quotas; turns object safety, fragging, and data management API on and off
edquota Edits user and group quotas
quot Summarizes file and block information
quota Displays disk usage and limits by user or group
quotacheck Checks file system quota consistency
quotaoff Turns quotas off
quotaon Turns quotas on
repquota Summarizes quotas for a file system

Table B-6:  AdvFS Disk Structure Commands

Command Description
nvbmtpg Displays a formatted page of the bitfile metadata table (BMT)
nvfragpg Displays file fragment information
nvlogpg Displays a formatted page of the log
nvtagpg Displays a formatted page of the tag directory
savemeta Captures a domain's metadata
shblk Displays unformatted disk blocks
shfragbf Displays file fragment information
vfilepg Displays a page of an AdvFS file
vsbmpg Displays a page of the storage bitmap

B.2    AdvFS Utilities Commands

The following table lists and describes AdvFS Utilities commands. These commands require the optional AdvFS Utilities product license. If you installed the AdvFS Utilities reference page subset, you can access reference pages for each of these commands by entering the man command.

Table B-7:  AdvFS Utilities Commands

Command Description
addvol Adds a volume to an existing domain
advfsd Starts the AdvFS GUI agent (daemon)
balance Balances the percentage of used space between volumes
clonefset Creates a read-only copy of a fileset
dtadvfs Starts the AdvFS GUI
lsmsa Starts Logical Storage Manager Storage Administrator (LSMSA)
migrate Moves a file to another volume in the domain
mktrashcan Attaches directories to a trashcan directory, which stores deleted files
rmtrashcan Detaches a specified directory from a trashcan directory
rmvol Removes a volume from an existing domain
shtrashcan Shows the trashcan directory, if any, that is attached to a specified directory
stripe Interleaves storage allocation of a file across two or more volumes within a domain

B.3    Comparison of AdvFS and UFS Commands

The following table lists the AdvFS commands and equivalent or similar commands available in UFS file systems. Note that there is no one-to-one correspondence between all AdvFS and all UFS commands.

Table B-8:  Comparison of AdvFS and UFS Commands

AdvFS Command UFS Command
addvol None; UFS does not use volumes.
advfsd None; no UFS GUI.
advfsstat Use iostat or system monitoring tools such as sys_check and Collect for Tru64 UNIX. Use event monitoring tools to watch for file system events.
advscan None; UFS does not use volumes.
balance None; UFS does not use volumes.
chfile None; the only attributes that can be changed are ownership and protection.
chfsets None; the only attributes that can be changed are ownership and protection.
chvol None; UFS does not use volumes.
clonefset None.
defragment None.
dtadvfs, lsmsa None; no UFS GUI.
migrate Use cp and mv.
mkfdmn, mkfset Use newfs.
mktrashcan, rmtrashcan, shtrashcan Use CDE windowing environment, which provides a deferred deletion.
mountlist Use mount.
ncheck Same as AdvFS.
fixfdmn, nvbmptg, nvfragpg, nvlogpg, nvtagpg, savemeta, shblk, shfragbf, vfilepg, vsbmpg None; no analogous UFS commands.
quota, edquota, quot, quotacheck, quotaoff, quotaon, repquota Same as AdvFS.
renamefset None.
rmfdmn, rmfset Unmount the file system using mount, remove the entry from the /etc/fstab file.
rmvol None; UFS does not use volumes.
vdump, rvdump, vrestore, rvrestore Use dump, rdump, restore, and rrestore. Can use AdvFS commands.
salvage None.
showfdmn None.
showfile Use file and ls -l.
stripe None.
switchlog None.
tag2name None.
vdf Use df and du.
verify Use fsck and bcheckrc.