From owner-freebsd-questions Mon May 20 14: 5:42 2002 Delivered-To: freebsd-questions@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id 12F0B37B403 for ; Mon, 20 May 2002 14:05:37 -0700 (PDT) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.3/8.12.3) with ESMTP id g4KL5RHc076301 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Mon, 20 May 2002 23:05:34 +0200 (CEST) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (localhost [IPv6:::1]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id g4KL5695072880 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 20 May 2002 23:05:06 +0200 (CEST)?g (envelope-from ticso@cicely5.cicely.de) Received: (from ticso@localhost) by cicely5.cicely.de (8.12.1/8.12.1/Submit) id g4KL53YT072879; Mon, 20 May 2002 23:05:03 +0200 (CEST)?g (envelope-from ticso) Date: Mon, 20 May 2002 23:05:02 +0200 From: Bernd Walter To: Henrik Hudson Cc: questions@FreeBSD.ORG Subject: Re: FSCK, RAID and "Magic Numbers" Message-ID: <20020520210502.GC72276@cicely5.cicely.de> References: <3CE47837.12770.2C35BA0@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3CE47837.12770.2C35BA0@localhost> User-Agent: Mutt/1.3.26i X-Operating-System: FreeBSD cicely5.cicely.de 5.0-CURRENT i386 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 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