From owner-freebsd-geom@FreeBSD.ORG Sat Mar 10 14:54:31 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E93AC16A400 for ; Sat, 10 Mar 2007 14:54:31 +0000 (UTC) (envelope-from joan@iaeste.cat) Received: from hobbes.biaix.org (86.Red-213-97-212.staticIP.rima-tde.net [213.97.212.86]) by mx1.freebsd.org (Postfix) with SMTP id 1D5A113C4AA for ; Sat, 10 Mar 2007 14:54:30 +0000 (UTC) (envelope-from joan@iaeste.cat) Received: (qmail 87452 invoked from network); 10 Mar 2007 14:30:50 -0000 Received: from unknown (HELO ?192.168.1.2?) (89.129.132.148) by hobbes.biaix.org with SMTP; 10 Mar 2007 14:30:50 -0000 From: Joan Picanyol i Puig To: freebsd-geom@freebsd.org In-Reply-To: <20070304222140.GB40769@iaeste-catalunya.upc.es> References: <20070304222140.GB40769@iaeste-catalunya.upc.es> Content-Type: multipart/mixed; boundary="=-egYv+1O8CoMqPRQkKwiE" Organization: IAESTE Catalunya LC Date: Sat, 10 Mar 2007 15:24:57 +0100 Message-Id: <1173536697.53866.15.camel@pingu> Mime-Version: 1.0 X-Mailer: Evolution 2.8.3 FreeBSD GNOME Team Port Subject: Re: bypassing gmirror to recover filesystems X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Mar 2007 14:54:32 -0000 --=-egYv+1O8CoMqPRQkKwiE Content-Type: text/plain Content-Transfer-Encoding: 7bit El diu 04 de 03 del 2007 a les 23:21 +0100, en/na Joan Picanyol i Puig va escriure: > Hi, > > I've been hit by kern/107315 (previously discussed > http://lists.freebsd.org/pipermail/freebsd-geom/2006-April/001217.html) > > Any suggestions? What I did: 1.- boot old kernel, unloading geom_mirror first 2.- mount & dump all fs's (easy enough thanks to gmirror's metadata being on the last sector) 3.- manually clear gmirror's metadata with dd 4.- repartition drives and setup gmirror again I'm attaching the conflicting configuration (two mirrors on two slices, the failing one without being bsdlabel'd). qvb -- pica --=-egYv+1O8CoMqPRQkKwiE Content-Disposition: attachment; filename=fdisk.ad4.txt Content-Type: text/plain; name=fdisk.ad4.txt; charset=iso8859-15 Content-Transfer-Encoding: 7bit ******* Working on device /dev/ad4 ******* parameters extracted from in-core disklabel are: cylinders=484521 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=484521 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 123715809 (60408 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 243/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 123715872, size 307195623 (149997 Meg), flag 0 beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63 The data for partition 3 is: The data for partition 4 is: --=-egYv+1O8CoMqPRQkKwiE Content-Disposition: attachment; filename=bsdlabel.ad4s1.txt Content-Type: text/plain; name=bsdlabel.ad4s1.txt; charset=iso8859-15 Content-Transfer-Encoding: 7bit # /dev/ad4s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 1048576 0 4.2BSD 0 0 0 c: 123715809 0 unused 0 0 # "raw" part, don't edit d: 1048576 1048576 4.2BSD 0 0 0 e: 10485760 2097152 4.2BSD 0 0 0 f: 2097152 12582912 4.2BSD 0 0 0 g: 4194304 14680064 4.2BSD 0 0 0 h: 104841440 18874368 4.2BSD 0 0 0 --=-egYv+1O8CoMqPRQkKwiE Content-Disposition: attachment; filename=bsdlabel.ad4s2.txt Content-Type: text/plain; name=bsdlabel.ad4s2.txt; charset=iso8859-15 Content-Transfer-Encoding: 7bit # /dev/ad4s2: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 307195623 0 unused 0 0 # "raw" part, don't edit --=-egYv+1O8CoMqPRQkKwiE Content-Disposition: attachment; filename=gmirror_list.out Content-Type: text/plain; name=gmirror_list.out; charset=iso8859-15 Content-Transfer-Encoding: 7bit Geom name: gm0s1 State: COMPLETE Components: 2 Balance: round-robin Slice: 4096 Flags: NONE GenID: 0 SyncID: 1 ID: 2494591388 Providers: 1. Name: mirror/gm0s1 Mediasize: 63342493696 (59G) Sectorsize: 512 Mode: r6w6e7 Consumers: 1. Name: ad4s1 Mediasize: 63342494208 (59G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: DIRTY, HARDCODED GenID: 0 SyncID: 1 ID: 2375384516 2. Name: ad6s1 Mediasize: 63342494208 (59G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: DIRTY, HARDCODED GenID: 0 SyncID: 1 ID: 1585998909 Geom name: gm1 State: COMPLETE Components: 2 Balance: split Slice: 4096 Flags: NONE GenID: 0 SyncID: 1 ID: 947166852 Providers: 1. Name: mirror/gm1 Mediasize: 157284158464 (146G) Sectorsize: 512 Mode: r0w0e0 Consumers: 1. Name: ad4s2 Mediasize: 157284158976 (146G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: HARDCODED GenID: 0 SyncID: 1 ID: 2563999181 2. Name: ad6s2 Mediasize: 157284158976 (146G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 1 Flags: HARDCODED GenID: 0 SyncID: 1 ID: 3562666656 --=-egYv+1O8CoMqPRQkKwiE--