August 29, 20196 yr Using latest version, 6.7.2 Unraid was powered off when UPS died. I started it back up and it did its correction parity check. Finished with no errors. A day later the monthly parity check fires off. I cancel that because I did one less than 24 hours ago. Today I get my new UPS battery and I need to shut down my server to hook it back up on the ups. Upon stopping the array now I'm greeted with "Stopped. Unclean shutdown detected.". Looks like the parity check it did on startup didn't clear the startup flag so now it thinks it still was a unclean shut down? Quote Aug 26 22:53:33 husky emhttpd: unclean shutdown detected ... Aug 26 22:56:19 husky kernel: mdcmd (64): check correct Aug 26 22:56:19 husky kernel: md: recovery thread: check P ... Aug 26 22:56:19 husky kernel: md: using 1536k window, over a total of 7814026532 blocks. ... Aug 27 19:07:21 husky kernel: md: sync done. time=72662sec Aug 27 19:07:21 husky kernel: md: recovery thread: exit status: 0 then yesterday I abort the monthly check: Quote Aug 29 01:30:01 husky kernel: mdcmd (98): check Aug 29 01:30:01 husky kernel: md: recovery thread: check P ... Aug 29 01:30:01 husky kernel: md: using 1536k window, over a total of 7814026532 blocks. Aug 29 03:20:02 husky emhttpd: req (3): startState=STARTED&file=&csrf_token=***************&cmdNoCheck=Cancel Aug 29 03:20:02 husky kernel: mdcmd (99): nocheck Cancel Aug 29 03:20:02 husky kernel: md: recovery thread: exit status: -4 Thus the exit status from this looks like is wrongly being used to know if is clean or not... Edited August 29, 20196 yr by zoggy
August 29, 20196 yr Author went ahead and just powered down. booted up, and started array. no warning or anything about a unclean shutdown or requiring me to do parity check. so looks like it wast just a bug that it still said unclean shutdown due to aborting the parity check after the unclean one. Edited August 29, 20196 yr by zoggy
August 30, 20196 yr Community Expert 10 hours ago, zoggy said: so looks like it wast just a bug that it still said unclean shutdown due to aborting the parity check after the unclean one. Unraid doesn't keep track of parity checks, if it complained about an unclean shutdown most likely previous shutdown was unclean.
September 13, 20196 yr Author the first time yes, but the unclean status should have been wiped once the check completed. (which it did, it just doesnt look that way if you abort out another parity check)
September 13, 20196 yr Community Expert Unclean status is reset after every reboot, doesn't matter if you do or don't cancel the parity check, if an unclean shutdown is detect at boot it means the previous shutdown wasn't clean.
September 19, 20196 yr Author I'm not debating that. It was a unclean shutdown. And on boot it said so and it was correct. Then when it finished the parity check and brought the array online it cleared it. So far all good. Then a day later the monthly parity check started, I aborted it since the partiy was just checked a day prior. The UI at this point was showing that it was an unclean shutdown again -- This in my eyes is wrong. It was making me think that if I was to try and start the array again it would force me to do the parity check. However, I found that if I rebooted the box it 'fixed' the ui on thinking it was unclean as I could start the array just fine again.
September 19, 20196 yr Community Expert 3 hours ago, zoggy said: And on boot it said so and it was correct. Auto check after unclean shutdown is non correct. 3 hours ago, zoggy said: I aborted it since the partiy was just checked a day prior. The UI at this point was showing that it was an unclean shutdown again Aborting a check won't make the GUI show unclean shutdown, not sure what you mean, next time grab diags, they might show something.
September 21, 20196 yr Author On 9/19/2019 at 1:40 AM, johnnie.black said: Auto check after unclean shutdown is non correct. Aborting a check won't make the GUI show unclean shutdown, not sure what you mean, next time grab diags, they might show something. this past time i did grab diags (see post #2)
September 22, 20196 yr Community Expert 12 hours ago, zoggy said: this past time i did grab diags (see post #2) At that time there was an unclean shutdown detected: Aug 26 22:53:33 husky emhttpd: unclean shutdown detected Like mentioned this detection happens at boot time, it doesn't have anything to do with an aborted or not aborted parity check.
Archived
This topic is now archived and is closed to further replies.