SMB old connections not being dropped

crkinard

Explorer
Joined
Oct 24, 2019
Messages
80
While installing OS's via MDT using TrueNAS Scale as the depository of deployment files I have been running into issues where sessions are timing out trying to connect/reconnect to the server.

What I have found out is when running 'smbstatus' there are multiple process open for the same IP. Every time the MDT install process restarts the computer and reconnects to the server it makes a new process and the old ones either are never cleared or take forever to do so. When there is a connection from the same IP and the MDT install process tries to connect again there is a sizeable delay. Sometimes so long the install script times out and botches the deployment.

I am sure this is the issue because if I restart the SMB service (or kill all the processes related to the IP address of the deploying computer) to clear these connections everything proceeds fine.

I have no idea why these processes continue to persist for sometimes hours after the deployed computer rebooted (or even is completely shut off and physically disconnected from the network and nothing else is using that IP).
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
Interesting, SMB service may not know what is a legit disconnect vs network issue. Can you try turning off durable handles in the share?

1644422431854.png
 

crkinard

Explorer
Joined
Oct 24, 2019
Messages
80
Can not seem to find this option anywhere.

Ahh found it. Now for some testing.
 

crkinard

Explorer
Joined
Oct 24, 2019
Messages
80
Well to get that option to not be grayed out so I can turn it off I had to change the share purpose form 'Default share parameters' to 'No presets'.

Now inside the MDT share folder is a folder called my username and every time I try and delete it the folder comes back.
 
Top