Re: how to find out where a umount is failing on -> vnodes: count 1 ?

From: David Wolfskill <david_at_catwhisker.org>
Date: Fri, 27 Sep 2024 12:36:36 UTC
On Fri, Sep 27, 2024 at 02:28:22PM +0200, Ronald Klop wrote:
> Hi,
> 
> Sometimes when I stop a jail the filesystem is not unmounted.
> 
> /data/jails/freebsd14.1-RELEASE on /data/jails/jenkins/_root (nullfs, local, read-only, nfsv4acls, fsid 07ff002929000000, vnodes: count 1 )
> [root@rpi4 ~]# umount  07ff002929000000
> umount: unmount of /data/jails/jenkins/_root failed: Device busy
> 
> Sometimes after some time the umount does succeed.
> 
> How can I find what is keeping this mount busy?
> ....

fstat(1) should be able to do that -- e.g.:

	fstat -f /data/jails/jenkins/_root

Peace,
david
-- 
David H. Wolfskill                              david@catwhisker.org
A convicted felon threatens to jail election officials.  Sad.

See https://www.catwhisker.org/~david/publickey.gpg for my public key.