Cannot export jail?

Daisuke

Contributor
Joined
Jun 23, 2011
Messages
1,041
I created a jail on TrueNAS12-U2 and installed plexmediaserver on it, everything is working great:
Code:
iocage create -n plexmediaserver -r 12.2-RELEASE boot=on dhcp=on vnet=on bpf=yes


After one week of usage, I wanted to do a backup and I tried to export the jail without success, the zip file is not created:
Code:
# iocage stop plexmediaserver
# iocage export plexmediaserver
Exporting dataset: services/iocage/jails/plexmediaserver
Exporting dataset: services/iocage/jails/plexmediaserver/root
warning: cannot send 'services/iocage/jails/plexmediaserver/root@ioc-export-2021-02-20': Input/output error
Command '['zfs', 'send', 'services/iocage/jails/plexmediaserver/root@ioc-export-2021-02-20']' returned non-zero exit status 1.


Example for another jail where I run different software, which behaves correctly:
Code:
# iocage stop media
# iocage export media
Exporting dataset: services/iocage/jails/media
Exporting dataset: services/iocage/jails/media/root
Preparing compressed file: /mnt/services/iocage/images/media_2021-02-20.zip.
Exported: /mnt/services/iocage/images/media_2021-02-20.zip

# ls -lah /mnt/services/iocage/images
total 3778501
drwxr-xr-x  2 root  wheel     4B Feb 20 02:52 .
drwxr-xr-x+ 4 root  wheel     7B Feb 20 02:32 ..
-rw-r--r--  1 root  wheel    64B Feb 20 02:03 media_2021-02-20.sha256
-rw-r--r--  1 root  wheel   1.8G Feb 20 02:03 media_2021-02-20.zip


Why can't I do the same with plexmediaserver? I want to create a zip file, is a great way to restore the jail.
 
Last edited:

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Enter dmesg and zpool status -v. That I/O error message hints at a problem with your disks and pool.
 

Daisuke

Contributor
Joined
Jun 23, 2011
Messages
1,041
The services pool is actually an SSD disk where I run the jails, I did a scrub and nothing is fixed.Is there a way to fix it or should I replace the SSD with a new one?
Code:
# zpool status -v services
  pool: services
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:01:27 with 0 errors on Sun Feb 14 00:01:27 2021
config:

    NAME                                          STATE     READ WRITE CKSUM
    services                                      ONLINE       0     0     0
      gptid/a65289b6-17fd-11eb-9d4b-047d7bd5d6a2  ONLINE       0     0     6

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

        <0xf77d>:<0x70023>
        <0xf77d>:<0x6ff60>
        <0xf77d>:<0x6fdc1>
        <0xf6f3>:<0x70023>
        <0xf6f3>:<0x6ff60>
        <0xf6f3>:<0x6fdc1>


1613875157193.png
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
There is no way to fix it without redundancy. Consider setting up mirrored SSDs for your jails. Additionally or alternatively you could set up a replication task that copies all your jails to your redundant storage pool (which I just assume you have).

The output of smartctl -a for your SSD would tell you some more, but probably that drive is done and needs to be replaced.
 
Top