From owner-freebsd-geom@FreeBSD.ORG Fri Jul 7 19:53:16 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 D9AD716A4DD for ; Fri, 7 Jul 2006 19:53:16 +0000 (UTC) (envelope-from sullrich@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BED043D49 for ; Fri, 7 Jul 2006 19:53:15 +0000 (GMT) (envelope-from sullrich@gmail.com) Received: by ug-out-1314.google.com with SMTP id m3so883390uge for ; Fri, 07 Jul 2006 12:53:15 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EzREJ1fYKqsfzie/oeVV6gsR3FL5qsUv/I5+zJvVdXbcdkbR1CZkJAOBqh90IRic/+04FCStN+bBTV/RF8UTnaf/uIxK6BylagQRrASsJPYUyyDnrwM/l3P+giJaEiNXY2WmKlEBI1AdJldVQBNQt/fQ6h2mcmvYWuVzN2Pukrg= Received: by 10.67.24.13 with SMTP id b13mr2406880ugj; Fri, 07 Jul 2006 12:48:21 -0700 (PDT) Received: by 10.67.105.8 with HTTP; Fri, 7 Jul 2006 12:48:20 -0700 (PDT) Message-ID: Date: Fri, 7 Jul 2006 15:48:20 -0400 From: "Scott Ullrich" To: "Viktor Vasilev" In-Reply-To: <200607072147.01099.viktor.vasilev@stud.tu-darmstadt.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200607072147.01099.viktor.vasilev@stud.tu-darmstadt.de> Cc: freebsd-geom@freebsd.org 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:53:16 -0000 On 7/7/06, Viktor Vasilev wrote: > 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 > 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 That's exactly what the doctor ordered. Thanks, I'll give this a wack! Scott