[SOLVED] Replacing a disk in raidz

Walery

Member
Feb 11, 2021
67
1
13
42
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?pr1.jpg
 
Last edited:
I did
zpool replace -f store2 15019500515676786837 /dev/sde

received
pr2.jpg
Probably I entered the disk name incorrectly. Its name is different. It can be fixed?
 
Last edited:
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.
Is it better not to touch anything now? And next time use the disk id. Or is it possible to remove the drive and connect it again using the id?
 
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.

So i woukd keep it as it is.
 
  • Like
Reactions: Walery

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!