From owner-freebsd-questions Sun Jun 2 9:33:36 2002 Delivered-To: freebsd-questions@freebsd.org Received: from fedde.littleton.co.us (cfedde.dsl.frii.net [216.17.139.141]) by hub.freebsd.org (Postfix) with ESMTP id 7564737B404 for ; Sun, 2 Jun 2002 09:33:34 -0700 (PDT) Received: from fedde.littleton.co.us (localhost [127.0.0.1]) by fedde.littleton.co.us (8.12.3/8.12.3) with ESMTP id g52GXXQW048693; Sun, 2 Jun 2002 10:33:33 -0600 (MDT) Message-Id: <200206021633.g52GXXQW048693@fedde.littleton.co.us> To: Patrick Thomas Cc: freebsd-questions@FreeBSD.ORG Subject: Re: use of fsck -y In-Reply-To: <20020602071202.U18408-100000@utility.clubscholarship.com> From: Chris Fedde Date: Sun, 02 Jun 2002 10:33:33 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 2 Jun 2002 07:15:08 -0700 (PDT) Patrick Thomas wrote: +------------------ | > vnconfig /dev/vn0 /prisons/1a | > mount /dev/vn0c /mnt/point | > if [ $? != 0 ] | > then | > fsck -y /dev/vn0 | > mount /dev/vn0c /mnt/point | > if [ $? != 0 ] | > then | > echo Mount fails even after fsck. Better check this by hand | > fi | > fi | > /mnt/point/apachectl start | | If I understand correctly, this does the fsck only if it comes up dirty ? | But skips it if it comes up clean ? +------------------ this does the fsck only if the mount fails. +------------------ | > BTW. softupdates might also give you some performance advantages | > on peudo disk device filesystems. | | Will softupdates make fsck irrelevant ? That is, is it like journalling | in the sense that I can cut the power and not lose anything ? Or do I | still need to fsck after a crash ? +------------------ Softupdates ensures that the filesystem is always consistent on disk. It also reduces the number sync operations which improves create/delete performance and read/write on small files. A hard crash still will not mark the file system clean so a plain mount will fail. I've not experimented much with force mounting unclean softupdate enabled file systems. But I've never had a softupdate file system fail fsck -p. -- Chris Fedde To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message