Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 May 2000 17:16:32 +0300 (IDT)
From:      Nadav Eiron <nadav@cs.Technion.AC.IL>
To:        kenneth@karoliussen.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: fsck and Vinum file systems
Message-ID:  <Pine.GSO.3.95-heb-2.07.1000504171137.19074A-100000@csd>
In-Reply-To: <39118544.F0A4708C@activeisp.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Thu, 4 May 2000, Kenneth Karoliussen wrote:

> Nadav Eiron wrote:
> > 
> > This really belongs to -questions: This has nothing to do with vinum.
> 
> Sorry, about that. I was a glitch won't happen again :-)
> 
> >You _asked_ for fsck not to run on this filesystem during an automatic reboot
> > (that's the 0 in the last field). Replace it with a 2 (for instance) and
> > all should be well. Read the man page for fstab(5).
> 
> I just noticed that the problem has been solved in 4.0-STABLE (I'm studding the
> change done from 3.4 - 4.0).
> 
> My problem actually referred to a 3.4-STABLE system, where fsck most likely will fail
> when checking a inconsistent Vinum file system.

My answer is valid for 3.4 (I don't run vinum on 4.0 yet, but I'm sure
it's pretty much the same). From man fstab(5) (on a 3.4 system, FWIW):

     [snip] ... If
     the sixth field is not present or is zero, a value of zero is returned
     and fsck(8) will assume that the filesystem does not need to be checked.

In your fstab, for this filesystem, the last (sixth) field is zero. This
means that fsck will _not_ check this filesystem at all during an
automatic boot. This means that if it needs an fsck, mount will find that
out, and will stop the boot process, demanding you to fsck in single user
mode. I have a 3.4 machine with two vinum filesystems that get fsck'd just
fine (with the correct entry in fstab, of course).

> 
> /Kenneth
> 
> On Thu, 4 May 2000, Kenneth Karoliussen wrote:
> > Is there a convenient way to make fsck repair inconsistent vinum filesystems properly,
> > without dropping into single modus if an improper shutdown occurs?
> > 
> > I have the following Vinum fstab entry in my FreeBSD 3.4-STABLE system:
> > /dev/vinum/vol/usr      /usr            ufs     rw              2       0
> > 
> > /Kenneth
> > 
> >
> 
Nadav



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.95-heb-2.07.1000504171137.19074A-100000>