When I stop/shutdown jails, the mounts specified in /etc/fstab.jailname do not get unmounted. The explanation by Jamie (maintainer of jails) for the problem is:
Full mail from quote here: http://freebsd.1045724.n5.nabble.com/Re ... 99766.html
Great! What is the proper syntax to include in /etc/fstab.jailname so that nullfs mounts for that jail get unmounted? I already have these, but neither /dev nor the contents of the jail's fstab get unmounted:If you want to keep track of such things for proper handling in later removal, you should put those options in /etc/jail.conf (or some other config file that you should take care to include in the removal command
line.
Code:
exec.stop = "/bin/sh /etc/rc.shutdown; umount /dev; umount /etc/fstab.jailname";
Full mail from quote here: http://freebsd.1045724.n5.nabble.com/Re ... 99766.html