Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Mar 2007 15:24:57 +0100
From:      Joan Picanyol i Puig <joan@iaeste.cat>
To:        freebsd-geom@freebsd.org
Subject:   Re: bypassing gmirror to recover filesystems
Message-ID:  <1173536697.53866.15.camel@pingu>
In-Reply-To: <20070304222140.GB40769@iaeste-catalunya.upc.es>
References:  <20070304222140.GB40769@iaeste-catalunya.upc.es>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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:
<UNUSED>
The data for partition 4 is:
<UNUSED>

--=-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--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1173536697.53866.15.camel>