With the samba issue resolved (by removing the mount to the other server) and testing for disconnects the same thing happens. So, that didn’t resolve it. This has been ongoing for a long while and is quite disconcerting. I have found a way to mitigate the impact of loosing the connection by using a linux program called “screen”. However this is not the perfect solution. I have to remember to start it after each connect. Then if I get a disconnect I need to restart it by attaching to the screen session. Then I have control of the prior tasks.
Since the attempt to resolve it last, I added a second gigabit network card (NIC) and tested more. Same issue. That means it isn’t the NIC that was the issue. Also the replaced switches seem quite stable and are also not the cause.
This leaves me wondering. This thing has a MDADM raid 5 so it isn’t easy to just migrate it to my proxmox box. It could be an issue with the motherboard yet that motherboard has been in place for a while. Things to break so it still could be as that is an old i7 2600 CPU. Worst case I’ll swap it. That system also has an addon SATA card. That only runs 2 HDDs so i’m not sure that is really the issue. Not sure why a network disconnect would occur as a result of a SATA HDD controller issue.
It could be the power supply. I changed that recently. The new one was a bit larger and had more SATA power ports.
I did have one of the 3tb HDDs fail however before that happened I had already added 2 4tb drives to the array. That failure resulted in me removing the physical drive. The array was perfectly fine.
When I connect via samba through the file manager by connecting to the share I have some issues when renaming and/or deleting files. It will cause a disconnect and I’ll have to wait for it to reconnect.
About auto reconnecting. SSHFS has a feature for auto reconnect however I don’t see one for doing this via the /etc/fstab for samba mounts. The sshfs has an option to reconnect. This has helped me with some remote connects where I connect with SSHFS.
So more testing is necessary. I’m narrowing it down but my options are far fewer now.