ZFS What does "zio_read error: 45" mean

Hi all - I recently installed FreeBSD on my home server. I have two SSDs, and under linux I had one of them for the root file system and another for the user home directories. I started setting that up in FreeBSD as well, until I figured out that the proper way to do this was just to add the second one to the zfs pool.

So I did that. I worked, except that when I boot, I get a crap ton of "zio_read error: 45" errors. I did some reading and found a thread where the output of specific commands were requested, so for what it's worth:

Code:
server% efibootmgr -v
Boot to FW : false
BootCurrent: 0001
Timeout    : 1 seconds
BootOrder  : 0001, 0002, 0003
+Boot0001* UEFI OS HD(1,GPT,d1bbb302-6348-11f0-8545-7085c23bbd94,0x28,0x82000)/File(\EFI\BOOT\BOOTX64.EFI)
                      gpt/efiboot0:/EFI/BOOT/BOOTX64.EFI /boot/efi//EFI/BOOT/BOOTX64.EFI
 Boot0002* Hard Drive BBS(HD,,0x0)
 Boot0003* USB BBS(USB,,0x0)


Unreferenced Variables:
server% zpool status
  pool: zroot
 state: ONLINE
config:

 NAME        STATE     READ WRITE CKSUM
 zroot       ONLINE       0     0     0
   ada0p4    ONLINE       0     0     0
   ada1      ONLINE       0     0     0

errors: No known data errors
server% geom part show
=>       40  488397088  ada0  GPT  (233G)
         40     532480     1  efi  (260M)
     532520       1024     2  freebsd-boot  (512K)
     533544        984        - free -  (492K)
     534528    4194304     3  freebsd-swap  (2.0G)
    4728832  483667968     4  freebsd-zfs  (231G)
  488396800        328        - free -  (164K)

=>        34  7814037097  da1  GPT  (3.6T)
          34      262144    1  ms-reserved  (128M)
      262178        2014       - free -  (1.0M)
      264192  7813771264    2  ms-basic-data  (3.6T)
  7814035456        1675       - free -  (838K)

server% freebsd-version -kru
14.3-RELEASE
14.3-RELEASE
14.3-RELEASE
server% uname -aKU
FreeBSD server 14.3-RELEASE FreeBSD 14.3-RELEASE releng/14.3-n271432-8c9ce319fef7 GENERIC amd64 1403000 1403000
 
Last edited by a moderator:
it looks like you have ada1 in the zpool, not the ada1p2 partition. Additionally, that zpool setup, with a 231-gig partition striped to a 3.6T partition, is going to fill up asymmetrically. Setting it up as two pools might have been the better move.
 
So I did that. I worked, except that when I boot, I get a crap ton of "zio_read error: 45" errors. I did some reading and found a thread where the output of specific commands were requested, so for what it's worth:
The zio_read errors may be a symptom for a few different problems.

Do you use any geli encryption with your ZFS setup?

How big is the second SSD in the ZFS pool?

During a boot attempt can you enter the loader's prompt and show us the output of lsdev -v?

Is your system booting the modern UEFI way or is it using the legacy BIOS way?

Does the system boot successfully despite all the zio_read errors or does it fail to boot?
 
Error 45 is EOPNOTSUPP, or "operation not supported". That's very strange: what operation might be unsupported by the underlying hardware?
 
Back
Top