[Samba] Windows User Profile corruption on a member server

Michael Tokarev mjt at tls.msk.ru
Sat Feb 12 21:31:53 UTC 2022

12.02.2022 22:27, Michael Tokarev via samba wrote:

So I tried to debug this further. And it seems this has nothing to do
with samba per se, it is some problem with windows. Maybe samba is
somehow related to this too, but not within its file operations which
are done exactly as windows client asked it.

What I see here is that windows, while copying a user profile from
the (samba) server (when this profile didn't exist), first creates
small portion of each file, something in chunks of 20480 bytes.
Yes it reads these 20480 bytes from samba and samba happily does
what it was asked.  So win populates whole thing with these small
portions of each file, and immediately starts the user GUI. But
neither the wallpaper nor the StartMenu links are complete at this
time, and lots of other files too.  But it continues to syncronize
this profile "in the background", writing all data (including these
first 20480 bytes) this time (and ofc. asking samba to read all the
data this time)..  I don't know where it stops (and it stops before
completing), but the end result is still the same - lots of profile
files become incomplete/corrupt.

Regular file copy works fine from both samba and windows PoV. Only
the profile sync is this awful, so far.

So far I only observed this strange behavor when using a linux server
joined to the AD domain (hence the subject). But I remember seeing
something similar before with our previous setup too, - very very
rarely. I dunno what the difference is, - the server is actually the
same (just a new container on the same hardware, with similar settings).

On the client we use Windows 10 LTSC 1809 with current updates.
I'll probably install some over version of Win10 to see if it
behaves differently.

The whole thing is.. just terrible :)



More information about the samba mailing list