From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 20 20:14:35 2013 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C5A7F31B for ; Wed, 20 Nov 2013 20:14:35 +0000 (UTC) Received: from mail.dusatko.org (static-84-242-66-51.net.upcbroadband.cz [84.242.66.51]) by mx1.freebsd.org (Postfix) with ESMTP id 867B62656 for ; Wed, 20 Nov 2013 20:14:34 +0000 (UTC) Received: from mail.dusatko.org (localhost [127.0.0.1]) by mail.dusatko.org (Postfix) with ESMTP id B3823209F; Wed, 20 Nov 2013 21:14:34 +0100 (CET) Received: from Relict (Relict.praha.dusatko [192.168.253.33]) by mail.dusatko.org (Postfix) with ESMTPA id 2133E209E; Wed, 20 Nov 2013 21:14:34 +0100 (CET) From: =?UTF-8?B?SmFuIER1xaHDoXRrbw==?= To: References: <029f01cee610$4567f870$d037e950$@org> In-Reply-To: Subject: RE: ZFS pool cheating Date: Wed, 20 Nov 2013 21:14:26 +0100 Message-ID: <007201cee62d$1c75c4c0$55614e40$@org> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac7mIhxlNoBg+0huQ2KmspoXVejeqgACr2KA Content-Language: cs X-Mailman-Approved-At: Wed, 20 Nov 2013 23:26:22 +0000 Cc: freebsd-hackers@FreeBSD.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list Reply-To: jan@dusatko.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Nov 2013 20:14:35 -0000 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. | +-------------------------------+------------------------------------+