Mounting devfs over to ZFS from fstab fails



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?
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: ZFS: amd64, devd, root file system.
    ... I even performed a "boot -v" but did not see anything useful. ... replicas for the pool to continue functioning. ... It seems that ZFS "legacy" mounts are not supported under FreeBSD, ... no other way to mount it since we do not have a "mount_zfs", ...
    (freebsd-current)
  • Re: Mounting devfs over to ZFS from fstab fails
    ... I have some jails running on ZFS, so I have to mount devfs's into them. ... 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 stuff to the yet ...
    (freebsd-stable)
  • Various Issues with 7.0-BETA4
    ... Install 7.0-BETA2 off the amd64.iso. ... seem to auto mount my zfs mounts which is a PITA. ... to boot into single user mode, mount all my drives, ...
    (freebsd-stable)
  • Re: Various Issues with 7.0-BETA4
    ... seem to auto mount my zfs mounts which is a PITA. ... you need to a) mount root read-write and b) run ... I just rebuild my world and then kernel based on sources as of a few ...
    (freebsd-stable)
  • Re: Various Issues with 7.0-BETA4
    ... seem to auto mount my zfs mounts which is a PITA. ... Did you create the zfs structures and file system while in single user ... Then reboot into multiuser mode - it should work ...
    (freebsd-stable)