Date: Sat, 8 Jan 2022 21:52:43 -0500 From: Paul Procacci <pprocacci@gmail.com> To: Mel Pilgrim <list_freebsd@bluerosetech.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Can I add a raidz vdev as a mirror of existing vdevs Message-ID: <CAFbbPuhT6EdqdiuHiMQ%2BMHhTt-n6g3yr=RgJk2iZEG44rL=5iw@mail.gmail.com> In-Reply-To: <81940818-6aaf-1a11-dd71-86eb5c51cab5@bluerosetech.com> References: <81940818-6aaf-1a11-dd71-86eb5c51cab5@bluerosetech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000000605fb05d51d51b4 Content-Type: text/plain; charset="UTF-8" Found an answer to this on facebook of all places ....... https://www.facebook.com/notes/unix-in-egypt/converting-zfs-2-way-mirror-to-a-raidz-array-wihtout-losing-data/10151919826687996/ My initial reaction was going to be 'no'....but after reading this, it does seem it is possible. I've never done it personally, but with proper backups .... why not? Thanks, Paul Procacci On Sat, Jan 8, 2022 at 9:13 PM Mel Pilgrim <list_freebsd@bluerosetech.com> wrote: > I have a zpool with a "stripe of mirrors" structure: > > mech > mirror-0 > disk0 > disk1 > mirror-1 > disk2 > disk3 > ... > > I want to convert it from mirrors to raidz as part of an upgrade, with > the final form looking something like this: > > mech > raidz-0 > disk20 > disk21 > ... > > I'd like to be able to attach the new raidz vdev as a mirror to the > entire pool, have it silver, then detach the old vdevs. Is this at all > possible? I'd rather not create a whole new pool and copy everything > over because doing so would require downtime. > > -- __________________ :(){ :|:& };: --0000000000000605fb05d51d51b4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Found an answer to this on facebook of all places ...= ....<br><br><a href=3D"https://www.facebook.com/notes/unix-in-egypt/convert= ing-zfs-2-way-mirror-to-a-raidz-array-wihtout-losing-data/10151919826687996= /">https://www.facebook.com/notes/unix-in-egypt/converting-zfs-2-way-mirror= -to-a-raidz-array-wihtout-losing-data/10151919826687996/</a><br></div><div>= <br></div><div>My initial reaction was going to be 'no'....but afte= r reading this, it does seem it is possible.</div><div>I've never done = it personally, but with proper backups .... why not?<br><br></div><div>Than= ks,</div><div>Paul Procacci<br></div></div><br><div class=3D"gmail_quote"><= div dir=3D"ltr" class=3D"gmail_attr">On Sat, Jan 8, 2022 at 9:13 PM Mel Pil= grim <<a href=3D"mailto:list_freebsd@bluerosetech.com">list_freebsd@blue= rosetech.com</a>> wrote:<br></div><blockquote class=3D"gmail_quote" styl= e=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddin= g-left:1ex">I have a zpool with a "stripe of mirrors" structure:<= br> <br> mech<br> =C2=A0 =C2=A0mirror-0<br> =C2=A0 =C2=A0 =C2=A0disk0<br> =C2=A0 =C2=A0 =C2=A0disk1<br> =C2=A0 =C2=A0mirror-1<br> =C2=A0 =C2=A0 =C2=A0disk2<br> =C2=A0 =C2=A0 =C2=A0disk3<br> =C2=A0 =C2=A0...<br> <br> I want to convert it from mirrors to raidz as part of an upgrade, with <br> the final form looking something like this:<br> <br> mech<br> =C2=A0 =C2=A0raidz-0<br> =C2=A0 =C2=A0 =C2=A0disk20<br> =C2=A0 =C2=A0 =C2=A0disk21<br> =C2=A0 =C2=A0 =C2=A0...<br> <br> I'd like to be able to attach the new raidz vdev as a mirror to the <br= > entire pool, have it silver, then detach the old vdevs.=C2=A0 Is this at al= l <br> possible?=C2=A0 I'd rather not create a whole new pool and copy everyth= ing <br> over because doing so would require downtime.<br> <br> </blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr" class=3D"g= mail_signature">__________________<br><br>:(){ :|:& };:</div> --0000000000000605fb05d51d51b4--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFbbPuhT6EdqdiuHiMQ%2BMHhTt-n6g3yr=RgJk2iZEG44rL=5iw>