Help replacing failing drive in ZFS

spiceygas

Member
Mar 11, 2023
11
2
8
I've got an ZFS array of 2TB disks. One of them has failed.

I made this ZFS via the GUI. Is there a way to replace the disk in the GUI?

If not, is this the correct command to do it via text command? (from this wiki)
Code:
# zpool replace -f two_tb_disk /dev/disk/by-id/scsi-2001b4d20c32c8d78-part1 /dev/sd[my-new-disk-id]

1775995374156.png
 
This cannot be done from the GUI.
If this is a non-boot pool, using zpool replace -f is fine.
However, I would recommend specifying the new disk via /dev/disk/by-id/ as well.

If this is a boot pool, you will need to follow the additional steps described in the wiki you referenced.
 
  • Like
Reactions: leesteken
First, thank you for your help! :)

Fortunately, this is not a boot pool. I ran the following command:
Code:
zpool replace -f two_tb_disk /dev/disk/by-id/scsi-2001b4d20c32c8d78-part1 /dev/disk/by-id/scsi-2001b4d2001387072

And it appears that resilvering is underway. Hopefully in a few hours everything will be good-to-go.
Code:
# zpool status
  pool: two_tb_disk
 state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
        continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
  scan: resilver in progress since Sun Apr 12 12:38:11 2026
        5.10T / 5.10T scanned, 4.69G / 5.10T issued at 282M/s
        421M resilvered, 0.09% done, 05:15:14 to go
config:

        NAME                          STATE     READ WRITE CKSUM
        two_tb_disk                   DEGRADED     0     0     0
          raidz1-0                    DEGRADED     0     0     0
            replacing-0               DEGRADED     0     0     0
              scsi-2001b4d20c32c8d78  DEGRADED   158     0     0  too many errors
              scsi-2001b4d2001387072  ONLINE       0     0     0  (resilvering)
            scsi-2001b4d20d6c169a4    ONLINE       0     0   158
            scsi-2001b4d20e6c4ace5    ONLINE       0     0   158
            scsi-2001b4d2026bba05b    ONLINE       0     0   158
            scsi-2001b4d20130cfd56    ONLINE       0     0   158
            scsi-2001b4d20669e4e1b    ONLINE       0     0   158
            scsi-2001b4d205ad42f4a    ONLINE       0     0   158
            scsi-2001b4d2007979d68    ONLINE       0     0   158
            scsi-2001b4d20df37e746    ONLINE       0     0   158
            scsi-2001b4d20bd2e3f0d    ONLINE       0     0   158
            scsi-2001b4d20d8d15ea6    ONLINE       0     0   158

errors: 2 data errors, use '-v' for a list
 
  • Like
Reactions: d.oishi