Hello.
We have a Hyper-V cluster (2016) that works with the SOFS cluster (2016).
Usually, for each vhdx file there are connections on behalf of the Hyper-V host that uses it.
However, sometimes there are sessions on behalf of Hyper-V administrators.
Get-SmbOpenFile | ? Path -match "Server2_1day.vhdx" | select FileId, SessionId, ShareRelativePath, ClientComputerName, ClientUserName | ft
FileId SessionId ShareRelativePath ClientComputerName ClientUserName
------ --------- ----------------- ------------------ --------------
9191767457793 9191364231205 NOTIER\VMDATA\SERVER2\SERVER2_1DAY.VHDX 10.0.10.11 %Domain%\%host%$
9194988110257 9191297122641 notier\VMData\Server2\Server2_1day.vhdx 10.0.10.11 %Domain%\%administrator%
9191766885145 9191364231205 NOTIER\VMDATA\SERVER2\SERVER2_1DAY.VHDX 10.0.10.11 %Domain%\%host%$If such a session is interrupted, the virtual machine receives a critical error and stops.
We have found that these sessions appear, for example, when the size of vhdx changes on the fly.
If the virtual machine is turned off and on, they disappear.
If the virtual machine is restarted, they remain.
Is it possible to avoid the appearance of such sessions?
Is it possible to avoid the appearance of such sessions when changing the size of the disk without turning on / off?