Solved

why vfstab file shows /opt fsck pass 2

Posted on 2001-08-07
4
1,939 Views
Last Modified: 2013-12-27
vfstab file for my system is as follows:

#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1       yes     -
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c0t0d0s1       -       -       swap    -       no      -
/dev/dsk/c0t0d0s0       /dev/rdsk/c0t0d0s0      /       ufs     1       no      -
/dev/dsk/c0t0d0s6       /dev/rdsk/c0t0d0s6      /usr    ufs     1       no      -
/dev/dsk/c0t0d0s7       /dev/rdsk/c0t0d0s7      /var    ufs     1       no      -
/dev/dsk/c0t0d0s5       /dev/rdsk/c0t0d0s5      /opt    ufs     2       yes     -
swap    -       /tmp    tmpfs   -       yes     -

why fsck column for /opt is 2 while the rest are ether - or 1?

Sun Solaris manual says fsck pass indicates whether the file system is to be checked by fsck at boot time. A whole number indicates a yes.  A dash or a zero indicates no.  

So what does a 2 indicate?  Why a 2 is placed in there for /opt by default?  Does this mean anything differently for /opt?

0
Comment
Question by:frankf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 4

Expert Comment

by:Otetelisanu
ID: 6362728
fsck pass        The pass number used by fsck to determine whether to check a file system. When the field contains a dash (-), the file system is not checked. When the field contains a value  of 1 or more, the file system is checked; non-ufs file  systems with a 0 fsck pass are checked. For ufs file ystems only, when the field contains a 0, the file system is not checked. When fsck is run on multiple ufs file systems that have fsck pass values greater than 1 and
the preen option (-o p) is used, fsck automatically         checks the file systems on different disks in parallel to
maximize efficiency. When the field contains a value of 1,
the file system is checked sequentially. Otherwise, the
value of the pass number does not have any effect. In
SunOS 5.3 system software, the fsck pass field does not
explicitly specify the order in which file systems are
checked.
0
 
LVL 3

Accepted Solution

by:
p_yaroslav earned 50 total points
ID: 6362750
Hello!

When fsck is run on multiple ufs file systems that have fsck pass values greater than 1 and the preen option (-o p) is used, fsck automatically checks the file systems on different disks in PARALLEL to maximize efficiency. When the field contains a value of 1, the file system is checked sequentially. Otherwise, the value of the pass number does not have any effect.

Best regards!
Yaroslav.
0
 
LVL 4

Expert Comment

by:Otetelisanu
ID: 6362756
When the field contains a value of 1, the file system is checked sequentially. Otherwise, the value
of the pass number does not have any effect.
0
 
LVL 4

Expert Comment

by:Otetelisanu
ID: 6362799
The fsck pass value
of 2 means that the file system will be checked, but not sequentially
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
awk sed 8 135
centos commands 6 114
Shell Script- gzip 5 84
unix how to search all linked and hidden files in current directory 5 18
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question