From owner-freebsd-questions@FreeBSD.ORG Thu Jul 9 14:37:41 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D1FC1065674 for ; Thu, 9 Jul 2009 14:37:41 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.168]) by mx1.freebsd.org (Postfix) with ESMTP id 651248FC19 for ; Thu, 9 Jul 2009 14:37:41 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so59584wfg.7 for ; Thu, 09 Jul 2009 07:37:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=0G1up5lWVt/AgurcNZceWPZV4hUmMQR2W/P8sKwUJv4=; b=c1PQHyu0nHtyupsR+A54hsCKjYLV8hkMUOfjkC+xXSM101Rrb7mDmk8wTw3mcAmYbM bu6SFizn3F1OmUqA/PJztSIK5Uerx9ELuszk4sPkjKBTKL1auk7s5PFLPciR3pLitxI9 bG9dq4qw5sMRE0UiMHVL2QfzpQe27MtuVPY/o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=KJ9DvJZ7QvJDMozP5DrC70nX+L2w83C3dd1l6JLynoCGwi7pYhSjjTY06xiEUI3ju+ 9TZuLpgQCGIER8aZFPQ/M0uuCnvTaSO4tA63mHgdlXwBgazskCJMbcYn6QCtadoPcvKx mk4Bh99M9u6oNiOZn0By6njZO2ccvMzwUDVAk= MIME-Version: 1.0 Received: by 10.142.164.1 with SMTP id m1mr321406wfe.92.1247150260936; Thu, 09 Jul 2009 07:37:40 -0700 (PDT) Date: Thu, 9 Jul 2009 10:37:40 -0400 Message-ID: <80f4f2b20907090737w25372a67p39bb0fadffc95183@mail.gmail.com> From: Jim To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: jail/system crash with mount_unionfs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2009 14:37:41 -0000 OS: FreeBSD 7.2 release / Generic kernel I used CSUP to download the source tree, and the RELENG_7_2, no date specified. I didn't rebuild the base OS world/kernel. I have installed a lot of ports on the main system, most of what the jail would need is also already installed - so the distfiles and ports directories are already setup to speed of the install process. I figured I'd save time and effort and use unionfs to allow both systems to use the same ports directory (to be safe, I won't compile things from both systems at the same time, but keeping the same ports directory was fine. I followed the jail creation instructions in the handbook posted on the www.freebsd.org Once the jail was created, I made a script to union the ports directories: ts.org_mount_ports #!/bin/sh mount_unionfs /usr/ports /data/jail/ts.org/usr/ports/ I also have my jail shell startup script: ts.org_shell #!/bin/sh jail -s 2 /data/jail/ts.org/ ts.org.mydomain 192.168.1.83 /bin/sh [sjss@boromir /data/jail]$ ls ts.org/usr/ports [sjss@boromir /data/jail]$ sudo ./ts.org_mount_ports [sjss@boromir /data/jail]$ ls ts.org/usr/ports ... ports directory listing omitted [sjss@boromir /data/jail]$ sudo ./ts.org_shell # cd /usr/ports # ls The base operating system hangs at this point. later: [sjss@boromir /data/jail]$ ls ts.org/usr/ports [sjss@boromir /data/jail]$ cd ts.org/usr/ports [sjss@boromir /data/jail/ts.org/usr/ports]$ cp -rf /usr/ports/* . [sjss@boromir /data/jail/ts.org/usr/ports]$ cd /data/jail [sjss@boromir /data/jail]$ ls ts.org/usr/ports ... ports directory listing omitted [sjss@boromir /data/jail]$ sudo ./ts.org_shell # cd /usr/ports # ls ... ports directory listing omitted As you can see, there is a work around, so I'm not that /bothered/ by this, but it'd be nice to know what's up. Am I doing something wrong? If not, can anyone replicate this? Should I file a bug report? Thanks, -Jim Stapleton