Hi. I have raidz1 created from 4 disks. 1 disk is out of order. I replaced it and installed a new disk (same model). After installing a new disk, I see the UNAVAIL status. How do I fix raidz1?
The next time you shoudn't add disks by "/dev/sdX" and use "/dev/disk/by-id/YourDisk" instead. Causes less problems because then that devices path is unique and can't switch paths. Like the same disk that is sometimes identified as "/dev/sdd" and sometimes as "/dev/sde" and so on.
The next time you shoudn't add disks by "/dev/sdX" and use "/dev/disk/by-id/YourDisk" instead. Causes less problems because then that devices path is unique and can't switch paths. Like the same disk that is sometimes identified as "/dev/sdd" and sometimes as "/dev/sde" and so on.
After ZFS has partitioned that new drive the path doesn't really matter anymore, because ZFS can then identify a drive by the ZFS metadata written to it. So ZFS doesn't care anymore if that disk is switching between sdd/sde because it just scans all drives for metadata instead.
Using /dev/disk/by-id is important while ZFS is rebuilding the pool while that metadata isn't used yet.
And of cause it is easier in the future to identify a failed drive if it is listed in zpool status with its model and serial instead of just a sde.