Jump to content

[Resolved - bug reported] Scheduled parity check interrupted disk rebuild.


Recommended Posts

I believe this is a bug, but thought I'd first post here in General Support, for confirmation.

 

I had to replace a disk and I kicked off the disk rebuild yesterday. My server is suddenly having overheating issues like never before, so Parity Check Tuning has been pausing the disk rebuild to allow the drives to cool back down. Therefore, the rebuild has been going very slowly (it runs for about 30-45 minutes, the drive overheats, it pauses for 15-20 minutes. Lather. Rinse. Repeat.) When I went to bed last night, I snuck a quick peak and it was about 55% complete on the disk rebuild. (Yes, I'll be looking into the overheating as soon as I've got the disk rebuilt. In the meantime, I've got extra fans blowing, though I'm not sure it's helping a lot...)

 

When I woke up this morning and checked on the rebuild, I was quite shocked to find that it was in the high single-digit percentage (7-9% somewhere). It seems that my regularly scheduled monthly parity check kicked off at about 3:30 this morning.

 

The parity check history does not show anything from the data rebuild (TBH, I don't know if it should):

image.png.3dc65005a8564d833edfe91bb1a42988.png

 

And, more importantly, the drive is still showing emulated: image.png.7433a00901dd4e7579127cf87fb76e7d.png

I'd imagine that whatever happened will show up here:

nas-diagnostics-20210701-0749.zip

 

If this is indeed a bug, is it possible to just move this to the Bug Reports section? If not, I'll retype it all. :/

Edited by FreeMan
Link to comment

Sounds like a potential bug if the parity check is started while a rebuild is in progress :(    The Parity Check Tuning Plugin does nothing that you could not simulate manually by using the Pause/Resume buttons on the Main tab at appropriate times so as such it should not be the plugin that causes this issue although the plugin might make it more likely by extending the time for the rebuild to complete.   I can see the plugin getting a little confused if a rebuild suddenly changes to a parity check mid-flight but I think it should handle this but i need to check this is correct.

 

I will have to see if I can recreate this exact sequence of events and if necessary raise an appropriate bug report to get clarity on what is expected behaviour.

 

You do not normally get an entry added to the Parity History for a rebuild (or clear).   If it is thought it would be of use I could enhance the Parity Check Tuning plugin to add such entries.

  • Like 1
Link to comment

Thanks,@itimpi.

Not trying to pick on you with these PCT reports lately, I promise! I've discovered that I'm pretty good at finding bugs in other's code, not so good at finding them in my own. [emoji53]

Frankly, if it weren't for PCT automatically pausing the rebuild, I may well have cooked a drive by now, so I don't really mind all that much. I have no idea why it's running so hot after installing this one additional drive. Fixing that is my next highest priority.

Sent from my moto g(7) using Tapatalk

Link to comment

it adds nothing to the discussion, but it's quite sad:

1904105961_2021-07-0109_47_43.thumb.png.0c3b6c926b1184a54438150d9ba9ec3f.png

 

(Wow, sorry that's so BIG!)

 

Those are the Pushover notices from when it reset. I was wrong in my initial report - the Parity Check is scheduled for 00:30, not 03:30 on the first of the month.

 

There is a minor issue of the extra "%" sign in there, but I think this is the first time I've ever noticed, so it's definitely a minor issue.

 

 

Link to comment
26 minutes ago, FreeMan said:

There is a minor issue of the extra "%" sign in there, but I think this is the first time I've ever noticed, so it's definitely a minor issue.

That IS a PCT bug but as you say cosmetic.   Still it will get fixed :) 

Happy to have any reports on PCT issues as that is the way issues get identified and fixed.    What I am trying to avoid is simple dismissing of a problem report if the PCT plugin is installed when the actual issue is probably something else.

  • Like 1
Link to comment

Did a quick test without the plugin installed, if a rebuild is running at the time scheduled for a parity check it will attempt to start one but since the rebuild is already running nothing happens, on the other hand if the rebuild is paused, I did it manually but it would be the same if paused by the plugin, then it re-starts the current rebuild from the beginning, so it's an Unraid bug, it's a minor one and one that won't affect many users but it might still be worth reporting.

  • Like 1
Link to comment
Did a quick test without the plugin installed, if a rebuild is running at the time scheduled for a parity check it will attempt to start one but since the rebuild is already running nothing happens, on the other hand if the rebuild is paused, I did it manually but it would be the same if paused by the plugin, then it re-starts the current rebuild from the beginning, so it's an Unraid bug, it's a minor one and one that won't affect many users but it might still be worth reporting.
Unless this can be moved to the bug thread, I'll post an issue later today.

Thanks for duplicating it.

Sent from my moto g(7) using Tapatalk

Link to comment
5 hours ago, itimpi said:

If it is thought it would be of use I could enhance the Parity Check Tuning plugin to add such entries.

I think it would be useful if disk rebuilds were logged in the Parity Check history. I think it would be even better if they could be kept in a separate category, but that's probably not possible, so a simple entry there would be fantastic.

 

Also, bug report filed, so I'm marking this one "resolved", since it seems nothing else can be done from this end.

  • Like 1
Link to comment
  • FreeMan changed the title to [Resolved - bug reported] Scheduled parity check interrupted disk rebuild.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...