Date: Sun, 02 Jun 2002 00:33:49 -0600 From: Chris Fedde <chris@fedde.littleton.co.us> To: Patrick Thomas <root@utility.clubscholarship.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: use of fsck -y Message-ID: <200206020633.g526XnQW047284@fedde.littleton.co.us> In-Reply-To: <20020601214223.T18408-100000@utility.clubscholarship.com>
index | next in thread | previous in thread | raw e-mail
On Sat, 1 Jun 2002 21:48:02 -0700 (PDT) Patrick Thomas wrote:
+------------------
| vnconfig /dev/vn0 /prisons/1a
| fsck -y /dev/vn0
| mount /dev/vn0c /mnt/point
| /mnt/point/apachectl start
+------------------
I might want to be more carefull with the logic. If the partition is small
then the fsck does not hurt much but if it is large then they can be
painfully slow. try something more like the following...
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
Using fsck -y will allow fsck to create files in lost+found if it
has to. It also enables some repairs that can cause other data
loss.
BTW. softupdates might also give you some performance advantages
on peudo disk device filesystems.
--
Chris Fedde
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206020633.g526XnQW047284>
