From owner-freebsd-current@FreeBSD.ORG Mon Sep 27 07:46:23 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12C7E16A4CE; Mon, 27 Sep 2004 07:46:23 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EAC843D2F; Mon, 27 Sep 2004 07:46:20 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id AB96EACC5F; Mon, 27 Sep 2004 09:46:18 +0200 (CEST) Date: Mon, 27 Sep 2004 09:46:18 +0200 From: Pawel Jakub Dawidek To: Ruslan Ermilov Message-ID: <20040927074618.GR9550@darkness.comp.waw.pl> References: <20040927062820.GA89984@ip.net.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0blaZc+aUkVqY8MO" Content-Disposition: inline In-Reply-To: <20040927062820.GA89984@ip.net.ua> 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 cc: current@FreeBSD.org Subject: Re: gmirror questions X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2004 07:46:23 -0000 --0blaZc+aUkVqY8MO Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 27, 2004 at 09:28:20AM +0300, Ruslan Ermilov wrote: +> 1. When I try to "bsdlabel -B /dev/mirror/m0", I get: +>=20 +> # bsdlabel -B /dev/mirror/m0 +> bsdlabel: Geom not found +>=20 +> Hopefully, using "/dev/mirror/m0c" works. Any clue why this +> doesn't work? I can't reproduce it. Could you show me whole process starting from creating a mirror? +> 2. Before a reboot, the state of the mirror was "COMPLETE". +>=20 +> After a first reboot, everything was ok. After a second +> reboot, I got this: +>=20 +> ad0: 38166MB [77545/16/63] at ata0-master UDMA100 +> ad1: 38204MB [77622/16/63] at ata0-slave UDMA= 100 +> ad2: 38166MB [77545/16/63] at ata1-master UDMA100 +> ad3: 38204MB [77622/16/63] at ata1-slave UDMA= 100 +> GEOM_MIRROR: Device m0 created (id=3D411263865). +> GEOM_MIRROR: Device m0: provider ad1 detected. +> GEOM_MIRROR: Device m0: provider ad3 detected. +> GEOM_MIRROR: Device m0: provider ad3 activated. +> GEOM_MIRROR: Device m0: provider mirror/m0 launched. +> GEOM_MIRROR: Device m0: rebuilding provider ad1. +>=20 +> Any idea why it thinks ad1 should be rebuilt? Because you use reboot(8) instead of shutdown(8) to reboot your machine? When shutdown(8) is used, swap partition will be removed before reboot, in your case, mirror is still open for writing on reboot, so it will rebuild components on next boot, because they are marked as dirty. +> 3. The syncing process takes very long, how do I tune it using +> the kern.geom.mirror sysctls? The kern.geom.mirror.syncs_per_sec sysctl means number of synchronization requests per second, so you should increase it. Increasing hz should also help, but I'm not sure actually. There is a simple way to increase synchronization performance by adding more g_mirror_sync_one() calls, but I need to think of some understandable way to tune it. +> 4. Will the following work with GEOM_MIRROR? +>=20 +> - mirror m0 is originally from two 10G providers (p1 and p2) +> - remove p2 from the mirror +> - add p3 of size 20G to the mirror +> - wait until p3 synchronizes with p1 +> - remove p1 from the mirror +>=20 +> Will m0's size grow up to 20G after this procedure? No. Changing provider's attributes (such as mediasize, sectorsize), while it is running is not supported by GEOM, AFAIK. --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --0blaZc+aUkVqY8MO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBV8VKForvXbEpPzQRAkyYAKCnY9kwxIktwuiWJFyKCOte4awDuQCdGm3V rGXuzPlWt8vUrkPeWTXvf/g= =hxcV -----END PGP SIGNATURE----- --0blaZc+aUkVqY8MO--