Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jan 2011 12:44:58 +0300
From:      Lev Serebryakov <lev@serebryakov.spb.ru>
To:        "Andrey V. Elsukov" <bu7cher@yandex.ru>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: gmirror on slices & glabel mess
Message-ID:  <1571548567.20110114124458@serebryakov.spb.ru>
In-Reply-To: <4D2FED20.1070001@yandex.ru>
References:  <716385860.20110113224931@serebryakov.spb.ru> <4D2F5AEA.1040207@yandex.ru> <338344533.20110113232811@serebryakov.spb.ru> <4D2FED20.1070001@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello, Andrey.
You wrote 14 =D1=CE=D7=C1=D2=D1 2011 =C7., 9:28:48:

>>> Also can you describe what you expect to see (how it should work?).
>>   Every parition on its own mirror, all FSes are seen and mountable
>>   via /dev/ufs/*
>>   Mirror components are ad*s1* and not /dev/ufs/* or /dev/ufsid/*, as
>>   it after reboot for LAST partition. All FSes available and mountable
>>   as /dev/ufs/LABEL. Now /dev/ufs/home id consumed as mirror component
>>   (!) and not-usable.
> I can only suggest do not do like that. (=F3=F3=FA=E2 :)
> In your configuration you mixes several types of labels,
> and you do not use hardcoded providers names. In your case when GMIRROR
> does tasting it can take one of three providers which his metadata for
> each mirror (e.g. partition, ufs/label, ufsid/id).
  Really, I wonder why geom_label pickup only LAST parition. Why it
doesn't create labels for OTHER filesystems when geom_mirror is not
loaded?! Problem is only with ONE partition, that is what surprises
me.

> So, I see several ways to get what you want:
> 1. Use gmirror for the whole disk
   And very long synchronization in case of crash, mirror-per-partition
allows not to synchronize readonly (/, /usr) partitions...
> 2. Use hardcoded providers names
  And have problems with AHCI/ATA switches (main/rescue systems)...

  Really, it looks like global GEOM problem -- that user must choose
between "hardcoded" providers and non-deterministic tasting. Maybe,
adding user-configurable "class ranks" is good idea. So, it will be
possible to tell system, that geom_part taste first, geom_mirror
second and all other after that in any order, for example. Or
vice-versa, in case when geom_mirror is used on whole disk.

--=20
// Black Lion AKA Lev Serebryakov <lev@serebryakov.spb.ru>




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