From owner-freebsd-questions@freebsd.org Fri Jun 30 16:07:08 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EF98ED94E4C for ; Fri, 30 Jun 2017 16:07:08 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C0C7A736DB for ; Fri, 30 Jun 2017 16:07:08 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id D39AB621DA for ; Fri, 30 Jun 2017 12:01:02 -0400 (EDT) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id saoygpSXRYWD for ; Fri, 30 Jun 2017 12:01:01 -0400 (EDT) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id 2E9F961EBE for ; Fri, 30 Jun 2017 12:01:01 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1498838461; bh=SvYBQ8UTYLUFZ/wTC5dLPVHbLIcPnE3VUfRT/6dA8E4=; h=Date:Subject:From:To:Reply-To; b=LlGeWxeweraq84h/THBoZQaLahLYra9ezBzMb19LQodbMV9nMNqqmhsZhpWt6pqWJ 8Uky36Ox/E+MsilTLa5SOEquwieevWWh8teL1z4GXoA0eUVPlzgZjABXAwRVbpSy+N /GSnps4VsYlhUnIBjkE9Jezwk+Fz84/E8dsdykRN2G/EpyM9uwyXZ8JHhePi8bbNra EUqlxAHTJpVtasuTzA/lX6h8ONjmX9BfMWNRcyosSv3NJ3GDnoniA1XmH7xza8RMR6 K6cpwUcdW50nwBaPK79pdNaWPmM2GIW/b/4iablB9md4HDgiAOgMS8m1VGPC+ZX802 bM95bqZaHLaLg== Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Fri, 30 Jun 2017 12:01:01 -0400 Message-ID: <772bdab1906a8a3deea24fb6b246e40e.squirrel@webmail.harte-lyne.ca> Date: Fri, 30 Jun 2017 12:01:01 -0400 Subject: A readers digest version of transferring a jail from one host to another. From: "James B. Byrne" To: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-5.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2017 16:07:09 -0000 I have server 'A' at a remote site which has a jail 'J1' that happens to provide an MX service. I have server 'B' on my desk that I need to configure as duplicate of 'B' including 'J1'. Both hosts are running FreeBSD-11. We are using EZJail to administer jails on both hosts. Both hosts 'A' and 'B' and the jail 'J1' use zfs. Zfs snapshots are regularly taken on 'A' (and 'B' for that matter). zroot/ezjail/hllmx18@2017-06-30_02.00.00--6w 632K - 2.97G - zroot/ezjail/hllmx18@2017-06-30_02.10.00--14d 660K - 2.97G - zroot/ezjail/hllmx18@2017-06-30_03.10.00--14d 732K - 2.97G - zroot/ezjail/hllmx18@2017-06-30_04.10.00--14d 996K - 2.97G - zroot/ezjail/hllmx18@2017-06-30_05.10.00--14d 856K - 2.97G - zroot/ezjail/hllmx18@2017-06-30_06.10.00--14d 892K - 2.97G - zroot/ezjail/hllmx18@2017-06-30_07.10.00--14d 988K - 2.97G - zroot/ezjail/hllmx18@2017-06-30_08.10.00--14d 1000K - 2.97G - zroot/ezjail/hllmx18@2017-06-30_09.10.00--14d 1.04M - 2.97G - zroot/ezjail/hllmx18@2017-06-30_10.10.00--14d 728K - 2.97G - zroot/ezjail/hllmx18@2017-06-30_11.10.00--14d 732K - 2.97G - What is the simplest way to move a copy of 'J1' on 'A' to a new jail on 'B'? I know that it is possible to move zfs snapshots around but I am rather pressed for time. If someone can provide a reasonably brief precis of the steps required to move a copy of J1 from A and restore that as a functioning new J2 on B I then would be much appreciative. -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3