Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Sep 2007 14:29:14 +0200
From:      Bernd Walter <ticso@cicely12.cicely.de>
To:        Gergely CZUCZY <phoemix@harmless.hu>
Cc:        Yar Tikhiy <yar@comp.chem.msu.su>, Poul-Henning Kamp <phk@phk.freebsd.dk>, Dmitry Morozovsky <marck@rinet.ru>, fs@freebsd.org
Subject:   Re: New option for newfs(3) to make life with GEOM easier
Message-ID:  <20070901122913.GE54895@cicely12.cicely.de>
In-Reply-To: <20070901093035.GA18069@harmless.hu>
References:  <20070901074803.GM85633@comp.chem.msu.su> <3842.1188634387@critter.freebsd.dk> <20070901092310.GO85633@comp.chem.msu.su> <20070901093035.GA18069@harmless.hu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 01, 2007 at 11:30:35AM +0200, Gergely CZUCZY wrote:
> On Sat, Sep 01, 2007 at 01:23:10PM +0400, Yar Tikhiy wrote:
> > On Sat, Sep 01, 2007 at 08:13:07AM +0000, Poul-Henning Kamp wrote:
> > > In message <20070901074803.GM85633@comp.chem.msu.su>, Yar Tikhiy writes:
> > > >Hi all,
> > > >
> > > >With some geom(4) modules saving their metadata in the last sectors
> > > >of block devices such as disks and partitions, 
> > > 
> > > 1.  If those geom modules do not reduce their providers to prevent
> > > this metadata from being overwritten, they are buggy.
> > 
> > In some scenarios, it can be desirable to newfs first, geom later.
> True, done it many time myself. Since sysinstall doesn't allow you
> to install onto a gmirror array, many install via sysinstall, and gmirror
> the system afterwards, which is exactly this situation.

Sysinstall easily allows you to not partition the last few sectors.
The newfs option is only usefull if you are mirroring at fs level,
which is note quite common for system disks, where you really need 
partitions.

> Though for this, geom class manuals should mention how much
> space do they need for the metadata at the end. Or to simplify
> thing an option for like "reserve some space for (gmirror|gstripe|gfoobar)"
> should be introduced. Or specifing the module and newfs could "ask"
> the geom class for its metadata size that should be reserved.
> Just thinking, sorry if it was too wild...

And there is currently no way to find out if your calculations were
wrong, other than try and fail.
I guess it would be good if a mount tries to read the last sector and
gives a warning if the read fails.
I expect many systems were build by adding gmirror later without taking
the last sector into account.

-- 
B.Walter                http://www.bwct.de      http://www.fizon.de
bernd@bwct.de           info@bwct.de            support@fizon.de



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