Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jul 2009 09:43:16 +0200
From:      Harald Schmalzbauer <h.schmalzbauer@omnilan.de>
To:        Ivan Voras <ivoras@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   gmirror provider name limit [Was: Re: geom_label: gpt/labelname for gmirror provider?]
Message-ID:  <4A5EDA14.8000703@omnilan.de>
In-Reply-To: <4A5CC981.8010000@omnilan.de>
References:  <4A5CB2D1.5070106@omnilan.de> <h3iegi$kpu$1@ger.gmane.org> <4A5CC981.8010000@omnilan.de>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Harald Schmalzbauer schrieb am 14.07.2009 20:08 (localtime):
> Ivan Voras schrieb am 14.07.2009 19:15 (localtime):
...
>> If it's something else, please explain with more details.
> 
> 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
> 
> Now I want to use these as providers for geom_mirror:
> `gmirror label -b load MIRROR1 gpt/part1disk2 gpt/part1disk2`
> 
> gmirror prints that metadata was successfully written (to provider 
> 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 
characters. `gmirror` doesn't complain if you specify a provider name 
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 
restriction applies to graid3 etc. also)
Perhaps it's desirable to loosen that restriction. I'm fine with 15 
characters, but like mentioned gptid for example may be for some people 
a desirable provider name.

Thanks,

-Harry

P.S.: My coding skills don't last for offering a diff...


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (FreeBSD)

iEYEARECAAYFAkpe2hsACgkQLDqVQ9VXb8go3wCePWJU1fFJTczdfX3MhI+xB2Yf
CWwAniUuJng1D++R1z/VNsutAjVSV4mD
=iYQT
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A5EDA14.8000703>