From owner-freebsd-stable@FreeBSD.ORG Sat May 7 09:51:23 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E8C016A4D8 for ; Sat, 7 May 2005 09:51:23 +0000 (GMT) Received: from anduin.net (anduin.net [212.12.46.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCED743D7C for ; Sat, 7 May 2005 09:51:22 +0000 (GMT) (envelope-from ltning@anduin.net) Received: from ranger.anduin.net ([81.0.162.52] helo=[192.168.1.110]) by anduin.net with esmtpa (Exim 4.50 (FreeBSD)) id 1DULxw-0000lu-QH; Sat, 07 May 2005 11:51:21 +0200 User-Agent: Microsoft-Entourage/11.1.0.040913 Date: Sat, 07 May 2005 11:50:18 +0200 From: Eirik =?ISO-8859-1?B?2A==?=verby To: Message-ID: In-Reply-To: <17020.6038.618856.265788@satchel.alerce.com> Mime-version: 1.0 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable cc: "stable@freebsd.org" Subject: Re: unionfs limitations? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 May 2005 09:51:23 -0000 On 07-05-05 03:19, "George Hartzell" wrote: > Eirik =D8verby writes: >> Hi, >>=20 >> I just started playing with mounting ports into jails using unionfs >> (mount_unionfs -b /usr/ports_jail /usr/local/jails/jail-0/usr/ports), an= d >> many things seem to work fine. >> However, when trying to install either of mysql41-server or mysql41-clie= nt, >> I see the following: >>=20 >> [root@mpi1] /usr/ports/databases/mysql41-server# make install >> =3D=3D=3D> Installing for mysql-server-4.1.11_1 >> =3D=3D=3D> mysql-server-4.1.11_1 depends on shared library: mysqlclient.14 - >> found >> =3D=3D=3D> Generating temporary packing list >> =3D=3D=3D> Checking if databases/mysql41-server already installed >> ln: POSIX: Operation not supported >> *** Error code 1 >>=20 >> Stop in /usr/ports/databases/mysql41-server. >>=20 >> Did I miss out on something, or is this not going to work? Do I need to >> think in other ways? >> [...] >=20 > Here's one unionfs/jail gotcha that's bitten me a couple of times. If > you actually *use* (or, have used) the ports directory to build and > install stuff onto the "host" machine, the ports infrastructure in the > jail gets kind of confused. It seems to be checking for the files in > the dependencies, doesn't find them, goes to make them, and then > [depending on what state the relevant port directory is in], things > get "odd". I noticed that pretty early on, yea ;) =20 > I've started just using a virgin ports tree as the underpinnings for > my unionfs'ed jails. Same here.. =20 > Is there any chance that you've installed mysql-server on the host? Indeed I have, but not from that ports tree. What I did was create myself a "template" jail, containing all the base stuff plus some essential ports (perl and stuff). Then I unionfs-mount this one into all of my jails, and customize them at will. Weird thing happened this morning though, suddenly the box seemed half-dead= . I didn't touch it, someone else noticed because they weren't able to ssh in= . TCP connection established, but no auth phase. I also noticed in my active ssh sessions, that things were "dead", in the sense that when on the shell prompt, pressing ENTER only gave me a new, blank line. Logging in via serial console didn't work either, put in username and press ENTER and nothing happened. Best thing was when I tried to enter the debugger, it started spewing huge amounts of crap at me, to a point where I simply had to yank the power (i have remote power sockets, a blessing! ;). Not sure if this was unionfs related, but I'm on 5.4 as of a couple of days ago, so it is entirely possible there's something else weird up. Am I being too much of an optimist, hoping that my unionfs approach will work? The POSIX issue still stands, though. /Eirik