Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

NAS crashes when transferring at a high rate using Samba

cozmicf

Neophyte
Joined
May 27, 2020
Messages
6
Hi everyone,

I have a FreeNAS setup (FreeNAS-11.3-U2.1, on an Intel 4570 with 8GB of RAM) with a Samba share set up (and some jails for Plex, Sonarr, etc).

I have a Windows PC that I access the Samba share with to copy large files. The problem is that when I transfer for a few minutes, eventually the FreeNAS crashes (I can't log in to the web interface, or ping it, the share of course goes down too). It happens after 5-10 minutes, sometimes longer, sometimes earlier. Another clue is that if I connect to the 2.4GHz band on my router and thus reduce my transfer rate from 20-30MBps (on the 5GHz band) to 10-12MBps the FreeNAS is far less likely to crash (although it has a couple of times still).

I have been monitoring the temperatures and CPU utilisation, and it is all very low at the time, even just before the crash. I have also tried swapping RAM sticks (different slots, and different sticks altogether). This happens on both HDDs that are in the machine (one is a 4TB Seagate Expansion shucked drive, and the other an 8TB WD shucked drive)

Can someone please guide me as to how I would go about diagnosing this problem?

Thanks,
Rik.
 

sretalla

Dedicated Sage
Joined
Jan 1, 2016
Messages
2,613
What's likely is that you have a NIC that has a poorly written driver or some settings (perhaps hardware offload) that are causing the system to Kernel Panic.

Since you didn't show the brand/model of the NIC you're using, it's hard to suggest what else to look at.
 

cozmicf

Neophyte
Joined
May 27, 2020
Messages
6
Thanks for the reply, and that does seem like a plausible reason. The NIC I have is the one built in to the motherboard (Gigabyte H87M-D3H) which has a Realtek® GbE LAN chip (10/100/1000 Mbit) according to their website.

Will any logs show me some clues about this?
 

sretalla

Dedicated Sage
Joined
Jan 1, 2016
Messages
2,613
You can enable the debug kernel in system|advanced, but I wouldn't waste your time... the realtek drivers don't have good support in FreeBSD and are known to be problematic. Get yourself a cheap Intel NIC and you'll get along better with FreeNAS.
 

Lyubomyr83

Junior Member
Joined
May 18, 2020
Messages
14
You can enable the debug kernel in system|advanced, but I wouldn't waste your time... the realtek drivers don't have good support in FreeBSD and are known to be problematic. Get yourself a cheap Intel NIC and you'll get along better with FreeNAS.
I think it’s a bug. Unscheduled system reboot come suddenly with several last updates (don’t really know which one). FreeNAS worked like a clock without any problems several years till now. I try to reinstall my FreeNAS VM without any extended disks, only with host disk (I add 2 partitions 32gb for system and 40gb for pool). And when I try to use transmission plugin for download or try to put some data to pool disk, I receive randomly switching off this VM. And I think, it’s happening when try to put something to disk. I think developers must investigate this thread.
 

sretalla

Dedicated Sage
Joined
Jan 1, 2016
Messages
2,613
I think it’s a bug. Unscheduled system reboot come suddenly with several last updates
So are you using a supported (Intel) NIC, but seeing instability following the latest updates? or are you also using a realtek adapter?

It's pretty clear that this thread refers to a problem caused by the Realtek drivers which went away when the OP changed to an Intel one.
 

Lyubomyr83

Junior Member
Joined
May 18, 2020
Messages
14
So are you using a supported (Intel) NIC, but seeing instability following the latest updates? or are you also using a realtek adapter?

It's pretty clear that this thread refers to a problem caused by the Realtek drivers which went away when the OP changed to an Intel one.
I have a virtual mashine with proxmox hypervisor and try change intel virtual to Realtek virtual adapter, try them both. But always random crashes. My motherboard Asus Q87T have two physical adapters.
 

sretalla

Dedicated Sage
Joined
Jan 1, 2016
Messages
2,613
I have a virtual mashine with proxmox hypervisor and try change intel virtual to Realtek virtual adapter, try them both
OK, so this should really be a different thread...

You might like to try using the "VMware vmxnet3" network adapter type in Proxmox as this driver is built-in and supported on FreeNAS.

Depending on how the health of your Proxmox host is in general, it's going to be hard to pin this down.

You may also want to try going under Network | Interfaces | <your interface> | Edit and switching on the option to "Disable Hardware Offloading" if you continue to see problems.
 

Lyubomyr83

Junior Member
Joined
May 18, 2020
Messages
14
OK, so this should really be a different thread...

You might like to try using the "VMware vmxnet3" network adapter type in Proxmox as this driver is built-in and supported on FreeNAS.

Depending on how the health of your Proxmox host is in general, it's going to be hard to pin this down.

You may also want to try going under Network | Interfaces | <your interface> | Edit and switching on the option to "Disable Hardware Offloading" if you continue to see problems.
But why you think it’s network adapter? When I copy files from attached disks, I also receive random crashes. Never before I haven’t this problem.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
1,765
But why you think it’s network adapter? When I copy files from attached disks, I also receive random crashes. Never before I haven’t this problem.
Unfortunately, running FreeNAS as a VM isn't supported. Any crashes there are interesting, but are usually chalked up to running in an unsupported configuration. Crashes on bare metal, however, are more concerning, and indicate some deleterious interaction between the new version and the underlying hardware.
 

Lyubomyr83

Junior Member
Joined
May 18, 2020
Messages
14
OK, so this should really be a different thread...

You might like to try using the "VMware vmxnet3" network adapter type in Proxmox as this driver is built-in and supported on FreeNAS.

Depending on how the health of your Proxmox host is in general, it's going to be hard to pin this down.

You may also want to try going under Network | Interfaces | <your interface> | Edit and switching on the option to "Disable Hardware Offloading" if you continue to see problems.
Proxmox has VMware vmxnet3 adapter, and I changed to it. Now i will test it. But now 20 minutes without any crashes. Thanks in advance good man. Thanks for your help.
 

sretalla

Dedicated Sage
Joined
Jan 1, 2016
Messages
2,613
But why you think it’s network adapter?
Because you've posted your problem in a thread about crashes during high network load which was fixed by switching network adapters.

Proxmox has VMware vmxnet3 adapter, and I changed to it. Now i will test it. But now 20 minutes without any crashes.
Glad to hear it, I hope it continues to work.
 

Lyubomyr83

Junior Member
Joined
May 18, 2020
Messages
14
Because you've posted your problem in a thread about crashes during high network load which was fixed by switching network adapters.


Glad to hear it, I hope it continues to work.
Thanks a lot. Now it works stable. Shortly i’ll try to copy big value of data and check stability.
 
Top