[RFC/CFT] Resize support for geom_mirror
Andrey V. Elsukov
ae at FreeBSD.org
Thu Nov 14 14:11:05 UTC 2013
Hi All,
I prepared the patch, that adds new verb "resize" to the gmirror(8) and
such functionality to the geom_mirror(4).
The main idea is to be able expand the mirror size after replacing all
its components. But reducing the size also is possible.
Also I added g_resize method, and now it automatically writes gmirror's
metadata in the new last sector, when the parent provider changes the size.
Several notes about implementation:
* `gmirror resize gm0` without exactly specified size will automatically
calculate the maximum possible size for this mirror.
* Reduce the size of the mirror when it is in use is possible only with
debugflags=16.
Pawel, please look at the case, when the size of the mirror reduced when
synchronization is in progress. I guess it is enough to change the
condition in g_mirror_sync_request?
The patch is here:
http://people.freebsd.org/~ae/g_mirror_resize.diff
--
WBR, Andrey V. Elsukov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20131114/14ed998b/attachment.sig>
More information about the freebsd-geom
mailing list