Date: Mon, 20 May 2002 23:05:02 +0200 From: Bernd Walter <ticso@cicely5.cicely.de> To: Henrik Hudson <rhavenn@rhavenn.net> Cc: questions@FreeBSD.ORG Subject: Re: FSCK, RAID and "Magic Numbers" Message-ID: <20020520210502.GC72276@cicely5.cicely.de> In-Reply-To: <3CE47837.12770.2C35BA0@localhost> References: <3CE47837.12770.2C35BA0@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 17, 2002 at 03:25:43AM -0500, Henrik Hudson wrote: > Hello List- > > I rebooted (ie: hit the reset switch) by accident tonight on my server. > > Server is running 4.5 release with a Mylex RAID controller on it. 2 RAID > 1 disks are setup. > > /etc/fstab: > > /dev/da0s1b none swap sw 0 0 > /dev/da1s1b none swap sw 0 0 > /dev/da0s1a / ufs rw 1 1 > /dev/da1s1e /data ufs rw,userquota 2 2 > /dev/da0s1h /tmp ufs rw 2 2 > /dev/da0s1e /usr ufs rw 2 2 > /dev/da0s1f /usr/local ufs rw 2 2 > /dev/da0s1g /var ufs rw 2 2 > > > When I run fsck -p /dev/da0s1 it works just fine. I am "supposed" to > do it this way even on a RAID disk, since the controller is taking care > of making sure the correct disk(s) are being written to underneath the > hood, right? Just checking :) > > My main problem is when I run this on /dev/da1s1 via: > fsck -p /dev/da1s1 > > I get the following error: > /dev/da1s1: BAD SUPER BLOCK: MAGIC NUMBER WRONG > > /dev/da1s1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. > > > Now, is this because the swap space is sitting up front? How would you > get around this problem? run fsck on a partition ans not on the complete slice. E.g. fsck /dev/da1s1e Your case with da0s1 did run because your slice starts with the filesystem from partition a - that's only luck. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de 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?20020520210502.GC72276>