Date: Thu, 9 Jul 2009 10:37:40 -0400 From: Jim <stapleton.41@gmail.com> To: freebsd-questions@freebsd.org Subject: jail/system crash with mount_unionfs Message-ID: <80f4f2b20907090737w25372a67p39bb0fadffc95183@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?80f4f2b20907090737w25372a67p39bb0fadffc95183>