From owner-freebsd-geom@FreeBSD.ORG Mon Apr 25 10:36:28 2005 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADF2B16A4CE; Mon, 25 Apr 2005 10:36:28 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5E1F43D39; Mon, 25 Apr 2005 10:36:27 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 900EBAC861; Mon, 25 Apr 2005 12:36:11 +0200 (CEST) Date: Mon, 25 Apr 2005 12:36:11 +0200 From: Pawel Jakub Dawidek To: freebsd-current@freebsd.org, freebsd-geom@freebsd.org Message-ID: <20050425103611.GJ837@darkness.comp.waw.pl> 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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9b4eu16IbjLAsbt2" Content-Disposition: inline In-Reply-To: <20050425095016.GA10621@laptoxa.toxa.lan> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 Subject: Re: gmirror: Not all disks connected X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2005 10:36:28 -0000 --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--