From owner-freebsd-geom@FreeBSD.ORG Fri Jul 7 19:47:10 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org 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 1662C16A4E1 for ; Fri, 7 Jul 2006 19:47:10 +0000 (UTC) (envelope-from viktor.vasilev@stud.tu-darmstadt.de) Received: from lnx130.hrz.tu-darmstadt.de (lnx130.hrz.tu-darmstadt.de [130.83.174.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id E04D243D58 for ; Fri, 7 Jul 2006 19:47:08 +0000 (GMT) (envelope-from viktor.vasilev@stud.tu-darmstadt.de) Received: from mailserver3.hrz.tu-darmstadt.de (lnx116.hrz.tu-darmstadt.de [130.83.174.28]) by lnx130.hrz.tu-darmstadt.de (8.13.4/8.12.10) with ESMTP id k67Jl7Q7004595 for ; Fri, 7 Jul 2006 21:47:07 +0200 Received: from [89.56.137.151] (helo=noname) by mailserver3.hrz.tu-darmstadt.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1FywI6-0005Ur-Eq for freebsd-geom@freebsd.org; Fri, 07 Jul 2006 21:47:07 +0200 From: Viktor Vasilev To: freebsd-geom@freebsd.org Date: Fri, 7 Jul 2006 21:46:57 +0200 User-Agent: KMail/1.9.1 References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1272516.REfpvur4kq"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200607072147.01099.viktor.vasilev@stud.tu-darmstadt.de> Subject: Re: Detecting GMIRROR volumes without using gmirror utility X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jul 2006 19:47:10 -0000 --nextPart1272516.REfpvur4kq Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 07 July 2006 20:55 Scott Ullrich wrote: > I am working on adding GEOM mirror support to BSD Installer but do not > with to depend on the gmirror binary to survey known disks. > > Is it possible to find out the active gmirror volumes somehow via the > kernel? Maybe a sysctl knob similar to kern.disks? Maybe this could do the job: sysctl -b kern.geom.conftxt I don't have an active gmirror setup, but google says the output looks like= =20 this: 0 DISK ad2 120034123776 512 hd 16 sc 63 1 MIRROR mirror/gm0 120034123264 512 2 MBR mirror/gm0s1 120031478784 512 i 0 o 32256 ty 165 3 BSD mirror/gm0s1f 118984074240 512 i 5 o 1047404544 ty 7 3 BSD mirror/gm0s1e 268435456 512 i 4 o 778969088 ty 7 3 BSD mirror/gm0s1d 268435456 512 i 3 o 510533632 ty 7 3 BSD mirror/gm0s1c 120031478784 512 i 2 o 0 ty 0 3 BSD mirror/gm0s1b 242098176 512 i 1 o 268435456 ty 1 3 BSD mirror/gm0s1a 268435456 512 i 0 o 0 ty 7 0 DISK ad0 120034123776 512 hd 16 sc 63 1 MBR ad0s1 120031478784 512 i 0 o 32256 ty 165 2 BSD ad0s1f 118984074240 512 i 5 o 1047404544 ty 7 2 BSD ad0s1e 268435456 512 i 4 o 778969088 ty 7 2 BSD ad0s1d 268435456 512 i 3 o 510533632 ty 7 2 BSD ad0s1c 120031478784 512 i 2 o 0 ty 0 2 BSD ad0s1b 242098176 512 i 1 o 268435456 ty 1 2 BSD ad0s1a 268435456 512 i 0 o 0 ty 7 Cheers, Vik =2D-=20 PGP Key: 0xE09DC8D8/6799 4011 EBDE 6412 05A1 090C DBDF 5887 E09D C8D8 Signed/encrypted mail welcome! --nextPart1272516.REfpvur4kq Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBErro1299Yh+CdyNgRAmVoAKCDr6JZPdVpu+GBIc18KMvdidKhSwCfQvDE DDQol+uXXr6xaBPKddjNtv0= =Z/D5 -----END PGP SIGNATURE----- --nextPart1272516.REfpvur4kq--