From owner-freebsd-current@FreeBSD.ORG Thu Jul 16 07:43:26 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53368106564A; Thu, 16 Jul 2009 07:43:26 +0000 (UTC) (envelope-from h.schmalzbauer@omnilan.de) Received: from host.omnilan.net (host.omnilan.net [62.245.232.135]) by mx1.freebsd.org (Postfix) with ESMTP id B2D1D8FC1B; Thu, 16 Jul 2009 07:43:25 +0000 (UTC) (envelope-from h.schmalzbauer@omnilan.de) Received: from titan.flintsbach.schmalzbauer.de (titan.flintsbach.schmalzbauer.de [172.21.1.150]) (authenticated bits=0) by host.omnilan.net (8.13.8/8.13.8) with ESMTP id n6G7hN6x099948 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 16 Jul 2009 09:43:24 +0200 (CEST) (envelope-from h.schmalzbauer@omnilan.de) Message-ID: <4A5EDA14.8000703@omnilan.de> Date: Thu, 16 Jul 2009 09:43:16 +0200 From: Harald Schmalzbauer Organization: OmniLAN User-Agent: Thunderbird 2.0.0.21 (X11/20090425) MIME-Version: 1.0 To: Ivan Voras References: <4A5CB2D1.5070106@omnilan.de> <4A5CC981.8010000@omnilan.de> In-Reply-To: <4A5CC981.8010000@omnilan.de> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigDB84BAA1E8943302E0990A95" Cc: freebsd-current@freebsd.org Subject: gmirror provider name limit [Was: Re: geom_label: gpt/labelname for gmirror provider?] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 16 Jul 2009 07:43:26 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigDB84BAA1E8943302E0990A95 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Harald Schmalzbauer schrieb am 14.07.2009 20:08 (localtime): > Ivan Voras schrieb am 14.07.2009 19:15 (localtime): =2E.. >> If it's something else, please explain with more details. >=20 > Sorry for my bad explanation! > I'm using > `gpart modify -l part1disk1 -i 2 ad4` > and > `gpart modify -l part1disk2 -i 2 ad6` > so I have > /dev/gpt/part1disk1 > and > /dev/gpt/part1disk2 >=20 > Now I want to use these as providers for geom_mirror: > `gmirror label -b load MIRROR1 gpt/part1disk2 gpt/part1disk2` >=20 > gmirror prints that metadata was successfully written (to provider=20 > gpt/part1diskX) but in fact geom_mirror doesn't jump in and detect the = > mirror. For the records: I found that the name of the provider for gmirror mustn't exceed 15=20 characters. `gmirror` doesn't complain if you specify a provider name=20 longer that 15 characters, but the mirror won't be detected. So for example it's impossible to use gptid as provider. At least this should be documented in the man page(es, I guess this=20 restriction applies to graid3 etc. also) Perhaps it's desirable to loosen that restriction. I'm fine with 15=20 characters, but like mentioned gptid for example may be for some people=20 a desirable provider name. Thanks, -Harry P.S.: My coding skills don't last for offering a diff... --------------enigDB84BAA1E8943302E0990A95 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkpe2hsACgkQLDqVQ9VXb8go3wCePWJU1fFJTczdfX3MhI+xB2Yf CWwAniUuJng1D++R1z/VNsutAjVSV4mD =iYQT -----END PGP SIGNATURE----- --------------enigDB84BAA1E8943302E0990A95--