*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: verify | Section: 8 | Source: Digital UNIX | File: verify.8.gz
verify(8) System Manager's Manual verify(8) NAME verify - checks the AdvFS on-disk metadata structures SYNOPSIS /sbin/advfs/verify [-f|-d] [-v|-q] [-t] [-r] [-F] domain_name PARAMETER Specifies the file domain. FLAGS Creates a hard link to "fix" a lost file in the /???/lost+found direc- tory; deletes any directory entries that do not have associated files; deletes files that have storage bitmap or extent map problems; corrects inconsistencies in the storage bitmap. Deletes lost files (that is, files with no directory entry). Prints file status information. Se- lecting this flag slows down the verify procedure. Prints minimal file status information. Displays the mcell totals. Checks the root do- main. Mounts the filesets of a file domain using the mount -d option if there is a mount failure of the file domain. Use this flag with cau- tion. DESCRIPTION The verify command checks on-disk structures such as the bitfile meta- data table (BMT), the storage bitmaps, the tag directory and the frag file for each fileset. It verifies that the directory structure is correct and that all directory entries reference a valid file (tag) and that all files (tags) have a directory entry. The verify command checks the storage bitmap for double allocations and missing storage. It checks that all mcells in use belong to a bitfile and that all bitfiles have all of their mcells. The verify command checks the consistency of free lists for mcells and tag directories. It checks that the mcells pointed to by tags in the tag directory match the corresponding mcells. For each fileset in the specified file domain, the verify command checks the frag file headers for consistency. For each file that has a fragment, the frag file is checked to ensure that the frag is marked as in use. RESTRICTIONS You must be the root user to use this command. Unless you are checking the root domain, all filesets in the file do- main must be unmounted. The verify command automatically mounts all of the filesets in a file domain individually. If you choose the -r op- tion when you run the verify command on the root domain, all filesets in the root domain must be mounted. Run the verify command on /root and /usr from a single-user mode. To run the verify command in single-user mode, you must first run a mount update on the root (mount -u /). To run the command from multi-user mode, dismount any file system that you have mounted as /root or /usr and make sure there is no file activity. If you run the verify command on a fileset that has any other file sys- tem (AdvFS or otherwise) mounted on it, an error results. If you have an fileset erroneously labeled as UFS and it overlaps a fileset labeled AdvFS, an error results. You can recover from this error by changing the erroneously-labeled fileset's fstype field from ufs to unused with the disklabel -s command. After changing the disk label, run the ver- ify command. If the -F option is specified and the verify command is unable to mount a fileset due to a failure of the file domain, the fileset is mounted using the mount -d option. Use this option with extreme caution and only as a last resort when you cannot mount a fileset. The mount -d option mounts an AdvFS fileset without running recovery on the file do- main. Mounting without running recovery will cause your file domain to be inconsistent. If you use the -F option, the verify command starts some recovery on the file domain before you mount it. EXAMPLES The following example verifies the file domain dmnx with the filesets setx and sety: # /sbin/advfs/verify dmnx +++ Domain verification +++ Domain Id 2f9eb70a.000f1db0 Checking disks ... Checking storage allocated on disk /dev/rz10g Checking storage allocated on disk /dev/rz10a Checking mcell list ... Checking mcell position field ... Checking tag directories ... +++ Fileset verification +++ +++ Fileset setx +++ Checking frag file headers ... Checking frag file type lists ... Scanning directories and files ... 300 Scanned 307 directories. Scanning tags ... 1100 Scanned a total of 1135 tags. Searching for lost files ... 1100 Searched 1135 tags, no lost files found. +++ Fileset sety +++ Checking frag file headers ... Checking frag file type lists ... Scanning directories and files ... 900 Scanned 911 directories. Scanning tags ... 5100 Scanned a total of 5173 tags. Searching for lost files ... 5100 Searched 5173 tags, no lost files found. # EXIT VALUES The verify utility returns a zero on success if it did not find any corruption and a positive integer on succes if it did find any corrup- tion. The verify utility returns a -1 on failure. FILES Specifies the command path. RELATED INFORMATION advfs(4), fsck(8) delim off verify(8)

Navigation Options