[Samba] Weird folders / files after upgrading to Samba 4.20

Michael Tokarev mjt at tls.msk.ru
Thu Jul 18 21:23:38 UTC 2024


18.07.2024 13:03, Matthias Kühne | Ellerhold Aktiengesellschaft via samba wrote:
> Hallo,
> 
> yes this is an "ls -lAh" on the samba fileserver side in the
> corresponding directory.
> 
> Downgrading to 4.19 does not remove the weird directories and files. But
> it prevents new weird ones being created...
> 
> Looking at the timestamps these seem to be created when (heavy?)
> filesystem operations are being done. There is a cronjob that imports
> images at 1oo and it runs for around 30 mins. Most of the weird
> directory are created between 1:00 and 1:30. This cronjob runs on
> another server which has this share mounted via fstab.

Aha.  This is much more understandable.

Do you have unix extensions enabled on the samba server?
4.20 has some work in this area.  It might be interesting to
test 4.20 without unix extensions - if you can afford the
same havoc as you already had (which isn't easy for sure).

Provided this problem is reproducible, ofc.

Maybe you can run your job on another - test - share with 4.20
and switch back to 4.19 before real night job is run.

This is just a wild guess, anyway.

> Nobody else has these problems with Samba 4.20 and debian 12? Any help
> is greatly appreciated.

cifs mount isn't seen/used often already.  From your description it
looks like linux cifs client with samba 4.20 is the bad combination,
and it might require some high filesystem load.

Thanks,

/mjt



More information about the samba mailing list