Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Dec 2008 15:48:06 +0100
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Charlie La Mothe <charlie@clamothe.com>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: gmirror insert error: Synchronization request failed (error=1)
Message-ID:  <20081205144806.GA3284@garage.freebsd.pl>
In-Reply-To: <6AEFCB5D-BF7F-49EE-9EDC-E5CD63920508@clamothe.com>
References:  <6AEFCB5D-BF7F-49EE-9EDC-E5CD63920508@clamothe.com>

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

--k1lZvvs/B4yU6o8G
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Dec 05, 2008 at 04:33:38AM -0800, Charlie La Mothe wrote:
> I have three SATA disks: ad6, ad7, and ad8.
>=20
> I just installed a fresh copy of FreeBSD 7.0 amd64 (minimal) on ad6s1a.
>=20
> I setup a gmirror with: gmirror -vb round-robin gm0 /dev/ad6s1a.  I =20
> edited my fstab, and told my loader.conf to load geom_mirror.
>=20
> The machine boots up fine, however I run into an error when I try to =20
> insert an additional component:
>=20
> # gmirror insert gm0 /dev/ad7s1d
> # tail /var/log/messages
> Dec  5 04:27:51 monopoly kernel: GEOM_MIRROR: Device gm0: rebuilding =20
> provider ad7s1d.
> Dec  5 04:27:51 monopoly kernel: GEOM_MIRROR: Synchronization request =20
> failed (error=3D1). ad7s1d[WRITE(offset=3D0, length=3D131072)]
> Dec  5 04:27:51 monopoly kernel: GEOM_MIRROR: Device gm0: provider =20
> ad7s1d disconnected.
> Dec  5 04:27:51 monopoly kernel: GEOM_MIRROR: Device gm0: rebuilding =20
> provider ad7s1d stopped.
>=20
> # gmirror status
>       Name    Status  Components
> mirror/gm0  DEGRADED  ad6s1a
>=20
> # gmirror list
> Geom name: gm0
> State: DEGRADED
> Components: 2
> Balance: round-robin
> Slice: 4096
> Flags: NONE
> GenID: 4
> SyncID: 1
> ID: 1745622490
> Providers:
> 1. Name: mirror/gm0
>    Mediasize: 5368708608 (5.0G)
>    Sectorsize: 512
>    Mode: r1w1e1
> Consumers:
> 1. Name: ad6s1a
>    Mediasize: 5368709120 (5.0G)
>    Sectorsize: 512
>    Mode: r1w1e1
>    State: ACTIVE
>    Priority: 0
>    Flags: NONE
>    GenID: 4
>    SyncID: 1
>    ID: 3963284114
>=20
>=20
> I haven't been able to find any explanation for this error.  The same =20
> error occurs when I attempt to insert the ad8s1d component.
>=20
> All of the hard drives diagnose to be working.
>=20
>=20
> BSD label Reference:
>=20
> Each disk has one slice.
>=20
> Summary:
> 	5GB UFS boot partition
> 	5GB Swap
> 	~950GB unused partition (for zfs / raidz).
>=20
> # bsdlabel /dev/ad6s1
>=20
> # /dev/ad6s1:
> 8 partitions:
> #        size   offset    fstype   [fsize bsize bps/cpg]
>   a: 10485760        0    4.2BSD     2048 16384 28528
>   b: 10485760 10485760      swap
>   c: 1953520002        0    unused        0     0         # "raw" =20
> part, don't edit
>   d: 1932548482 20971520    4.2BSD        0     0     0
>=20
> # bsdlabel /dev/ad7s1
>=20
> # /dev/ad7s1:
> 8 partitions:
> #        size   offset    fstype   [fsize bsize bps/cpg]
>   b: 10485760 10485760      swap
>   c: 1953520002        0    unused        0     0         # "raw" =20
> part, don't edit
>   d: 10485760        0    4.2BSD        0     0     0

This is your problem. No partition should start at offset 0 and yet
sysinstall creates those.

>   e: 1932548482 20971520    4.2BSD        0     0     0
>=20
>=20
> # bsdlabel /dev/ad8s1
>=20
> # /dev/ad8s1:
> 8 partitions:
> #        size   offset    fstype   [fsize bsize bps/cpg]
>   b: 10485760 10485760      swap
>   c: 1953520002        0    unused        0     0         # "raw" =20
> part, don't edit
>   d: 10485760        0    4.2BSD        0     0     0
>   e: 1932548482 20971520    4.2BSD        0     0     0
>=20
> _______________________________________________
> freebsd-geom@freebsd.org mailing list

> http://lists.freebsd.org/mailman/listinfo/freebsd-geom
> To unsubscribe, send any mail to "freebsd-geom-unsubscribe@freebsd.org"

--=20
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--k1lZvvs/B4yU6o8G
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFJOT8mForvXbEpPzQRAtTmAKDznj1HZdyciyl7MbwBxetuopnrlwCgu3VV
zi32qGOMO+CjDu6kzIiaWHU=
=KWrh
-----END PGP SIGNATURE-----

--k1lZvvs/B4yU6o8G--



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