I/O error on copy large file

I have a command to be run on torrent finish in qBittorrent (cp -r “%D/%N” “/jellyfin/%L/”) which copies the downloaded file to another location. But doing this with huge files 20GB< results in I/O error and TrueNAS reporting that the pool is not healthy.

The pool I’m trying to copy the files in are compriced of a single 8TB drive (since the files on it are REALLY not important and I don´t need the redundancy).
Make and model:Seagate IronWolf 8TB 7200rpm 256MB

The drive is brand new and smaller files (tested up to 14GB) works great and the smart data dont retur any errors. Do anyone have any idea whats bugging my pool.

Please not that I´m a newbie and don´t know which log files you want.

CPU: AMD Ryzen 9 5900X
MB: MSI B450I GAMING PLUS AC
RAM: Corsair Vengeance LPX Black 32GB (2x16GB) / 3000MHz / DDR4 / CL15

2026-05-02 17:04:20.417081+00:00cp: error copying ‘/data/movies/XX/xx.mkv’ to ‘/jellyfin/movies/XX/xx.mkv’: I/O error

More info:

The file seems to be transferred but TrueNAS is stuck on believing that the pool is unhealty (apps dont work at all as long as it thinks like so) untill I reboot the server, then it’s all good again

We’ll need more information. System and hardware info and pool status for starters.

Are you copying the large files from one pool to another or within the same pool?

  • TrueNAS Community Edition version 25.10.3
  • Pool setup:
    • tank
      • data
      • jellyfin

I’m trying to cp files from /mnt/tank/data/movies to /mnt/tank/jellyfin/movies and like i said, it seems like that the file gets copied correctly but TrueNAS bugs out.

Hardware?

Pool status?

zpool status -v tank
truenas_admin@truenas[~]$ zpool status -v tank
  pool: tank
 state: ONLINE
  scan: scrub repaired 0B in 00:05:46 with 0 errors on Sat May  2 20:00:04 2026
config:

        NAME                                    STATE     READ WRITE CKSUM
        tank                                    ONLINE       0     0     0
          eb75e284-9971-4e26-a92a-95a747db915f  ONLINE       0     0     0

errors: No known data errors

Hardware I’ve posted in the OP or are you referring to something else?

Ok so now the pool crapped out on me with a smaller file:

truenas_admin@truenas[~]$ zpool status -v tank
  pool: tank
 state: ONLINE
status: One or more devices has experienced an error resulting in data
        corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
        entire pool from backup.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-8A
  scan: scrub repaired 0B in 00:05:46 with 0 errors on Sat May  2 20:00:04 2026
config:

        NAME                                    STATE     READ WRITE CKSUM
        tank                                    ONLINE       0     0     0
          eb75e284-9971-4e26-a92a-95a747db915f  ONLINE       0     0     0

errors: List of errors unavailable: permission denied

“permission denied” - i have given the apps (568) modify permission

You need to use sudo for the command for root privileges.

sudo zpool status -v tank

Any errors in SMART? Replace X with your drive.

sudo smartctl -l error /dev/sdX
sudo smartctl -l selftest /dev/sdX

How is the drive connected? Any HBAs or “SATA expansion cards”?

sudo zpool status -v tank
[sudo] password for truenas_admin:
pool: tank
state: ONLINE
status: One or more devices has experienced an error resulting in data
corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
entire pool from backup.
see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-8A
scan: scrub repaired 0B in 00:05:46 with 0 errors on Sat May  2 20:00:04 2026
config:

    NAME                                    STATE     READ WRITE CKSUM
    tank                                    ONLINE       0     0     0
      eb75e284-9971-4e26-a92a-95a747db915f  ONLINE       0     0     0

errors: Permanent errors have been detected in the following files:

    /mnt/tank/data/movies/XX/xx.r45

Hmm this is a different download from last time so i don’t think the torrent is the problem.

truenas_admin@truenas[~]$ sudo smartctl -t long /dev/sdb
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.12.33-production+truenas] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: “Execute SMART Extended self-test routine immediately in off-line mode”.
Drive command “Execute SMART Extended self-test routine immediately in off-line mode” successful.
Testing has begun.
Please wait 8 minutes for test to complete.
Test will complete after Sat May  2 21:47:23 2026 CEST
Use smartctl -X to abort test.
truenas_admin@truenas[~]$ sudo smartctl -l selftest /dev/sdb
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.12.33-production+truenas] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error

1  Extended offline    Completed without error       00%        54
truenas_admin@truenas[~]$ sudo smartctl -l error /dev/sdb
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.12.33-production+truenas] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Error Log Version: 0
No Errors Logged

Run a full scrub on the pool

After it finishes, post the output again.

sudo zpool status -v tank

Are you sure that’s the drive for your pool? An 8 TB drive would have taken much longer than 8 minutes to do a long SMART selftest.

Nope I mistook the drives.

Please wait 684 minutes for test to complete.

See you tomorrow :smiley:

Thanks so far!

You’ll still need to do a full scrub after the selftest completes and post all the following.

sudo zpool status -v tank

sudo smartctl -l selftest /dev/sdX

sudo smartctl -l error /dev/sdX

If you have an issue with RAM or CPU, but not the drive itself, a SMART test can still return with no errors, since it is handled by the drive’s firmware without going through RAM.

Is this a partial result? Usually (not always) there’d be a ton more fields, including the drive model & other parameters that could indicate a failure (even though the test passes).

ignore that result, wrong disk :slight_smile:

It’s due to the flag used. I sugggest simply using the -a flag instead like so:
sudo smartctl -a /dev/XXX instead

1 Like

So when i waked up today the NAS was hardlocked and i needed to to pull the plug for it to actually reboot and respond. I’ve just fired up an Memtest and are up to 140 errors so I think I’ve found the culprit. Will buy new memsticks and try again.

That’s impossible! It cannot be! Another failed memtest?

According to @truenas-fan, memtests are useless.

@truenas-fan, can you explain why the OP is wrong and how they need to investigate elsewhere to narrow the problem?

Please, @truenas-fan. We are pathetic “so-called” experts who haven’t a clue about “deep digital systems knowledge”.

In the meantime, the list keeps growing.

Important PSA so people will not waste precious time with pointless memtests.

5 Likes