How can I proper unmount jails? I have my jails on an encrypted drive and can't detach it properly as long as file systems are mounted. Is there a clean way of unmounting all jail mounts automatically? I am running FreeBSD 9.3.
If I start/stop jails, the same file systems will be mounted without unmounting them. This can't be normal?!
... jail has been started during system boot ...
If I start/stop jails, the same file systems will be mounted without unmounting them. This can't be normal?!
... jail has been started during system boot ...
Code:
[CMD]> mount | grep myjail[/CMD]
/usr/jails/basejail on /usr/jails/myjail/basejail (nullfs, local, read-only)
devfs on /usr/jails/myjail/dev (devfs, local, multilabel)
fdescfs on /usr/jails/myjail/dev/fd (fdescfs)
procfs on /usr/jails/myjail/proc (procfs, local)
Code:
[CMD]> ezjail-admin stop myjail[/CMD]
Stopping jails: myjail.
Code:
[CMD]> mount | grep myjail[/CMD]
/usr/jails/basejail on /usr/jails/myjail/basejail (nullfs, local, read-only)
devfs on /usr/jails/myjail/dev (devfs, local, multilabel)
fdescfs on /usr/jails/myjail/dev/fd (fdescfs)
procfs on /usr/jails/myjail/proc (procfs, local)
Code:
[CMD]> ezjail-admin start myjail[/CMD]
Configuring jails:.
Starting jails:mount_nullfs: /usr/jails/myjail/basejail: Resource deadlock avoided
myjail.
Code:
[CMD]> mount | grep myjail[/CMD]
/usr/jails/basejail on /usr/jails/myjail/basejail (nullfs, local, read-only)
devfs on /usr/jails/myjail/dev (devfs, local, multilabel)
fdescfs on /usr/jails/myjail/dev/fd (fdescfs)
procfs on /usr/jails/myjail/proc (procfs, local)
fdescfs on /usr/jails/myjail/dev/fd (fdescfs)
procfs on /usr/jails/myjail/proc (procfs, local)