Hello, I have some jails running on ZFS, so I have to mount devfs's into them. For this purpose, I have some similar lines in /etc/fstab: devfs /pool/jail/ldap/dev devfs rw 0 0 Where /pool is a ZFS filesystem. This has worked until today -when I upgraded from a previous 7-STABLE (FreeBSD 7.0-STABLE #16: Fri Mar 7 14:30:08 CET 2008) to today's STABLE- but not anymore. The boot process fails with something like WARNING: $true wasn't set, see man rc.conf (or something similar, I don't have the exact error message, but I can reproduce if it's needed), and the problem is that the rc scripts try to mount the devfs (and nullfs) stuff to the yet unmounted ZFS, so /pool/jail/ldap/dev doesn't exist. If I create them on the root filesystem, the OS boots up fine, but of course I don't have the devfs's mounted onto ZFS, they are beneath it (umount and mount -a solves the issue). There is a similar problem with nullfs's as well. AFAIK only the following has been changed in rc.d: ./dhclient ./mountcritlocal ./mountlate neither of them seems to be able to produce this kind of malfunction. Any ideas?
Attila Nagy wrote:> Hello, > > I have some jails running on ZFS, so I have to mount devfs's into them. > > For this purpose, I have some similar lines in /etc/fstab: > devfs /pool/jail/ldap/dev devfs rw 0 0 > > Where /pool is a ZFS filesystem. >I'm not sure if it will have any adverse effects but changing this to devfs /pool/jail/ldap/dev devfs rw,late 0 0 Will probably fix it. My guess is that the error checking correction in the latest version in -stable picked up an error that was being incorrectly ignored before. see http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.d/mountcritlocal.diff?only_with_tag=RELENG_7&r1=text&tr1=1.14.2.2&r2=text&tr2=1.14 which i believe is the MFC for http://www.freebsd.org/cgi/getmsg.cgi?fetch=1314016+1316331+/usr/local/www/db/text/2008/cvs-all/20080309.cvs-all Although I cant seen a commit message in cvsweb (i'm still learning that though :) Vince> This has worked until today -when I upgraded from a previous 7-STABLE > (FreeBSD 7.0-STABLE #16: Fri Mar 7 14:30:08 CET 2008) to today's > STABLE- but not anymore. > > The boot process fails with something like WARNING: $true wasn't set, > see man rc.conf (or something similar, I don't have the exact error > message, but I can reproduce if it's needed), and the problem is that > the rc scripts try to mount the devfs (and nullfs) stuff to the yet > unmounted ZFS, so /pool/jail/ldap/dev doesn't exist. > > If I create them on the root filesystem, the OS boots up fine, but of > course I don't have the devfs's mounted onto ZFS, they are beneath it > (umount and mount -a solves the issue). There is a similar problem with > nullfs's as well. > > AFAIK only the following has been changed in rc.d: > ./dhclient > ./mountcritlocal > ./mountlate > > neither of them seems to be able to produce this kind of malfunction. > > Any ideas? > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
On 3/28/08, Attila Nagy <bra@fsn.hu> wrote:> Hello, > > I have some jails running on ZFS, so I have to mount devfs's into them. > > For this purpose, I have some similar lines in /etc/fstab: > devfs /pool/jail/ldap/dev devfs rw 0 0 > > Where /pool is a ZFS filesystem. > > This has worked until today -when I upgraded from a previous 7-STABLE > (FreeBSD 7.0-STABLE #16: Fri Mar 7 14:30:08 CET 2008) to today's STABLE- > but not anymore. > > The boot process fails with something like WARNING: $true wasn't set, see > man rc.conf (or something similar, I don't have the exact error message, but > I can reproduce if it's needed), and the problem is that the rc scripts try > to mount the devfs (and nullfs) stuff to the yet unmounted ZFS, so > /pool/jail/ldap/dev doesn't exist. >It would be helpfull to see what the error message is. For "jails" you don't need to place any devfs entries into /etc/fstab. The /etc/rc.d/jail script will automatically mount/umount the devfs for you. Just add the following to /etc/rc.conf: jail_<jailname>_devfs_enable="YES" jail_<jailname>_devfs_ruleset="MyJailRule" <- this is optional You can also do the same thing with "chroot", an example script is /etc/rc.d/named. Scot
On 2008.03.28. 23:59, Vince wrote:> Attila Nagy wrote: >> Hello, >> >> I have some jails running on ZFS, so I have to mount devfs's into them. >> >> For this purpose, I have some similar lines in /etc/fstab: >> devfs /pool/jail/ldap/dev devfs rw 0 0 >> >> Where /pool is a ZFS filesystem. >> > I'm not sure if it will have any adverse effects but changing this to > devfs /pool/jail/ldap/dev devfs rw,late 0 0 > > Will probably fix it. My guess is that the error checking correction > in the latest version in -stable picked up an error that was being > incorrectly ignored before. > see > http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.d/mountcritlocal.diff?only_with_tag=RELENG_7&r1=text&tr1=1.14.2.2&r2=text&tr2=1.14 > > which i believe is the MFC for > http://www.freebsd.org/cgi/getmsg.cgi?fetch=1314016+1316331+/usr/local/www/db/text/2008/cvs-all/20080309.cvs-all > > > Although I cant seen a commit message in cvsweb (i'm still learning > that though :)Yes, late works around the problem, thanks.
Possibly Parallel Threads
- [supermin PATCH] Add stdarg.h to fix issues with va_start.
- [Bug 1615] New: the pathname length of home directory is limited to less than 256 chars
- jail + devfs + snp problem (FreeBSD 5.1-RELEASE-p10)
- devfs and ext3?
- problem stoping jails with jail(8), jail.conf and mount.fstab