ZFS System become slow, hard drive failure?

Ok, so it is FreeBSD 14.3 on a ZFS based single disk pool. Lately I accidentally noticed It's been very slow when logging in. I don't know since when it became this bad because it serves a backup VPS whose load is low and I don't pay attention to it.
Code:
% sudo  zpool status -xv
  pool: zroot
 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: [URL]https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-8A[/URL]
remove: Removal of vdev 1 copied 344K in 0h0m, completed on Thu Jun  8 14:02:16 2023
        240 memory used for removed device mappings
config:

        NAME          STATE     READ WRITE CKSUM
        zroot         ONLINE       0     0     0
          ada0p3      ONLINE       0     0     0

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

        //var/run/devd.pid

Luckily the OS still boots.

Not sure if it makes sense, but I check .zfs/snapshot/2025-05-07-15:01:10-0/var/run/devd.pid, and compare it with /var/run/devd.pid. Both devd.pid files contain very simple 3-digit numbers.

Is this a hard drive failure? Can I still fix it?
 
#pkg install smartmontools
# pkg info smartmontools
smartmontools-7.5_1
Name : smartmontools
Version : 7.5_1

You can use smartmontools ,
binary is /usr/local/sbin/smartctl

# smartctl -HA /dev/ada0

to dump the SATA drives error counters.

Look for reallocated sectors , number of failed but not relaocated sectors and UDMA errors
If those numbers are substantial , hundreds to thousands , the drive is failing and not safe to use.
 
Back
Top