SMB goes offline when copying large files

I am having issues copying to any of my SMB shares, the files range from 10GB to 100GB in size but no matter if I copy one or multiple it either hangs around 99% on a single file and the shares eventually go offline displaying a red x.

On multiple files at the end of each transfer the speed drops to 0, hangs for a random amount of time and either eventually moves onto the next file or the shares go offline.

During the copying I am unable to access the shares and just get the blue spinning wheel.

I have tested this with a Windows VM withing scale and also a laptop running Windows 11 with the same behavior.

Running scale 24.10.2.1
HP micorserver gen8
Xeon E3-1230 V2
16GB Ram
Mirrored SSD boot drives.

I do have a bridge network setup so the Windows VM could access the SMB shares.

Any help would be much appreciated.

Welcome to the TrueNAS Forums.

You have left out some information, the main ones are the version of TrueNAS you are using and the drives and layout. You may need to include the NIC type as well, I don’t personally know if the HP system comes with a Realtek or Intel NIC but if this is a RealTek NIC, that would be the first thing I would say is the problem. But there is a lack of information so it is just a guess.

I would also add in how long the system has been running, and under what kind of usage. Have any stability tests been conducted? There are a lot of things we could ask. Are the cooling fans all running properly? It can go on and on. So please read and add in the extra information. And do not forget to include some data on the Windows machine as well.

And again, Welcome to the Forums

Please read Joes Rules to Asking for Help.

Joe made many good points, be sure to start there.

In addition it would be good to know if you are doing these file transfers using Windows Explorer or using some other tool, Teracopy is known to be used sometimes, and be the cause of some issues.

HI, I did include the version of Truenas.

Scale 24.10.2.1.

Laptop is running windows 11 with 8GB RAM.
Windows VM is running in host pass through CPU with 4GB Ram.

Googling the nic it shows as a HPE Ethernet 1GB 2 port 332i adapter.

I have a mirrored boot pool using 2 x 500GB SSD’s.

Main pool is set to Raidz1 which includes 4 x 4TB and 1 x 6TB hard drives.

I am using Windows explorer to copy the files. I can sometimes leave it and when it hangs at 0 transfer speed it will sometimes continue.

The speed it copies at when using SMB seems to go too quick when compared to midnight commander, I wondering when it hangs at 0 is it actually still copying the file in the background but that isn’t been displayed. Not sure if that can be changed to show the actual transfer.

Sorry, I didn’t see, I read right over it.

How long have you waited for the file to complete copying?
Your TrueNAS system only has 16GB RAM, that leaves a very small ARC so I would not guess this would take a long time.

What are the exact make/model of the two drives? This is very important as I am now thinking SMR.

Please post the output of the following commands. If you are not logged in as root, start the command with sudo. Post everything in it’s own preformatted test section (the </> icon above).

zpool status -v
smartctl --scan This command will provide you the drive names (sda, sdb, sdc) to use in the next command.
smartctl -x /dev/sda (use the two drives for your pool. sda could be your boot-pool) and this should be a fairly long output, we need it all.

Those are the first steps to take. I am also a bit fuzzy about the VMs you are running. Are you trying to use a TrueNAS VM of Windows 11? If yes, then transfer speeds should be faster, significantly faster. If the transfer is to an external Windows Laptop (as you said), how is it connected? WiFi, LAN cable?

That should be enough for now. The ball is back n your court.

The Windows VM on my Truenas is running server 2022 and the laptop is running Windows 11.

Make and models of all my drives,

Boot pool x 2, both the same

Samsung MZ7LH480HAHQ-000MV

3 x SAS drives

HG HUS726060AL5210
Seagate ST4000NM0025
Seagate ST4000NM0025

2 x SATA

WDC_WD4003FFBX-6
Seagate ST4000VX007-2DT166

I have included a result below for one of my boot pool drives, let me know if you want more.


smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.6.44-production+truenas] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Samsung based SSDs
Device Model:     SAMSUNG MZ7LH480HAHQ-000MV
Serial Number:    S5TVNA0R524797
LU WWN Device Id: 5 002538 e0154f777
Firmware Version: HXT70M3Q
User Capacity:    480,103,981,056 bytes [480 GB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
TRIM Command:     Available, deterministic, zeroed
Device is:        In smartctl database 7.3/5671
ATA Version is:   ACS-4 T13/BSR INCITS 529 revision 5
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Mon Apr  7 18:05:04 2025 BST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM feature is:   Unavailable
Rd look-ahead is: Enabled
Write cache is:   Disabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, frozen [SEC2]
Wt Cache Reorder: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever 
                                        been run.
Total time to complete Offline 
data collection:                (    0) seconds.
Offline data collection
capabilities:                    (0x53) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        No Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine 
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        (  35) minutes.
SCT capabilities:              (0x003d) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  5 Reallocated_Sector_Ct   PO--CK   100   100   010    -    0
  9 Power_On_Hours          -O--CK   099   099   000    -    615
 12 Power_Cycle_Count       -O--CK   099   099   000    -    67
177 Wear_Leveling_Count     PO--C-   099   099   005    -    6
179 Used_Rsvd_Blk_Cnt_Tot   PO--C-   100   100   010    -    0
180 Unused_Rsvd_Blk_Cnt_Tot PO--C-   100   100   010    -    1431
181 Program_Fail_Cnt_Total  -O--CK   100   100   010    -    0
182 Erase_Fail_Count_Total  -O--CK   100   100   010    -    0
183 Runtime_Bad_Block       PO--C-   100   100   010    -    0
184 End-to-End_Error        PO--CK   100   100   097    -    0
187 Uncorrectable_Error_Cnt -O--CK   100   100   000    -    0
190 Airflow_Temperature_Cel -O--CK   061   048   000    -    39
194 Temperature_Celsius     -O---K   061   048   000    -    39 (Min/Max 17/52)
195 ECC_Error_Rate          -O-RC-   200   200   000    -    0
197 Current_Pending_Sector  -O--CK   100   100   000    -    0
199 CRC_Error_Count         -OSRCK   100   100   000    -    0
202 Exception_Mode_Status   PO--CK   100   100   010    -    0
235 POR_Recovery_Count      -O--C-   099   099   000    -    56
241 Total_LBAs_Written      -O--CK   099   099   000    -    4308356817
242 Total_LBAs_Read         -O--CK   099   099   000    -    7114886870
243 SATA_Downshift_Ct       -O--CK   100   100   000    -    5909786368
244 Thermal_Throttle_St     -O--CK   100   100   000    -    0
245 Timed_Workld_Media_Wear -O--CK   100   100   000    -    65535
246 Timed_Workld_RdWr_Ratio -O--CK   100   100   000    -    65535
247 Timed_Workld_Timer      -O--CK   100   100   000    -    65535
251 NAND_Writes             -O--CK   100   100   000    -    0
                            ||||||_ K auto-keep
                            |||||__ C event count
                            ||||___ R error rate
                            |||____ S speed/performance
                            ||_____ O updated online
                            |______ P prefailure warning

General Purpose Log Directory Version 1
SMART           Log Directory Version 1 [multi-sector log support]
Address    Access  R/W   Size  Description
0x00       GPL,SL  R/O      1  Log Directory
0x01           SL  R/O      1  Summary SMART error log
0x02           SL  R/O      1  Comprehensive SMART error log
0x03       GPL     R/O      1  Ext. Comprehensive SMART error log
0x04       GPL,SL  R/O      8  Device Statistics log
0x06           SL  R/O      1  SMART self-test log
0x07       GPL     R/O      1  Extended self-test log
0x09           SL  R/W      1  Selective self-test log
0x10       GPL     R/O      1  NCQ Command Error log
0x11       GPL     R/O      1  SATA Phy Event Counters log
0x12       GPL     R/O      1  SATA NCQ Non-Data log
0x13       GPL     R/O      1  SATA NCQ Send and Receive log
0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
0xa5           SL  VS      16  Device vendor specific log
0xce           SL  VS      16  Device vendor specific log
0xe0       GPL,SL  R/W      1  SCT Command/Status
0xe1       GPL,SL  R/W      1  SCT Data Transfer

SMART Extended Comprehensive Error Log Version: 1 (1 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%       573         -
# 2  Short offline       Completed without error       00%       406         -
# 3  Short offline       Completed without error       00%       238         -
# 4  Short offline       Completed without error       00%        65         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

SCT Status Version:                  3
SCT Version (vendor specific):       256 (0x0100)
Device State:                        Active (0)
Current Temperature:                    39 Celsius
Power Cycle Min/Max Temperature:     39/41 Celsius
Lifetime    Min/Max Temperature:     17/52 Celsius
Specified Max Operating Temperature:    70 Celsius
Under/Over Temperature Limit Count:   0/0

SCT Temperature History Version:     2
Temperature Sampling Period:         1 minute
Temperature Logging Interval:        10 minutes
Min/Max recommended Temperature:      0/70 Celsius
Min/Max Temperature Limit:            0/70 Celsius
Temperature History Size (Index):    128 (16)

Index    Estimated Time   Temperature Celsius
  17    2025-04-06 20:50    41  **********************
 ...    ..(  2 skipped).    ..  **********************
  20    2025-04-06 21:20    41  **********************
  21    2025-04-06 21:30    40  *********************
 ...    ..( 10 skipped).    ..  *********************
  32    2025-04-06 23:20    40  *********************
  33    2025-04-06 23:30    39  ********************
  34    2025-04-06 23:40    40  *********************
 ...    ..(  7 skipped).    ..  *********************
  42    2025-04-07 01:00    40  *********************
  43    2025-04-07 01:10    39  ********************
  44    2025-04-07 01:20    40  *********************
  45    2025-04-07 01:30    40  *********************
  46    2025-04-07 01:40    40  *********************
  47    2025-04-07 01:50    39  ********************
  48    2025-04-07 02:00    40  *********************
  49    2025-04-07 02:10    40  *********************
  50    2025-04-07 02:20    39  ********************
 ...    ..( 11 skipped).    ..  ********************
  62    2025-04-07 04:20    39  ********************
  63    2025-04-07 04:30    40  *********************
 ...    ..(  6 skipped).    ..  *********************
  70    2025-04-07 05:40    40  *********************
  71    2025-04-07 05:50    39  ********************
 ...    ..( 18 skipped).    ..  ********************
  90    2025-04-07 09:00    39  ********************
  91    2025-04-07 09:10    40  *********************
  92    2025-04-07 09:20    39  ********************
 ...    ..(  2 skipped).    ..  ********************
  95    2025-04-07 09:50    39  ********************
  96    2025-04-07 10:00    38  *******************
 ...    ..(  3 skipped).    ..  *******************
 100    2025-04-07 10:40    38  *******************
 101    2025-04-07 10:50    42  ***********************
 102    2025-04-07 11:00    40  *********************
 103    2025-04-07 11:10    39  ********************
 104    2025-04-07 11:20    39  ********************
 105    2025-04-07 11:30    40  *********************
 106    2025-04-07 11:40    39  ********************
 ...    ..(  7 skipped).    ..  ********************
 114    2025-04-07 13:00    39  ********************
 115    2025-04-07 13:10    40  *********************
 116    2025-04-07 13:20    40  *********************
 117    2025-04-07 13:30    39  ********************
 118    2025-04-07 13:40     ?  -
 119    2025-04-07 13:50    40  *********************
 120    2025-04-07 14:00    40  *********************
 121    2025-04-07 14:10    40  *********************
 122    2025-04-07 14:20    41  **********************
 123    2025-04-07 14:30    40  *********************
 124    2025-04-07 14:40    39  ********************
 125    2025-04-07 14:50    39  ********************
 126    2025-04-07 15:00    40  *********************
 127    2025-04-07 15:10    40  *********************
   0    2025-04-07 15:20    39  ********************
   1    2025-04-07 15:30    39  ********************
   2    2025-04-07 15:40    40  *********************
 ...    ..(  2 skipped).    ..  *********************
   5    2025-04-07 16:10    40  *********************
   6    2025-04-07 16:20    39  ********************
   7    2025-04-07 16:30    40  *********************
 ...    ..(  7 skipped).    ..  *********************
  15    2025-04-07 17:50    40  *********************
  16    2025-04-07 18:00    39  ********************

SCT Error Recovery Control:
           Read: Disabled
          Write: Disabled

Device Statistics (GP Log 0x04)
Page  Offset Size        Value Flags Description
0x01  =====  =               =  ===  == General Statistics (rev 1) ==
0x01  0x008  4              67  ---  Lifetime Power-On Resets
0x01  0x010  4             615  ---  Power-on Hours
0x01  0x018  6      4308356817  ---  Logical Sectors Written
0x01  0x020  6       226837458  ---  Number of Write Commands
0x01  0x028  6      7114886870  ---  Logical Sectors Read
0x01  0x030  6        17598188  ---  Number of Read Commands
0x01  0x038  6         1959000  ---  Date and Time TimeStamp
0x04  =====  =               =  ===  == General Errors Statistics (rev 1) ==
0x04  0x008  4               0  ---  Number of Reported Uncorrectable Errors
0x04  0x010  4               1  ---  Resets Between Cmd Acceptance and Completion
0x05  =====  =               =  ===  == Temperature Statistics (rev 1) ==
0x05  0x008  1              39  ---  Current Temperature
0x05  0x020  1              52  ---  Highest Temperature
0x05  0x028  1              17  ---  Lowest Temperature
0x05  0x058  1              70  ---  Specified Maximum Operating Temperature
0x06  =====  =               =  ===  == Transport Statistics (rev 1) ==
0x06  0x008  4             246  ---  Number of Hardware Resets
0x06  0x010  4               0  ---  Number of ASR Events
0x06  0x018  4               0  ---  Number of Interface CRC Errors
0x07  =====  =               =  ===  == Solid State Device Statistics (rev 1) ==
0x07  0x008  1               0  N--  Percentage Used Endurance Indicator
                                |||_ C monitored condition met
                                ||__ D supports DSN
                                |___ N normalized value

Pending Defects log (GP Log 0x0c) not supported

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description
0x0001  2            0  Command failed due to ICRC error
0x0002  2            0  R_ERR response for data FIS
0x0003  2            0  R_ERR response for device-to-host data FIS
0x0004  2            0  R_ERR response for host-to-device data FIS
0x0005  2            0  R_ERR response for non-data FIS
0x0006  2            0  R_ERR response for device-to-host non-data FIS
0x0007  2            0  R_ERR response for host-to-device non-data FIS
0x0008  2            0  Device-to-host non-data FIS retries
0x0009  2            4  Transition from drive PhyRdy to drive PhyNRdy
0x000a  2            4  Device-to-host register FISes sent due to a COMRESET
0x000b  2            0  CRC errors within host-to-device FIS
0x000d  2            0  Non-CRC errors within host-to-device FIS
0x000f  2            0  R_ERR response for host-to-device data FIS, CRC
0x0010  2            0  R_ERR response for host-to-device data FIS, non-CRC
0x0012  2            0  R_ERR response for host-to-device non-data FIS, CRC
0x0013  2            0  R_ERR response for host-to-device non-data FIS, non-CRC

Having a similar issue with 24.10.2.1. Qbittorrent over SMB is complaining about IO issues. From other clients it seems to be working fine.

With all the issue I was having with SMB my system ended up failing, one of my pools exported itself and my main data pool wasn’t accessible anymore, thought I had lost everything.

I did panic but I had recently backed up my configuration file, I re-installed 24.10.2 and imported my pools, granted I didn’t think it would work but hours later I have my data back and m up and running.

SMB is still problematic though, hangs at 99% when copying like it hasn’t finished, I have resorted to using midnight commander and just using SMB to delete and move within the same folder structure.