New g_part class

Joerg Pernfuss jp at bsdgroup.de
Thu Feb 8 07:52:07 UTC 2007


On Tue, 06 Feb 2007 10:35:24 +0000
"Poul-Henning Kamp" <phk at phk.freebsd.dk> wrote:

> 
> If the geom classes are implemented correctly, you should never
> need to set kern.geom.debugflags.

So in theory, the following should work?

- set up a server with 2 160g sata drives (standard example that i
  hope everyone can relate to)
- gmirror them
- set up one slice covering the whole gmirror
- create a disklabel for example with:
		a	2g	/
		b	4g	swap
		c	voodoo
		d	4g	/tmp
		e	16g	/var
		f	20g	/usr
		g	54g	/jails
  This leaves the h partition and around 56g free for "later usage"
  in case something comes up/happens or g needs to be grown.
- add the 'h' partition later on while the system is running

Because currently this does not work. I am not very fluent in C, but
wouldn't this require a flag to pass down to tell it, it is ok to
modify a bsdlabel from which partitions are mounted, because none
of the mounted ones have been changed? Is there such a mechanism in
place but unused? I haven't stumpled upon any, but I might have easily
missed it.

Regards,
	Joerg

-- 
| SPECIAL ADVERTISMENT |    NEW KEY AS OF 02/01/2007 - GET IT     |
+----------------------+------------------------------------------+
| /"\   ASCII ribbon   |  GnuPG Key ID | 6902 3fc0 64c3 a56e a8b4 |
| \ / campaign against |    0xab439348 | c8de d555 c2cd ab43 9348 |
|  X    HTML in email  |        .the next sentence is true.       |
| / \     and news     |     .the previous sentence was a lie.    |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20070208/46741425/signature.pgp


More information about the freebsd-geom mailing list