Crash on large SMB file transfer

boggie1688

Explorer
Joined
Jul 9, 2015
Messages
58
Hi,

I just noticed my Truenas box likes to crash on long SMB file transfers.

If a file is say, 100GB, it Truenas box will crash. The web-based GUI is inaccessible, and I cannot reach any of the web UI's for any jail application. It takes a minute or two for the box to recover. Interestingly, I have a PI-KVM setup, and I can tell that the box is not reboot. Through the PI-KVM I can see the box is still displaying the console setup screen.

I'm not entirely sure where to start here.

Truenas 12.0-U3
Ryzen 5 3400G
32GB RAM
7x 5TB Drives using Dell Perc H200
 

anowosad

Dabbler
Joined
Jan 2, 2022
Messages
20
Have similar problem. TrueNAS SMB share stopped working when sending big Acronis backup file (around 100GB). I still could get to WebUI however smbd failed to restart from WebUI. TrueNAS hanged during the reboot phase. Had to hard power cycle it.
 

pschatz100

Guru
Joined
Mar 30, 2014
Messages
1,184
If everything works OK with TrueNAS, except the large file transfers, then it is possible the NIC is your problem. Realtek NIC's tend to be unreliable with TrueNAS. There are two things you can try:

1. Go into the bios and disable all advanced network features.
2. Disable the onboard NIC and replace with an Intel-based network card
 

anowosad

Dabbler
Joined
Jan 2, 2022
Messages
20
... and after hard power-cycle, it completely disintegrated,... boot process started looping on some plugin loaders. I have reinstalled (upgraded) the same version and after spinning on the rrdtool plugin it finally hanged again. I've reinstalled all from scratch on the same old boot disk and successfully imported disk pools. Once users and SMB shares were restored I can see old files on imported backup pools which is good. After trying to make a new backup I noticed no access to old previous folders, which is bad. Additionally, all new folders created had permission d--------- which is very bad.SMB
 

HarryMuscle

Contributor
Joined
Nov 15, 2021
Messages
161
Have you checked your RAM lately? Might be causing strange issues if it's failing.

Thanks,
Harry
 

anowosad

Dabbler
Joined
Jan 2, 2022
Messages
20
Memory is fine!
It looks like the whole rdtool DB was affected by smbd and went creasy. Reinstalling from scratch solved the problem. 500GB Acronis backup was successful.
 

anowosad

Dabbler
Joined
Jan 2, 2022
Messages
20
My Realtek NIC is ok. Very reliable.
It is kind of funny everybody responding is looking around for problems with all but TrueNAS software.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Additionally, all new folders created had permission d--------- You're using the wrong tool to look at permissions in this case. Use getfacl.
 

anowosad

Dabbler
Joined
Jan 2, 2022
Messages
20
Additionally, all new folders created had permission d--------- You're using the wrong tool to look at permissions in this case. Use getfacl.
Maybe the tool is wrong, but the result is the same. All permissions for new folders were d--------- which made the pool unusable. How to correct it after importing pools from disks on a brand new installation?
 

anowosad

Dabbler
Joined
Jan 2, 2022
Messages
20
To late. I removed affected (d---------) folders and recreated them from the shell. Then I removed the SMB share and re-created it again, the exactly same way, and all come back to work.
Thank you anodos for trying to help. I learned something new to use getfacl next time.
 
Top