Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Sep 2024 12:47:03 +0000 (UTC)
From:      =?UTF-8?Q?Yves_Gu=C3=A9rin?= <yvesguerin@yahoo.ca>
To:        Ronald Klop <ronald-lists@klop.ws>,  David Wolfskill <david@catwhisker.org>
Cc:        "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org>
Subject:   Re: how to find out where a umount is failing on -> vnodes: count 1 ?
Message-ID:  <492989678.10535729.1727441223394@mail.yahoo.com>
In-Reply-To: <Zvam1EJ0xbnLKkLK@albert.catwhisker.org>
References:  <2020716853.7639.1727440102154@localhost> <Zvam1EJ0xbnLKkLK@albert.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_10535728_377872146.1727441223392
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Dear,
try lsof

Yves Guerin=20

    Le vendredi 27 septembre 2024 =C3=A0 08:37:20 UTC=E2=88=924, David Wolf=
skill <david@catwhisker.org> a =C3=A9crit : =20
=20
 On Fri, Sep 27, 2024 at 02:28:22PM +0200, Ronald Klop wrote:
> Hi,
>=20
> Sometimes when I stop a jail the filesystem is not unmounted.
>=20
> /data/jails/freebsd14.1-RELEASE on /data/jails/jenkins/_root (nullfs, loc=
al, read-only, nfsv4acls, fsid 07ff002929000000, vnodes: count 1 )
> [root@rpi4 ~]# umount=C2=A0 07ff002929000000
> umount: unmount of /data/jails/jenkins/_root failed: Device busy
>=20
> Sometimes after some time the umount does succeed.
>=20
> How can I find what is keeping this mount busy?
> ....

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

=C2=A0=C2=A0=C2=A0 fstat -f /data/jails/jenkins/_root

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

See https://www.catwhisker.org/~david/publickey.gpg for my public key.
 =20
------=_Part_10535728_377872146.1727441223392
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html><head></head><body><div class=3D"ydp4adcafdeyahoo-style-wrap" style=
=3D"font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px=
;"><div><div dir=3D"ltr" data-setdir=3D"false">Dear,</div><div dir=3D"ltr" =
data-setdir=3D"false"><br></div><div dir=3D"ltr" data-setdir=3D"false">try =
lsof<br></div><div><br></div><div class=3D"ydp4adcafdesignature">Yves Gueri=
n</div></div>
        <div><br></div><div><br></div>
       =20
        </div><div id=3D"yahoo_quoted_7552373788" class=3D"yahoo_quoted">
            <div style=3D"font-family:'Helvetica Neue', Helvetica, Arial, s=
ans-serif;font-size:13px;color:#26282a;">
               =20
                <div>
                        Le vendredi 27 septembre 2024 =C3=A0 08:37:20 UTC=
=E2=88=924, David Wolfskill &lt;david@catwhisker.org&gt; a =C3=A9crit :
                    </div>
                    <div><br></div>
                    <div><br></div>
               =20
               =20
                <div>On Fri, Sep 27, 2024 at 02:28:22PM +0200, Ronald Klop =
wrote:<div class=3D"yqt0012630488" id=3D"yqtfd06759"><br clear=3D"none">&gt=
; Hi,<br clear=3D"none">&gt; <br clear=3D"none">&gt; Sometimes when I stop =
a jail the filesystem is not unmounted.<br clear=3D"none">&gt; <br clear=3D=
"none">&gt; /data/jails/freebsd14.1-RELEASE on /data/jails/jenkins/_root (n=
ullfs, local, read-only, nfsv4acls, fsid 07ff002929000000, vnodes: count 1 =
)<br clear=3D"none">&gt; [root@rpi4 ~]# umount&nbsp; 07ff002929000000<br cl=
ear=3D"none">&gt; umount: unmount of /data/jails/jenkins/_root failed: Devi=
ce busy<br clear=3D"none">&gt; <br clear=3D"none">&gt; Sometimes after some=
 time the umount does succeed.<br clear=3D"none">&gt; <br clear=3D"none">&g=
t; How can I find what is keeping this mount busy?</div><br clear=3D"none">=
&gt; ....<br clear=3D"none"><br clear=3D"none">fstat(1) should be able to d=
o that -- e.g.:<br clear=3D"none"><br clear=3D"none">&nbsp;&nbsp;&nbsp; fst=
at -f /data/jails/jenkins/_root<br clear=3D"none"><br clear=3D"none">Peace,=
<br clear=3D"none">david<br clear=3D"none">-- <br clear=3D"none">David H. W=
olfskill&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbs=
p; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a shape=3D"rect" ymailto=3D"mailto:d=
avid@catwhisker.org" href=3D"mailto:david@catwhisker.org">david@catwhisker.=
org</a><br clear=3D"none">A convicted felon threatens to jail election offi=
cials.&nbsp; Sad.<br clear=3D"none"><br clear=3D"none">See <a shape=3D"rect=
" href=3D"https://www.catwhisker.org/~david/publickey.gpg" target=3D"_blank=
">https://www.catwhisker.org/~david/publickey.gpg</a>; for my public key.<di=
v class=3D"yqt0012630488" id=3D"yqtfd47574"><br clear=3D"none"></div></div>
            </div>
        </div></body></html>
------=_Part_10535728_377872146.1727441223392--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?492989678.10535729.1727441223394>