Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Feb 2006 18:50:29 -0600
From:      "illoai@gmail.com" <illoai@gmail.com>
To:        "Eivind Olsen" <eivind@aminor.no>, freebsd-stable@freebsd.org
Subject:   Re: gmirror is confusing me, will I be bitten by the last-sector-use?
Message-ID:  <d7195cff0602211650x261ff283w397ae24223696f8c@mail.gmail.com>
In-Reply-To: <20060221115027.GB60211@ip.net.ua>
References:  <43FAE446.4090807@aminor.no> <20060221115027.GB60211@ip.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
> > Now, how can I check whether my current partitions will cause trouble
> > with the metadata-sector or not? I've done some searching on the net,
> > but I'm still a bit confused. If I understand correctly, the consumers
> > ad0/ad2 span 488397168 sectors (mediasize/sectorsize), and the
> > mirror/gm0 spans 488397167 sectors.
> >
> In short: kernel (g_mirror) won't let you write to the last sector of its
> media.
>

So long as your partition(s) exist(s) within the mirror device, you can't
problem the metadata.  If you tried writing to the last sectors of /dev/ad0
or /dev/ad2, you would damage or destroy the metadata.  So, don't do that.

I am curious about this case, does FreeBSD periodically check for the
existance of the metadata, or (like some things, the kernel for instance)
does it, once read and not rewritten, exist in memory, thus being able
to be written over on disk, not to be noticed until reboot (or modification=
,
if such would be your wont)?

--
--



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