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).
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).