New g_part class

Pawel Jakub Dawidek pjd at FreeBSD.org
Wed Feb 7 21:51:07 UTC 2007


On Wed, Feb 07, 2007 at 10:16:38PM +0100, Ivan Voras wrote:
> Poul-Henning Kamp wrote:
> 
> > You mean writing to sectors which mounted filesystems belive they
> > have exclusive use of ?
> > 
> > No, GEOM doesn't support or allow that.
> 
> Ok, the need for sysctl kern.geom.debugflags=16 arises because the live
> system to be used as master has mounted partitions, and those partitions
> span the whole disk, thus conflict with gmirror which wants to use the
> last sector. Since using the last sector for metadata is The Official
> Way, how about making such conflicts easy to avoid, like for example
> building additional logic in g_part to create partitions one sector
> smaller than the container?

I wouldn't call it an official way... I can easly imagine a GEOM class
that needs much more room than one sector for its metadata.
Creating gmirror with kern.geom.debugflags=16 on a running partitions is
done by the users on their own risk. I don't advice this method by
myself - even if very rarely can be unsafe, it is just not elegant:)

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20070207/e8f89549/attachment.pgp


More information about the freebsd-geom mailing list