Date: Wed, 20 Nov 2013 21:14:26 +0100 From: =?UTF-8?B?SmFuIER1xaHDoXRrbw==?= <jan@dusatko.org> To: <Trond.Endrestol@fagskolen.gjovik.no> Cc: freebsd-hackers@FreeBSD.org Subject: RE: ZFS pool cheating Message-ID: <007201cee62d$1c75c4c0$55614e40$@org> In-Reply-To: <alpine.BSF.2.00.1311201944490.26875@mail.fig.ol.no> References: <029f01cee610$4567f870$d037e950$@org> <alpine.BSF.2.00.1311201944490.26875@mail.fig.ol.no>
next in thread | previous in thread | raw e-mail | index | archive | help
Did you try to send snapshot over network ?
I prepared backup using tar, currently plan to do ZFS snapshot and if =
there will be possibility to send it over SSH, I can minimize downtime =
and in the same time check / verify functionality of new pool with the =
same name
Regards
Jan
-----Original Message-----
From: Trond.Endrestol@fagskolen.gjovik.no =
[mailto:Trond.Endrestol@fagskolen.gjovik.no]=20
Sent: 20. listopadu 2013 19:56
To: Jan Du=C5=A1=C3=A1tko
Cc: freebsd-hackers@FreeBSD.org
Subject: Re: ZFS pool cheating
On Wed, 20 Nov 2013 17:47+0100, Jan Du?=C3=A1tko wrote:
> Dear,
> Do you someone know method, how can be pool converted from=20
> concatenating to regular mirror? By mistake I replaced failed disk in=20
> 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.
>=20
> Regards
>=20
> Jan
I'm afraid your only option is something along these lines:
1. Make a recursive snapshot of the entire pool.
2. Send a recursive ZFS stream of the recursive snapshots to another =
pool, or disk.
Beware of the danger of data loss by having only a single set of =
snapshots available as you proceed.
3. Destroy the old pool.
4. Recreate the original pool to a mirrored configuration.
5. Transfer the recursive ZFS stream back to the new pool using the zfs =
receive command.
6. Remove the recursive snapshots, if warranted.
If your able to setup a fresh pair of disks in your server, you might be =
able to transfer the snapshots to a mirrored pool assigned a temporary =
name. Then export both the current pool and the temporary pool. Import =
the temporary pool and rename the pool to the correct name as you import =
the temp pool.
I guess/hope someone more knowledgeable on ZFS will chime in and correct =
me.
--=20
+-------------------------------+------------------------------------+
| Vennlig hilsen, | Best regards, |
| Trond Endrest=C3=B8l, | Trond Endrest=C3=B8l, =
|
| IT-ansvarlig, | System administrator, |
| Fagskolen Innlandet, | Gj=C3=B8vik Technical College, Norway, =
|
| tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, |
| sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. |
+-------------------------------+------------------------------------+
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?007201cee62d$1c75c4c0$55614e40$>
