Replacing disk in draid pool? #13990
-
HI there, [Ubuntu 22.04, ZFS 2.1.4] This is how it looked after resilvering, and I have offlined the disk 0b-4... `root@boxen:~# zpool status test
errors: No known data errors` Here I am wiping the disk... and showing that there is a device behind 0b-4... `root@boxen:~# ls -l /dev/disk/by-vdev/0b-4 root@boxen:~# wipefs -a /dev/disk/by-vdev/0b-4 root@boxen:~# dd if=/dev/zero of=/dev/disk/by-vdev/0b-4
Which gives this pool status: ` pool: test
errors: No known data errors` I then try to replace the disk...
And after that, the pool looks like this... ` pool: test
errors: No known data errors` Any suggestions? Any help is very welcome... Just an addon... I did a "zpool offline test 0b-4" which gave this pool status: ` pool: test
errors: No known data errors` I then pulled the disk, and the pool started to resilver?!? I don't understand this... ` pool: test
errors: No known data errors` I don't quite understand this behaviour? I have now inserted the pulled disk into another slot, and will wipe it, and try to replace 0b-4 once the resilvering is done... Well, the resilver completed, and so did the scrub... I then did a "zpool replace test 0b-4 0b-0" where 0b-0 is the same device, just moved to another slot in the shelf... and of cause wipefs -a and dd if=/dev/zero .... to make sure the disk was clean... yet I am unable to replace the failed disk in the pool?
Is this a known bug, or am I doing something wrong? /H |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
So I ended up f*ucking up my pool... reading too many "bad" suggestions I found ;-) But once the pool was build I copied some data onto it, pulled a disk, which started the resilvering and subsequent scrub. I guess it is up to the moderator to decide if this should be left here for some someone else to enjoy? ;-) One thing I will add is that the resilver process is much faster than my old raidz3 pool... it is more or less running at disk speed (about 200MB/sec) and I guess you cannot expect a faster rebuild... /H |
Beta Was this translation helpful? Give feedback.
So I ended up f*ucking up my pool... reading too many "bad" suggestions I found ;-)
I did a "zpool detach test ", which removed the failed device, but I was unable to add the new disk again.. (I was aware that detach properly wasn't the right way to go)...
I build the pool again, and found out that "zpool labelclear" doesn't work on devices like /dev/sda, but want the first partition like /dev/sda1... (which isn't stated anywhere) ? :-)
But once the pool was build I copied some data onto it, pulled a disk, which started the resilvering and subsequent scrub.
I then did a "zpool offline test 0b-0" (0b-0 was the disks I pulled)...
I inserted the disk again...
Then did a "zpool labelclear 0b-…