From owner-freebsd-stable@freebsd.org Tue Oct 18 06:20:45 2016 Return-Path: Delivered-To: freebsd-stable@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 9E309C16DFF for ; Tue, 18 Oct 2016 06:20:45 +0000 (UTC) (envelope-from kiri@kx.openedu.org) Received: from kx.openedu.org (flets-sg1027.kamome.or.jp [202.216.24.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 454CD194 for ; Tue, 18 Oct 2016 06:20:43 +0000 (UTC) (envelope-from kiri@kx.openedu.org) Received: from kx.openedu.org (kx.openedu.org [103.15.187.19]) by kx.openedu.org (8.14.5/8.14.5) with ESMTP id u9I61ERr072100; Tue, 18 Oct 2016 15:01:15 +0900 (JST) (envelope-from kiri@kx.openedu.org) Message-Id: <201610180601.u9I61ERr072100@kx.openedu.org> Date: Tue, 18 Oct 2016 15:01:14 +0900 From: KIRIYAMA Kazuhiko To: Marko =?ISO-8859-2?Q?Cupa=E6?= Cc: Oliver Peter , freebsd-stable@freebsd.org Subject: Re: moving ezjail-based jails from 10.3 host to 11.0 host In-Reply-To: <20161017174325.49386b19@efreet.mimar.rs> References: <20161017153708.411492e5@efreet.mimar.rs> <20161017135507.GA10396@mail.opdns.de> <20161017174325.49386b19@efreet.mimar.rs> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.6 MULE XEmacs/21.4 (patch 22) (Instant Classic) (amd64--freebsd) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2016 06:20:45 -0000 At Mon, 17 Oct 2016 17:43:25 +0200, Marko Cupa=E6 wrote: >=20 > On Mon, 17 Oct 2016 15:55:07 +0200 > Oliver Peter wrote: >=20 > > On Mon, Oct 17, 2016 at 03:37:08PM +0200, Marko Cupa=E6 wrote: > > > I have 10.3 host which runs a dozen or so ezjail-based jails. I have > > > installed another 11.0 host, and I'd like to move jails to it. =20 > >=20 > > I would switch them to iocage+zfs, ezjail is sooo 90s. :) > > Have a look at the documentation: > > http://iocage.readthedocs.io/en/latest/basic-use.html > >=20 > > All jail settings are stored within ZFS properties so an upcoming > > migration would only need a zfs send | zfs receive. > >=20 > > > Can I just archive jails on 10.3, scp them to 11.0, and re-create > > > them there by restoring from archive (-a switch)? =20 > >=20 > > Further I would recommend to use rsync -av instead of scp. >=20 > Oliver, >=20 > I do appreciate you took the time to respond to my question. However, > when I asked how to move my ezjail-based jails, I meant exactly that. > I did not ask which is the best jail management system (for my use case > I'm completely fine with ezjail), or about the good and bad things > about ZFS (I have hardware RAID controller which can't do JBOD on this > server), or advantages of rsync over scp (doesn't make much difference > for one-time transfer of single .tar.gz file over LAN). >=20 > Now, to give answer to my own question: everything works fine, after - > of course - reinstalling all the packages with `pkg-static upgrade -f'. Also I've been same worry about this. But ezjail also worked in 12.0-CURRENT and almost everything stuffs used in that except below: (1) `jail_JID_devfs_ruleset' must be specified by number but name like export jail_desktop_devfs_ruleset=3D11 (2) Additional parameters shoule be specified by `jail_JID_parameters' with semicolon separated list like export jail_desktop_parameters=3D"allow.kmem; allow.sysvipc;" (3) If you through ICMP packets, set jail_JID_socket_unixiproute_only=3D"NO" But now basically FreeBSD does not supprt variable based specification like ezjail but jail.conf configuration. So jail spit warning whenever start/restart: root@kx:~ # service ezjail restart mail Stopping jails: mail.tfc. Starting jails: mail.tfc. /etc/rc.d/jail: WARNING: Per-jail configuration via jail_* variables is ob= solete. Please consider migrating to /etc/jail.conf. root@kx:~ #=20 >=20 > Regards, > --=20 > Before enlightenment - chop wood, draw water. > After enlightenment - chop wood, draw water. >=20 > Marko Cupa=E6 > https://www.mimar.rs/ > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" --- KIRIYAMA Kazuhiko