ZFS pool cheating

Bob Bishop rb at gid.co.uk
Wed Nov 20 19:48:24 UTC 2013


Hi,

On 20 Nov 2013, at 16:47, Jan Dušátko <jan at dusatko.org> wrote:

> Dear,
> Do you someone know method, how can be pool converted from concatenating to
> regular mirror? By mistake I replaced failed disk in pool using add not
> replace, which caused me to change pool configuration.
> I looking method allow me to have pool online during whole replacement
> procedure.

If you can connect two extra disks, you can make a concatenated mirror. If you can do that without a reboot you can do the whole procedure online.

With existing disks d1,d2 and new disks d3 at least as big as d1, d4 at least as big as d2:

zpool attach <pool> d1 d3
zpool attach <pool> d2 d4

Otherwise I think you are in for some downtime.

> Regards
> 
> Jan
> 
> 
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
> 

--
Bob Bishop
rb at gid.co.uk






More information about the freebsd-hackers mailing list