Date: Thu, 14 Nov 2013 18:06:25 +0400 From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: freebsd-geom@FreeBSD.org Cc: Pawel Jakub Dawidek <pjd@FreeBSD.org>, trasz@FreeBSD.org Subject: [RFC/CFT] Resize support for geom_mirror Message-ID: <5284D8E1.6000104@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQEcBAEBAgAGBQJShNjlAAoJEAHF6gQQyKF6EKcH/0UFJOP7b2M8DvoGXso7v3fk cZrXp3xo2yYCxeougVdXunRz1LYFbX5kJsP4ZIp/pH83BOhm72FkrCjoqFxhM7XX 0RfVgJYUuownLMFiShFSBZnkyCZAiuE14XSr7utdL8nupOz9vu2pxg+eB3kOUTi4 JkI9j+gtdXWDDVKasFD57Ax+HsJxM1w/MlxeysIW+7gaBTWppu4PIHvWLngJPh6z tJLsMYQoE4Ke+MFUrrqvrB3byDyAi5bY0H7G8Uh1ZBS9bYJAoYUANzH0mAw05kPD 6LLOJXibDBzN3Z2kV+yswhwiL566gaUZzDirSU4UecF7y51zSuyjxew4iNV0vHQ= =xhLr -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5284D8E1.6000104>
