Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear ZFS community,
I'm currently researching OpenZFS repair code, and I'm a bit confused about the mechanism of the "zpool replace" command.
In my setup, I first created three 4GB files as virtual hard drives and then set up a 2+1 pool with a RAIDZ1 configuration. I then zeroed out the first 80MB of the first virtual hard drive, which resulted in an "invalid label" error, as shown below:
I was unable to fix the "invalid label" error using the "zpool scrub" command. However, when I replaced the "failed" disk with a new one using the "zpool replace" command, the "invalid label" error disappeared. I'm wondering how the "zpool replace" command fixes the invalid label error. Does it create a new label on the new disk? How does this new label integrate into the pool? A high-level explaination would be great!
I would greatly appreciate any help!
Beta Was this translation helpful? Give feedback.
All reactions