From owner-freebsd-geom@FreeBSD.ORG Fri Sep 15 08:49:24 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 460B516A40F for ; Fri, 15 Sep 2006 08:49:24 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 835B943D46 for ; Fri, 15 Sep 2006 08:49:23 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (ojuzmj@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k8F8nGwQ004732 for ; Fri, 15 Sep 2006 10:49:22 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k8F8nGBa004731; Fri, 15 Sep 2006 10:49:16 +0200 (CEST) (envelope-from olli) Date: Fri, 15 Sep 2006 10:49:16 +0200 (CEST) Message-Id: <200609150849.k8F8nGBa004731@lurza.secnetix.de> From: Oliver Fromme To: freebsd-geom@FreeBSD.ORG In-Reply-To: <20060914164225.36453.qmail@web30309.mail.mud.yahoo.com> X-Newsgroups: list.freebsd-geom User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Fri, 15 Sep 2006 10:49:22 +0200 (CEST) Cc: Subject: Re: gmirror size question 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, 15 Sep 2006 08:49:24 -0000 R. B. Riddick wrote: > # diskinfo /dev/md? > /dev/md0 512 33554432 65536 > /dev/md1 512 16777216 32768 > # gnop create -v -s 10485760 md0 > # gmirror label fook md0.nop md1 > # gmirror stop fook > # gnop destroy md0.nop > # gmirror forget fook > # gmirror insert fook md0 > # gmirror list > [...] > Providers: > 1. Name: mirror/fook > Mediasize: 10485248 (10M) > [...] > Consumers: > 1. Name: md0 > Mediasize: 33554432 (32M) > [...] > 2. Name: md1 > Mediasize: 16777216 (16M) Ah, that's cool. Thanks for the suggestion, I didn't think of using gnop for that purpose. I was rather looking for a "size" option to gmirror(8), but that doesn't exist. I've just successfully reproduced your "plan" with several md devices of various sizes, for testing purposes. Now going to do it with the "real" disks. :-) Thanks! Best regards Oliver PS: I think that hint should be mentioned in the Handbook section about gmirror. It could prevent major foot-shoting. Comments? -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "It combines all the worst aspects of C and Lisp: a billion different sublanguages in one monolithic executable. It combines the power of C with the readability of PostScript." -- Jamie Zawinski, when asked: "What's wrong with perl?"