Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fsck(1M_VXFS) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

crash(1M)

fs(4VXFS)

fsck(1M)

mkfs(1M)

ncheck(1M)

uadmin(2)






       fsck(1M_VXFS)                  (VXFS)                  fsck(1M_VXFS)


       NAME
             fsck (vxfs) - check and repair vxfs file systems

       SYNOPSIS
             fsck [-F vxfs] [generic_options] [-yY] [-nN] [-P]
                   [ -o full,nolog ] special . . .

       DESCRIPTION
             The fsck utility checks vxfs file systems for consistency.
             Since vxfs records pending file system updates in an intent
             log, fsck typically runs an intent log replay rather than a
             full structural file system check on a vxfs file system.

             generic_options are options supported by the generic fsck
             command.

             The options are:

             -F vxfs   Specify the vxfs FSType.

             -y        Assume a yes response to all questions asked by
                       fsck.  Additionally, if the file system requires a
                       full file system check after the log replay, or if
                       the nolog suboption causes the log replay to be
                       skipped and the file system is not clean, then a
                       full file system check is performed.

             -n        Assume a no response to all questions asked by fsck;
                       do not open the file system for writing.  Log replay
                       is not performed.  A full file system check is
                       performed.

             -P        Cause fsck to produce messages that identify the
                       device being checked.

                       NOTE: With VxFS, -P is used by fsck by default. With
                       other file system types, it is optional.

             -o        Specify vxfs file system specific options.  These
                       options can be a combination of the following in a
                       comma-separated list:

                       full  Perform a full file system check.  The default
                             is to perform an intent log replay only.
                             Since the vxfs file system maintains an intent
                             log, a complete check is generally not


                           Copyright 1994 Novell, Inc.               Page 1













      fsck(1M_VXFS)                  (VXFS)                  fsck(1M_VXFS)


                            required.  If the file system detects damage
                            or the log replay operation detects damage, an
                            indication that a complete check is required
                            is placed in the super-block, and a full check
                            is performed.

                      nolog Do not perform log replay.  This option may be
                            used if the log area was physically damaged.

            When a full check is performed, the following inconsistencies
            are checked:

                  Blocks claimed by more than one inode or the free list.

                  Blocks claimed by an inode outside the range of the file
                  system.

                  Incorrect link counts.

                  Size checks:

                        Incorrect number of blocks.

                        Directory entry format.

                  Bad inode format.

                  Blocks not accounted for anywhere.

                  Directory checks:

                        File pointing to unallocated inode.

                        Inode number out of range.

                        Linkage to parent directory.

                        Hash chain linkage.

                        Free space count.

                  Super-block checks:

                        Checksum mismatch.




                          Copyright 1994 Novell, Inc.               Page 2













       fsck(1M_VXFS)                  (VXFS)                  fsck(1M_VXFS)


                         More blocks for inodes than there are in the file
                         system.

                   Structural Files: (VxFS Version 2 layout only)

                         Fileset headers.

                         Object Location Table (OLT).

                         Inode list files.

                         Inode allocation summary files.

                         Attribute files (including Access Control Lists).

                         Attribute link counts.

                   Bad free block list format.

                   Total free block and/or free inode count incorrect.

             Orphaned files and directories (allocated but unreferenced)
             are, with the user's concurrence, reconnected by placing them
             in the lost+found directory.  The name assigned is the inode
             number.  The only restriction is that the directory lost+found
             must already exist in the root of the file system being
             checked.

       OUTPUT
             Structural errors discovered during a full check are displayed
             on standard output.  Responses required during a full check
             are read from standard input.

             The following return codes are used for the -m (generic)
             option for all devices other than the one used by the root
             file system:

             0     The file system is unmounted and clean.

             32    The file system is unmounted and needs checking.

             33    The file system is mounted.

             34    The stat of the device failed.




                           Copyright 1994 Novell, Inc.               Page 3













      fsck(1M_VXFS)                  (VXFS)                  fsck(1M_VXFS)


            Other The state could not be determined because of an error.

            The following return codes are used for the -m (generic)
            option for the device used by the root file system:

            0     The root file system is mounted read-only and is clean,
                  or the root file system is mounted read/write and
                  therefore doesn't need checking.

            32    The root file system is mounted read-only and needs
                  checking.

            34    The stat of the device failed.

            Other The state could not be determined because of an error.

            Normally, fsck will print the following messages:

                        log replay in progress
                        replay complete -- marking super-block as CLEAN

            If the file system is  already  clean,  fsck  will  print  the
            following message instead:

                        file system is clean -- log replay is not required

            If fsck prints any other messages, a full structural check  is
            needed.   If  the  -y  option  is  specified,  fsck  will  (if
            necessary) perform a full check after running the  intent  log
            replay.  If  the  -y  option is not used, fsck must be invoked
            with the -o full option to perform a full structural check.

      DIAGNOSTICS
            All error messages that relate to the contents of a file
            system produced during a log replay are displayed on standard
            output.  All I/O failures and exit messages are displayed on
            standard error output.

      NOTES
            Checking the raw device is almost always faster.

            A full file system check will always perform any pending
            extended inode operations without operator interaction.  If a
            structural flaw is detected during the intent log replay, the
            full fsck flag will be set on the file system, without
            operator interaction.


                          Copyright 1994 Novell, Inc.               Page 4













       fsck(1M_VXFS)                  (VXFS)                  fsck(1M_VXFS)


       REFERENCES
             crash(1M), vxfs-specific fs(4VXFS), generic fsck(1M),
             mkfs(1M), ncheck(1M), uadmin(2)













































                           Copyright 1994 Novell, Inc.               Page 5








Typewritten Software • bear@typewritten.org • Edmonds, WA 98026