Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Apr 2005 12:36:11 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        freebsd-current@freebsd.org, freebsd-geom@freebsd.org
Subject:   Re: gmirror: Not all disks connected
Message-ID:  <20050425103611.GJ837@darkness.comp.waw.pl>
In-Reply-To: <20050425095016.GA10621@laptoxa.toxa.lan>
References:  <20050424022434.GA3384@laptoxa.toxa.lan> <20050424094343.GA837@darkness.comp.waw.pl> <20050424190912.GA6743@laptoxa.toxa.lan> <20050424193018.GH837@darkness.comp.waw.pl> <20050425095016.GA10621@laptoxa.toxa.lan>

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

--9b4eu16IbjLAsbt2
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Apr 25, 2005 at 01:50:16PM +0400, Toxa wrote:
+> On Sun, Apr 24, 2005 at 09:30:18PM +0200, Pawel Jakub Dawidek wrote:
+> > If you created gmirror giving first smaller disk and then connecting b=
igger
+> > one it should be ok. If disk which you want to insert is smaller than
+> > already existing components, gmirror should return an error, so this is
+> > probably not the case.
+>=20
+>=20
+> Well, as you can see, the disk I inserted was *a little* smaller, in
+> fact, it should be equal size of the first one, and gmirror accepted it
+> into gm0 *without any error*. But after final reboot it refused to attac=
h it.
+> Changing disk order (creating new gm1 on smaller disk, then attaching=20
+> a bigger disk to gm1) solved this problem. So maybe this is a weird
+> bug...

I checked the code and there was a bug, but only when there was one sector
difference. So if in your case was 3 sectors, it should tell you that your
provider is too small:

	# mdconfig -a -t malloc -s 100
	md0
	# mdconfig -a -t malloc -s 103
	md1
	# gmirror label foo md1
	# gmirror insert foo md0
	Provider md0 too small.
	Exit 1

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

--9b4eu16IbjLAsbt2
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFCbMgbForvXbEpPzQRAqH8AJ9MUMVKiqT4zAgcNtjps7cjuvBEpQCeI7Tj
dExq81y8xJriOSJ6CB1gmPA=
=S4p5
-----END PGP SIGNATURE-----

--9b4eu16IbjLAsbt2--



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