From owner-freebsd-jail@FreeBSD.ORG Sun Jan 2 15:02:54 2011 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4166F1065701 for ; Sun, 2 Jan 2011 15:02:54 +0000 (UTC) (envelope-from dsc.fbsd.other@gmail.com) Received: from mail-ey0-f196.google.com (mail-ey0-f196.google.com [209.85.215.196]) by mx1.freebsd.org (Postfix) with ESMTP id 7332A8FC19 for ; Sun, 2 Jan 2011 15:02:53 +0000 (UTC) Received: by eyd10 with SMTP id 10so1950285eyd.7 for ; Sun, 02 Jan 2011 07:02:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:mime-version:content-type:x-mailer:thread-index :content-language; bh=ym4Gzt0Xb7FSdvFun/eXSF5dpf/BnSQ7somtt6jdgMU=; b=HinQo9o7t4r307TjiRJn9eQx/n0GQIeba5ti3tcRrGAQDhcsOPf2VvvPD2dGP6uxwT uK+ff5oxrEauWEISIezNMgw4meY7sswQ7k4DMl/hEIRsynTxIV7kjhoUrJByZVO1PFvP z/OAAmhg54aQVzOxdjNe8VdpeDZuYfE5AGDVs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type:x-mailer :thread-index:content-language; b=MyA9eMw2aCFL54dJRrtTujBpnlTqEFOX4xQnPuoNE2O0i6xaDvEwoEisJPQmddUDlr xDyiGPmlaUNA7//BkcUiPTdZ1f5iYHRqHzJSjxEw/8rjaUBysK64KJ8ToiObj00JDYiW u7u4NlCmh/M9D+pttKlxzjnbLNKdjdw4nF6VE= Received: by 10.213.17.72 with SMTP id r8mr13284945eba.63.1293979545719; Sun, 02 Jan 2011 06:45:45 -0800 (PST) Received: from fscld ([94.176.153.23]) by mx.google.com with ESMTPS id t50sm13974685eeh.18.2011.01.02.06.45.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 02 Jan 2011 06:45:44 -0800 (PST) From: "dsc fbsd.other" To: Date: Sun, 2 Jan 2011 16:45:25 +0200 Message-ID: <002e01cbaa8b$b3b264a0$1b172de0$@gmail.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: Acuqi0J8AmLQN07oR9aMFP4yeKYZBg== Content-Language: en-us Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: jailing MySQL error X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jan 2011 15:02:54 -0000 Hi. I'm using ezjail standard config file, with a modified fstab file (mount_nullfs ports to jail). Cat /usr/local/etc/ezjail/j009_mysql2 export jail_j009_mysql2_hostname="j009_mysql2" export jail_j009_mysql2_ip="xx.xx.xx.xx" export jail_j009_mysql2_rootdir="/ezjail/j009_mysql2" export jail_j009_mysql2_exec_start="/bin/sh /etc/rc" export jail_j009_mysql2_exec_stop="" export jail_j009_mysql2_mount_enable="YES" export jail_j009_mysql2_devfs_enable="YES" export jail_j009_mysql2_devfs_ruleset="devfsrules_jail" export jail_j009_mysql2_procfs_enable="YES" export jail_j009_mysql2_fdescfs_enable="YES" export jail_j009_mysql2_image="" export jail_j009_mysql2_imagetype="" export jail_j009_mysql2_attachparams="" export jail_j009_mysql2_attachblocking="" export jail_j009_mysql2_forceblocking="" export jail_j009_mysql2_zfs_datasets="" export jail_j009_mysql2_cpuset="" export jail_j009_mysql2_fib="" My steps: 1. Ezjail-admin onestart j009_mysql2 2. Ezjail-admin console j009_mysql2 3. Cd /usr/ports/database/mysql55-server && make install clean 4. cp /usr/local/share/mysql/my-innodb-heavy-4G.cnf /usr/local/etc/my.cnf (modified socket file path to /var/db/mysql/mysql.sock, in both client and server lines) 5. chown -R mysql:mysql ... for ... /tmp /var/tmp /var/db/mysql 6. mysql_enable="YES" in jail rc.conf 7. /usr/local/etc/rc.d/mysql-server start 8. ...and NOTHING ... mysql-server scripts starts /usr/local/bin/mysql_install_db (creates mysql and test folders in /var/db/mysql ... but nothing else ... it's just running) I had to kill everything. After reading lots of webpages and trying all kind of stuff (including http://devel.reinikainen.net/15, but without ssl stuff), I decided to install MySQL on the host. I've made the same steps (3-5 and 7 with "onestart" instead "start") and used the same my-innodb-heavy-4G.cnf file Everything went well. Mysqld started, creating socket file and pid file; mysql_install_db had no errors. The log file says: 110102 18:07:06 mysqld_safe Starting mysqld daemon with databases from /var/db/mysql 110102 18:07:06 [Note] Plugin 'FEDERATED' is disabled. InnoDB: The InnoDB memory heap is disabled InnoDB: Mutexes and rw_locks use GCC atomic builtins InnoDB: Compressed tables use zlib 1.2.5 110102 18:07:06 InnoDB: Initializing buffer pool, size = 2.0G 110102 18:07:07 InnoDB: Completed initialization of buffer pool 110102 18:07:07 InnoDB: highest supported file format is Barracuda. 110102 18:07:07 InnoDB: 1.1.3 started; log sequence number 1595675 110102 18:07:07 [Note] Event Scheduler: Loaded 0 events 110102 18:07:07 [Note] /usr/local/libexec/mysqld: ready for connections. Version: '5.5.7-rc-log' socket: '/var/db/mysql/mysql.sock' port: 3306 FreeBSD port: mysql-server-5.5.7 I didn't give up ... so I did: 9. Rm -rf /var/db/mysql/* (in jail) 10. Cp /var/db/mysql/mysql/* /ezjail/j009_mysql2/var/db/mysql/mysql (from host to jail) 11. Cp /var/db/mysql/performance_schema/* /ezjail/j009_mysql2/var/db/mysql/performance_schema (from host to jail) 12. Starting and entering the jail again 13. usr/local/etc/rc.d/mysql-server start was started upon entering the jail (did not create pid and socket file) but generated this log: 110102 17:03:05 [Note] Plugin 'FEDERATED' is disabled. /usr/local/libexec/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13) 110102 17:03:05 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it. InnoDB: The InnoDB memory heap is disabled InnoDB: Mutexes and rw_locks use GCC atomic builtins InnoDB: Compressed tables use zlib 1.2.5 110102 17:03:05 InnoDB: Initializing buffer pool, size = 2.0G 110102 17:03:06 InnoDB: Completed initialization of buffer pool InnoDB: The first specified data file /innodb/ibdata1 did not exist: InnoDB: a new database to be created! 110102 17:03:06 InnoDB: Setting file /innodb/ibdata1 size to 10 MB InnoDB: Database physically writes the file full: wait... 110102 17:03:06 InnoDB: Log file ./ib_logfile0 did not exist: new to be created InnoDB: Setting log file ./ib_logfile0 size to 256 MB InnoDB: Database physically writes the file full: wait... InnoDB: Progress in MB: 100 200 110102 17:03:08 InnoDB: Log file ./ib_logfile1 did not exist: new to be created InnoDB: Setting log file ./ib_logfile1 size to 256 MB InnoDB: Database physically writes the file full: wait... InnoDB: Progress in MB: 100 200 110102 17:03:10 InnoDB: Log file ./ib_logfile2 did not exist: new to be created InnoDB: Setting log file ./ib_logfile2 size to 256 MB InnoDB: Database physically writes the file full: wait... InnoDB: Progress in MB: 100 200 14. usr/local/etc/rc.d/mysql-server stop ... doesn't work because of missing pid file (the same with "mysql_upgrade" suggested by the log file) 15. './mysql/plugin.frm' file exists 16. kill everything and run again usr/local/etc/rc.d/mysql-server start with this result: 110102 17:07:40 [Note] Plugin 'FEDERATED' is disabled. /usr/local/libexec/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13) 110102 17:07:40 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it. InnoDB: The InnoDB memory heap is disabled InnoDB: Mutexes and rw_locks use GCC atomic builtins InnoDB: Compressed tables use zlib 1.2.5 110102 17:07:40 InnoDB: Initializing buffer pool, size = 2.0G 110102 17:07:40 InnoDB: Completed initialization of buffer pool 110102 17:07:40 InnoDB: highest supported file format is Barracuda. InnoDB: No valid checkpoint found. InnoDB: If this error appears when you are creating an InnoDB database, InnoDB: the problem may be that during an earlier attempt you managed InnoDB: to create the InnoDB data files, but log file creation failed. InnoDB: If that is the case, please refer to InnoDB: http://dev.mysql.com/doc/refman/5.1/en/error-creating-innodb.html 110102 17:07:40 [ERROR] Plugin 'InnoDB' init function returned error. 110102 17:07:40 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 17. But i have a pid and socket file 18. "mysql_upgrade" doesn't work (hangs up) 19. Also "mysql -u root" doesn't work (hangs up) I've read http://dev.mysql.com/doc/refman/5.1/en/error-creating-innodb.html and other related webpages. I think is something related with permissions in jail, but I can't figure it out. So, my final hope is this email. Anyone has any idea? Thanks in advance! Lulu PS: I'm using: - FreeBSD Current (amd64) - Geli encryption - ZFS v28 with world and kernel build with src r215329 (patched with head-v28-v2.patch from Martin Matuska)(the patch doesn't work on the latest src) - Ports updated one week ago - Ezjail installed one week ago (buildworld with src updated one week ago) From owner-freebsd-jail@FreeBSD.ORG Sun Jan 2 19:48:40 2011 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 780001065679 for ; Sun, 2 Jan 2011 19:48:40 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 390538FC14 for ; Sun, 2 Jan 2011 19:48:39 +0000 (UTC) Received: from elsa.codelab.cz (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id AD53019E030; Sun, 2 Jan 2011 20:31:51 +0100 (CET) Received: from [192.168.1.2] (ip-86-49-61-235.net.upcbroadband.cz [86.49.61.235]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 1274419E02E; Sun, 2 Jan 2011 20:31:49 +0100 (CET) Message-ID: <4D20D2A4.8060503@quip.cz> Date: Sun, 02 Jan 2011 20:31:48 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.16) Gecko/20101123 SeaMonkey/2.0.11 MIME-Version: 1.0 To: "dsc fbsd.other" References: <002e01cbaa8b$b3b264a0$1b172de0$@gmail.com> In-Reply-To: <002e01cbaa8b$b3b264a0$1b172de0$@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-jail@freebsd.org Subject: Re: jailing MySQL error X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jan 2011 19:48:40 -0000 dsc fbsd.other wrote: [...] > My steps: > > 1. Ezjail-admin onestart j009_mysql2 > > 2. Ezjail-admin console j009_mysql2 > > 3. Cd /usr/ports/database/mysql55-server&& make install clean > > 4. cp /usr/local/share/mysql/my-innodb-heavy-4G.cnf > /usr/local/etc/my.cnf (modified socket file path to > /var/db/mysql/mysql.sock, in both client and server lines) > > 5. chown -R mysql:mysql ... for ... /tmp /var/tmp /var/db/mysql > > 6. mysql_enable="YES" in jail rc.conf > > 7. /usr/local/etc/rc.d/mysql-server start > > 8. ...and NOTHING ... mysql-server scripts starts > /usr/local/bin/mysql_install_db (creates mysql and test folders in > /var/db/mysql ... but nothing else ... it's just running) I am running mysql in a couple of jails without any additional tweaks. I don't know why you are using chown on /tmp /var/tmp and /var/db/mysql. Did you created /var/db/mysql manualy? Can you just try clean install without any tweaks without modifying my.cnf and just start it by: mysql_enable="YES" in jail rc.conf and /usr/local/etc/rc.d/mysql-server start MySQL daemon should run in jail with standard configuration. Miroslav Lachman From owner-freebsd-jail@FreeBSD.ORG Mon Jan 3 11:07:06 2011 Return-Path: Delivered-To: freebsd-jail@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC0ED10656D0 for ; Mon, 3 Jan 2011 11:07:06 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CAA898FC1D for ; Mon, 3 Jan 2011 11:07:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p03B767I046535 for ; Mon, 3 Jan 2011 11:07:06 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p03B76uJ046533 for freebsd-jail@FreeBSD.org; Mon, 3 Jan 2011 11:07:06 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 3 Jan 2011 11:07:06 GMT Message-Id: <201101031107.p03B76uJ046533@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-jail@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-jail@FreeBSD.org X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2011 11:07:06 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/150599 jail [patch] /etc/rc.d/jail does not set jailname. o conf/149050 jail [jail] rcorder ``nojail'' too coarse for Jail+VNET s conf/142972 jail [jail] [patch] Support JAILv2 and vnet in rc.d/jail o conf/141317 jail [patch] uncorrect jail stop in /etc/rc.d/jail o kern/133265 jail [jail] is there a solution how to run nfs client in ja o kern/119842 jail [smbfs] [jail] "Bad address" with smbfs inside a jail o bin/99566 jail [jail] [patch] fstat(1) according to specified jid o bin/32828 jail [jail] w(1) incorrectly handles stale utmp slots with 8 problems total. From owner-freebsd-jail@FreeBSD.ORG Mon Jan 3 13:21:37 2011 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80E1E10656D1 for ; Mon, 3 Jan 2011 13:21:37 +0000 (UTC) (envelope-from dsc.fbsd.other@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 123D38FC29 for ; Mon, 3 Jan 2011 13:21:36 +0000 (UTC) Received: by mail-ew0-f54.google.com with SMTP id 24so6272018ewy.13 for ; Mon, 03 Jan 2011 05:21:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:mime-version:content-type:content-transfer-encoding :x-mailer:thread-index:content-language; bh=lCfvqzU3+CwnM00B8k5lbLbQKSDXeHQDs8zyN/KzoMg=; b=oZCvLj6lLBJsu1Isz6j+wg7slHsS4B1GOFDz1HpurSh8ve+9AGBlEFwbTbF0TULK8M PHh6a8a0AsNjsRE7j6VZXh074/75DRTQ+DOYMms5XC/iHpcATodLLmLc+wjdNUrFkL9J xg+XYPXo427Htk7a2NNAqW/I18INyOGl12yXs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding:x-mailer:thread-index:content-language; b=H7I8/ueKvumWHdwqHnkI1SaAq+Ws7EQq8e461UuAtb2WSOXup4HytlaMxoDk/f6/fQ +XWubyqmG5S4102ZNm6sYnyMsuzDn8f9ILNi5ntFfxCy8K3ACkNsqhMyh9QUC8LxfqvI +5qkFtrE5iuI6vobB4NPI7qIyPTlSNWHOGmcM= Received: by 10.213.9.79 with SMTP id k15mr17068930ebk.27.1294060896548; Mon, 03 Jan 2011 05:21:36 -0800 (PST) Received: from fscld ([94.176.153.23]) by mx.google.com with ESMTPS id u1sm14779469eeh.16.2011.01.03.05.21.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 03 Jan 2011 05:21:35 -0800 (PST) From: "dsc fbsd.other" To: "'Miroslav Lachman'" <000.fbsd@quip.cz> Date: Mon, 3 Jan 2011 15:21:14 +0200 Message-ID: <002401cbab49$1b524590$51f6d0b0$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AcurSROejvxOZPVsT06SvpkMFbrYHA== Content-Language: en-us Cc: freebsd-jail@freebsd.org Subject: RE: jailing MySQL error [SOLVED] X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2011 13:21:37 -0000 Hello, SOLVED ! But the problem was in another place. Host world and kernel were build with src r215329 (patched with head-v28-v2.patch from Martin Matuska), but ezjail buildworld was made using more recent sources with no patch (in fact I was trying to apply the same patch to more recent sources, but it doesn't work ... but that's another issue). Mysql seems to have problems in this case (kernel and world based on different versions of src). But other stuff work just fine. So, first I've made a jail (standard steps from the handbook) using the same src r215329 (patched for zfs v28). Mysql works fine under this jail. After this step, I've updated the ezjail basejail (ezjail-admin update -i). Now, Mysql works just fine under ezjail too. Thanks for your time and help. Regards, Lulu -----Original Message----- From: Miroslav Lachman [mailto:000.fbsd@quip.cz] Sent: Sunday, January 02, 2011 9:32 PM To: dsc fbsd.other Cc: freebsd-jail@freebsd.org Subject: Re: jailing MySQL error dsc fbsd.other wrote: [...] > My steps: > > 1. Ezjail-admin onestart j009_mysql2 > > 2. Ezjail-admin console j009_mysql2 > > 3. Cd /usr/ports/database/mysql55-server&& make install clean > > 4. cp /usr/local/share/mysql/my-innodb-heavy-4G.cnf > /usr/local/etc/my.cnf (modified socket file path to > /var/db/mysql/mysql.sock, in both client and server lines) > > 5. chown -R mysql:mysql ... for ... /tmp /var/tmp /var/db/mysql > > 6. mysql_enable="YES" in jail rc.conf > > 7. /usr/local/etc/rc.d/mysql-server start > > 8. ...and NOTHING ... mysql-server scripts starts > /usr/local/bin/mysql_install_db (creates mysql and test folders in > /var/db/mysql ... but nothing else ... it's just running) I am running mysql in a couple of jails without any additional tweaks. I don't know why you are using chown on /tmp /var/tmp and /var/db/mysql. Did you created /var/db/mysql manualy? Can you just try clean install without any tweaks without modifying my.cnf and just start it by: mysql_enable="YES" in jail rc.conf and /usr/local/etc/rc.d/mysql-server start MySQL daemon should run in jail with standard configuration. Miroslav Lachman From owner-freebsd-jail@FreeBSD.ORG Mon Jan 3 14:49:08 2011 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2A9010656B4 for ; Mon, 3 Jan 2011 14:49:08 +0000 (UTC) (envelope-from erwin@mail.droso.net) Received: from mail.droso.net (grizzly.droso.net [IPv6:2a01:4f8:130:7021::5]) by mx1.freebsd.org (Postfix) with ESMTP id 3F32E8FC18 for ; Mon, 3 Jan 2011 14:49:07 +0000 (UTC) Received: by mail.droso.net (Postfix, from userid 1001) id BCB872F547; Mon, 3 Jan 2011 15:49:06 +0100 (CET) Date: Mon, 3 Jan 2011 15:49:06 +0100 From: Erwin Lansing To: freebsd-jail@freebsd.org Message-ID: <20110103144906.GL67325@droso.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PpAOPzA3dXsRhoo+" Content-Disposition: inline X-Operating-System: FreeBSD/amd64 8.1-RELEASE User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Unkillable jails with jailed zfs filesystems X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2011 14:49:08 -0000 --PpAOPzA3dXsRhoo+ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I've run into an issue where I can't kill off a jail as it keeps being in state dying, most likely because some of its filesystems are still busy. Network connections have all timed out and all processes have ended. This is mostly a stock 8.1-RELEASE, however with the patch from conf/149831 to jail its zfs filesystems and the problem is repeatable on multiple machines. Each jail has a large number of filesystems, each with different properties, mounted under its root filesystem, e.g. # zfs list -o name,mountpoint,jailed tank/jail/jail1 /jails/jail1 off tank/jail/jail1/home /home on tank/jail/jail1/tmp /tmp on tank/jail/jail2 /jails/jail2 off tank/jail/jail2/home /home on tank/jail/jail2/tmp /tmp on So far so good, but "/etc/rc.d/jail stop jail1" will leave jail1 in dying status. 'zfs destroy -r tank/jail/jail1' will report 'dataset busy'. Even worse, 'zfs destroy -f tank/jail/jail1/tmp' will still return a dataset busy, but also turn /tmp inside jail2 (!!) into mode 755, which of course leads to all kinds of fun in that jail. Any pointers to how to narrow down this issue welcome (and review of the above PR, which has set in GNATS for half a year now, as well :-) Cheers, -erwin --=20 Erwin Lansing (o_ _o) http://droso.org Ceterum censeo \\\_\ /_/// Carthaginem esse delendam <____) (____> erwin@lansing.dk --PpAOPzA3dXsRhoo+ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iD8DBQFNIeHiqy9aWxUlaZARAv99AKCMXBA5C38G6LittzT/cbTCvhxblwCgxE2h ZKcwCl0bcSJLMigXAABDEYo= =szKX -----END PGP SIGNATURE----- --PpAOPzA3dXsRhoo+--