Help with replacing 1 disk in ZFS pool

masteryoda

Active Member
Jun 28, 2020
35
1
28
54
I run a zfs health check and this morning i got this message

The number of I/O errors associated with a ZFS device exceeded acceptable levels. ZFS has marked the device as faulted.

Code:
impact: Fault tolerance of the pool may be compromised.
    eid: 154
  class: statechange
  state: FAULTED
   host: andromeda
   time: 2024-10-06 23:32:55-0400
  vpath: /dev/disk/by-id/ata-SPCC_Solid_State_Disk_AA230715S301KG05621-part1
  vphys: pci-0000:0b:00.0-sas-phy2-lun-0
  vguid: 0x61568A6815B38368
  devid: ata-SPCC_Solid_State_Disk_AA230715S301KG05621-part1
   pool: local-zfs (0x2D70F8286CA24DF2)

I guess i need to replace the failed disk. Is there a guide that i can use so that i can swap the faulty disk out and will zpool automatically recognize the new disk or do i need to run a few commands?
 
Here you go, thank you for the prompt reply

Code:
zpool status
  pool: local-zfs
 state: ONLINE
  scan: resilvered 14.7M in 00:00:02 with 0 errors on Tue Oct  8 11:38:58 2024
config:


        NAME                                               STATE     READ WRITE CKSUM
        local-zfs                                          ONLINE       0     0     0
          raidz1-0                                         ONLINE       0     0     0
            ata-SPCC_Solid_State_Disk_AA230715S301KG05744  ONLINE       0     0     0
            ata-SPCC_Solid_State_Disk_AA230715S301KG05622  ONLINE       0     0     0
            ata-SPCC_Solid_State_Disk_AA230715S301KG05621  ONLINE       0     0     0
            ata-SPCC_Solid_State_Disk_AA230715S301KG05795  ONLINE       0     0     0


errors: No known data errors

Code:
zpool list
NAME        SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
local-zfs  3.62T   399G  3.24T        -         -    16%    10%  1.00x    ONLINE  -
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!