August 29, 20187 yr I recently swapped my setup to new hardware. Now, everytime I stop the array I see a message at the bottom "Stopped. Unclean shutdown detected." A parity check runs after starting the array. I'm not sure what the problem is. Any suggestions? Diagnostics attached. unraid-diagnostics-20180829-0844.zip
August 29, 20187 yr Can you put Fix Common Problems into troubleshooting mode and then shutdown, and upload the files which it suggests.
August 29, 20187 yr Author Ok, turned on troubleshooting mode, then stopped and started array. Here's a new diagnostic file and the syslog txt file. FCPsyslog_tail.txt unraid-diagnostics-20180829-0910.zip
August 29, 20187 yr 8 minutes ago, aberg83 said: then stopped and started array. You need to shutdown or restart.
August 29, 20187 yr Author Oops, here they are after a reboot. unraid-diagnostics-20180829-0925.zip syslog.zip
August 29, 20187 yr Unsure. It started shutting down, then half way through it decided that files were stuck open on the cache drive and disk 4, so it itemized the processes, then the system carried on, unmounted the remaining drives and shut down like nothing happened. I have seen this on occasion on my own system where it believes that the shutdown was unclean even though it was clean (I suspect a race condition somewhere). When this happens, I hit Fix Common Problems and see what it says. If it doesn't think that an unclean shutdown happened (the GUI and FCP check for unclean shutdowns differently), then I just cancel the parity check. (Assuming of course that you haven't hit ignore on that particular warning)
August 29, 20187 yr Author FCP doesn't flag this as an unclean shutdown and I have not set it to ignore that warning. On occasion would be one thing, but this is happening on every reboot. Wish there was something I could do.
August 29, 20187 yr Community Expert 20 minutes ago, aberg83 said: this is happening on every reboot It has to be able to write the started/stopped status to config/super.dat on flash. If that doesn't happen for some reason you can get unclean. Maybe put your flash in PC and checkdisk though I didn't see anything in syslog. Also check timestamp of super.dat to see if it corresponds to the shutdown time.
April 21, 20215 yr hi Guys Since the last Unraid Update to 6.9.1 I got the message "Unclean shutdown detected" after every restart. This means that a parity check is started every day, but this takes so long that it is never finished. The server is shut down again via a script before the parity check is ended. I activated the syslog according to the instructions and shut down the server (this time even via the Unraid button in the GUI, not via the script). syslog-192.168.187.40.zip unraid-diagnostics-20210421-2004.zip
April 21, 20215 yr Community Expert When Unraid forces a shutdown it saves the diags in the logs folder of your flash drive, attach latest ones of those here.
April 21, 20215 yr Ok here is the log from the flash drive. unraid-diagnostics-20210421-2004 Flash Log.zip
April 22, 20215 yr Community Expert There's no shutdown logged on those, they appear to be the same ones you posted earlier.
April 22, 20215 yr I have now shut down the server with the shutdown script. After starting I exported the log from the flash drive. unraid-diagnostics-20210422-1905.zip
April 23, 20215 yr Community Expert Current set shutdown timeout is not long enough, stop the array manually and time how long it takes for the array to stop, add a few seconds and set that as your VM shutdown timeout, then add 30 seconds or so to that value and set that as the general Unraid timeout.
April 23, 20215 yr Thanks for your help. I have now measured it. The array takes 1m 45s to stop. I will revise the script and add the new timeouts.
April 25, 20215 yr Is there a topic in which the shutdown is described. I couldn't find anything. Unfortunately, my scripting skills are very modest. Do the VMs actually have to be terminated before the array? These partially access the array. Most of them, however, run on the cache drives. At the moment I have this script installed. #! / bin / bash echo running powerdown / usr / local / sbin / powerdown
April 25, 20215 yr if you're having problems with the script, the one thing is that you've got spaces within that path that shouldn't be there It should be #!/bin/bash echo running powerdown /usr/local/sbin/powerdown
April 26, 20215 yr No the Script works fine. Sorry the spaces are only a copy paste failure to the post. The problem is, the script terminates the server before the array has shut down correctly. if I understood JorgeB correctly I had to do it like this: 1. End the array 2. Add timeout 3. Quit the server in general I couldn't figure out how to end the array with a command first and the command for the timeout.
October 28, 20214 yr im hoping someone can help me. my server shuts down the arrays and vm, etc. when i run the log it says there is an unclean shutdown error. im not sure what this is and im new so i dont really know how to fix it. hoping this is an easy solution. it happens intermittently, so say every few weeks or so, then when i start the array back up the parity check starts. i have attached the syslog i grabbed before starting the array back up. any help is much appreciated. 2021-10-27 syslog-unclean shutdown.txt
October 28, 20214 yr Community Expert 2 hours ago, sirhotness said: i have attached the syslog i grabbed before starting the array back up. That doesn't help since it starts over after any reboot. On 4/21/2021 at 7:18 PM, JorgeB said: When Unraid forces a shutdown it saves the diags in the logs folder of your flash drive, attach latest ones of those here.
October 28, 20214 yr 12 hours ago, JorgeB said: When Unraid forces a shutdown it saves the diags in the logs folder of your flash drive, attach latest ones of those here. ok i just realized i dont have the syslog enabled. i will have to enable this and then the next time this happens grab the diags you're talking about from the log folder on the flash drive. im thinking it might be better to use my old server since its still running to to dump the syslog that you need instead of using the flash drive in order to save wear and tear on the flash drive. this problem doesnt happen all the time, so would you also suggest the same method i just described? i have changed the timeouts as you described earlier in this post and im hoping that was the issue, but just incase i'd rather enable the syslog server.
October 29, 20214 yr Community Expert 11 hours ago, sirhotness said: ok i just realized i dont have the syslog enabled. It's not the syslog server, it auto generates the logs if it can't shutdown cleanly, they are saved in the flash drive logs folder.
October 29, 20214 yr 4 hours ago, JorgeB said: It's not the syslog server, it auto generates the logs if it can't shutdown cleanly, they are saved in the flash drive logs folder. ok let me check again because i didnt see a logs folder anywhere. just bare with me because im new so im still figuring things out
October 30, 20214 yr 21 hours ago, JorgeB said: It's not the syslog server, it auto generates the logs if it can't shutdown cleanly, they are saved in the flash drive logs folder. is this the log you need? syslog.txt
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.