On 2019-11-13 09:30, Andrew Bartlett wrote:
> Regarding your problem, on linux I use lslocks to debug from here, you
> can normally work out which process is holding the lock, which lock it
> is waiting on (if any, marked with a *) and gdb that to work out what
> is the matter with it, and perhaps why it is in that situation.
Hmm...
I have no lslocks on FreeBSD; will lsof do?
In case, here's an excerpt:> samba 72462 root txt VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 72462 root 46u VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> smbd 72466 root txt VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> smbd 72466 root 8u VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 72469 root txt VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 72469 root 32u VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> winbindd 72475 root txt VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> winbindd 72475 root 12u VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 72476 root txt VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 72476 root 25u VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> smbd 72487 root txt VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> smbd 72487 root 8u VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> smbd 72488 root txt VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> smbd 72488 root 8u VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> smbd 72489 root txt VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> smbd 72489 root 8u VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> smbd 72494 root txt VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> smbd 72494 root 8u VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 72496 root txt VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 72496 root 46u VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 72497 root txt VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 72497 root 35u VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 72692 root txt VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 72692 root 46u VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 72696 root txt VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 72696 root 46u VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 72697 root txt VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 72697 root 35u VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 72882 root txt VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 72882 root 35u VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 73535 root txt VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 73535 root 35u VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 73536 root txt VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 73536 root 35u VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 73895 root txt VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 73895 root 35u VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 76100 root txt VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 76100 root 35u VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 76103 root txt VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 76103 root 35u VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 85298 root txt VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
> samba 85298 root 35u VREG 4,1302659313
430080 32007 /usr/jails/dc/var/db/samba4/private/secrets.tdb
IIUIC, it seems I have around 20 processes using secrets.tdb read/write,
but no locks!
So I tried stopping Samba completely: now no process has secrets.tdb
open; still tdbbackup gets stuck in _fcntl!!!
I'm open to suggestions...
bye & Thanks
av.