madshi Posted January 14, 2021 Share Posted January 14, 2021 (edited) I'm currently upgrading/rebuilding 1 disk. Using dual parity. I'm noticing that unRAID reads both parity disks during the rebuiling process. Wondered why that was necessary? In order to just rebuild the disk, reading 1 parity disk should suffice, no? But following that thought: If we have dual parity and are rebuilding just 1 disk, why not use the opportunity to run a parity check at the same time? So basically use parity 1 to rebuild the disk, and use parity 2 to double check that everything's perfect. That would be 2 jobs done at the same time, with the same speed and the same disk wear. Thoughts? Edited January 14, 2021 by madshi Quote Link to comment
JorgeB Posted January 14, 2021 Share Posted January 14, 2021 27 minutes ago, madshi said: why not use the opportunity to run a parity check at the same time? That's is what is already being done, hence why parity2 is being read. Quote Link to comment
madshi Posted January 14, 2021 Author Share Posted January 14, 2021 (edited) Oh, that's very cool, thanks for letting me know! Why is there no "error" counter in the statistics, though? Normally, when doing a parity check there's an error counter, and it's nice to see it stay at 0. Will there be an error or success report at the end of this simultaneous "disk rebuild + parity check" action that I have currently running? Can I assume that if unRAID reports no error, the state of the array can safely be considered "perfect", so I don't need to follow up the rebuild with another parity check? Edited January 14, 2021 by madshi Quote Link to comment
JorgeB Posted January 14, 2021 Share Posted January 14, 2021 There is no error counter but it will report any errors after it's done, be it rebuild errors or sync errors (or both together). Quote Link to comment
madshi Posted January 14, 2021 Author Share Posted January 14, 2021 That's fantastic, thank you! So I would like to reduce my feature request to a very little change: Just add the "error" information to the dual parity rebuild statistics, so that the combined dual parity "rebuild+parity check" procedure looks the same as a normal parity check. This way everybody can intuitively understand that in addition to the disk rebuild, also a parity check is performed at the same time. Which is a *great* hidden feature of unRAID, IMHO, and a nice extra benefit of using dual parity. Quote Link to comment
itimpi Posted January 14, 2021 Share Posted January 14, 2021 31 minutes ago, madshi said: Can I assume that if unRAID reports no error, the state of the array can safely be considered "perfect", so I don't need to follow up the rebuild with another parity check What will not have been checked is that the disk being rebuilt can be read back without error. All you will know is that no write errors were encountered. You therefore might still want to carry out a (non-correcting) parity check as a confidence test. Quote Link to comment
madshi Posted January 14, 2021 Author Share Posted January 14, 2021 Ah yes, that does make sense, thanks. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.