From owner-freebsd-stable@FreeBSD.ORG Fri Aug 24 09:03:58 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93E9116A418; Fri, 24 Aug 2007 09:03:58 +0000 (UTC) (envelope-from johan@stromnet.se) Received: from av12-2-sn2.hy.skanova.net (av12-2-sn2.hy.skanova.net [81.228.8.186]) by mx1.freebsd.org (Postfix) with ESMTP id 1C29613C481; Fri, 24 Aug 2007 09:03:58 +0000 (UTC) (envelope-from johan@stromnet.se) Received: by av12-2-sn2.hy.skanova.net (Postfix, from userid 502) id 4798E3854C; Fri, 24 Aug 2007 11:03:56 +0200 (CEST) Received: from smtp4-1-sn2.hy.skanova.net (smtp4-1-sn2.hy.skanova.net [81.228.8.92]) by av12-2-sn2.hy.skanova.net (Postfix) with ESMTP id 000C33854B; Fri, 24 Aug 2007 11:03:55 +0200 (CEST) Received: from phomca.stromnet.se (90-224-172-102-no129.tbcn.telia.com [90.224.172.102]) by smtp4-1-sn2.hy.skanova.net (Postfix) with ESMTP id 5334537E44; Fri, 24 Aug 2007 11:03:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by phomca.stromnet.se (Postfix) with ESMTP id B121EB826; Fri, 24 Aug 2007 11:03:51 +0200 (CEST) X-Virus-Scanned: amavisd-new at stromnet.se Received: from phomca.stromnet.se ([127.0.0.1]) by localhost (phomca.stromnet.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YJoUwxuVR9F8; Fri, 24 Aug 2007 11:03:48 +0200 (CEST) Received: from [172.28.1.102] (jstrom-mb.stromnet.se [172.28.1.102]) by phomca.stromnet.se (Postfix) with ESMTP id 0F80AB824; Fri, 24 Aug 2007 11:03:48 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <441B87F4-5846-441B-B6B4-34694B483C73@stromnet.se> References: <8039436E-1824-4C2E-915B-9069DEF23B10@stromnet.se> <20070821143136.GD1132@garage.freebsd.pl> <441B87F4-5846-441B-B6B4-34694B483C73@stromnet.se> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <77098FC1-E06C-4A0C-803F-038509F5F8CA@stromnet.se> Content-Transfer-Encoding: quoted-printable From: =?ISO-8859-1?Q?Johan_Str=F6m?= Date: Fri, 24 Aug 2007 11:03:31 +0200 To: freebsd-geom@freebsd.org, freebsd-stable@freebsd.org X-Mailer: Apple Mail (2.752.3) Cc: Subject: Re: Crashed gmirror, single disk marked SYNC and wont boot... X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Aug 2007 09:03:58 -0000 On Aug 21, 2007, at 17:53 , Johan Str=F6m wrote: > On Aug 21, 2007, at 16:31 , Pawel Jakub Dawidek wrote: >> >> All in all, your partition table seems to be gone. If you created =20 >> it on >> gmirror before (gm0s1) you may still have the same partition table on >> the other half of the mirror. You can try to move it to ad6 with >> bsdlabel and verify if you can see file system inside partitions. > > Okay, tried that now.. Saved ad0s1 label, reloaded it onto ad6s1.. =20 > Now I got same partition table on ad6s1 as on ad0s1... > Trying to mount any though gives me incorrect super block... fsck =20 > cannot find any superblocks either.. > > So.. What to do now then? Just for get ad6 and start from scratch =20 > from ad2? (as i said, the data isnt very old realy)... > > Im thinking about doing complete reinstall on ad4+ad6 then.. Can I =20 > do that? fdisk both with full partition on both, create a new =20 > gmirror between ad6s1/ad4s1 (or should i go on ad4/ad6?), create =20 > slices, use dump | restore (of course with apps shutdown so no data =20= > is changed.. or at least nothing that I care about) to copy all =20 > files from ad2 to new mirror.. what do I need to do more? bsdlabel -=20= > B on both to write boot blocks? Is there anything else to think about? > Ok just for the record, I plugged both sata disks in, cleared them, =20 created a new mirror on both of them, sliced up and dump -0 -L -f - / =20= | restore -r -f - all filesystems, also bsdlabel -B. and what i =20 missed in the above thext, fdisk -B to write boot0 code.. Now its =20 booted fine on the mirror! altough, one thing that I got curious about. In the fdisk manpage it =20 says -b can be used to change the bootcode.. and that default is /=20 boot/mbr.. What is this? I checked md5 against boot0 and its not the =20 same (altough I guess it might just be some boot0 with different =20 config..). I never found any references to this mbr file in neither =20 man pages or handbook. Again, thanks for the help :)