The only hard part here is identifying the device name. I prefer to use the model name/device short hand name and not the path/name. These often come in the form ata-ST4000NE001-2MA101_WS24TQ9W. I used the hwinfo command to get the information.
Type : #hwinfo --disk
To replace the old disk with the new disk, type:
#zpool replace [pool name] [old device name] [new device name]
ZFS will resilver the disk automatically. You can continue to use the filesystem. No problem.
You can check the status with:
#zpool [pool name] status
I bought this new 4TB disk around August 2024 and put it online[ZFS] but did not use it in a pool. So it's kind of a replacement disk. I replaced ata-ST2000DM001-1CH164_W1E8B1ZS because it is the oldest at 8 years and I'm logging errors.
Comments