You are not logged in.
I was in the process of switching over to systemd per the guide:
https://wiki.archlinux.org/index.php/Systemd
Prior to attempting the switch over, reboot and shutdown worked fine. I did a sanity check reboot before modifying the kernel command line to use systemd for the init. And I noticed that reboot did not happen. It simply hung at "sd 2:0:0:0 Syncronizing SCSI Cache", forever (I let it sit for 30minutes).
Per the troubleshooting guide, I modified the kernel command line to use serial debugger:
http://freedesktop.org/wiki/Software/sy … al_Console
I did not see much of anything useful, and reboot/shutdown halts one line further than the above: "sd 2:0:0:0 stopping disk".
I also added the kernel command line "debug" but I still don't see anything good.
I can hear the harddisk spindown, but it just hangs forever.
The only way I was able to get a reboot to occur was using:
#echo 1 > /proc/sys/kernel/sysrq
#echo b > /proc/sysrq-trigger
I'm pretty well out of ideas to try.
Any ideas? Help?
Thanks,
Jeremy
Last edited by jdkdonk (2013-01-17 21:47:17)
Offline
By forever, do you mean you waited quite a while, or it was a minute and that was long enough! I ask because there have been a couple times where my system just decided to hang for about two minutes on shutdown. Thankfully it hasn't happened for a long time, but it was annoying, even only happening a couple times.
Did you also try the debug shell?
You may want to try the "Sutdown completes eventually" part on that page as well, on the off change that it might actually be getting that far...
Offline
I gave it 30 minutes while I went to a meeting, but It never finished. Just sitting in the same spot.
Not sure what you mean by "debug shell". I did add "debug" to the kernel command line when I booted, but I didn't get additional helpful messages.
Maybe you are referring to adding the file: /lib/systemd/system-shutdown/debug.sh. I did not try this, because my system never shut down.
I did try the section above that one with these commands:
sync && reboot -f
sync && poweroff -f
But these failed to work as well.
I'll try the debug.sh section anyway when I get back to work on Tuesday.
Thanks,
Jeremy
Offline
Yeah, I see no reason not to try the debug.sh as you apparently do not know how far your system is actually getting in the shutdown process. The page you referenced also mentions that the debug shell is available in both early boot and late shutdown, so that might be a possibility as well.
I think what you should do absolutely first though, is enable persistent logging and then try again. Then you will have logs at least until the debug.sh would be useful. Then you can determine whether or not to use it.
I think that until you gather more information, it is going to be next to impossible to determine what is going on here.
Oh yeah, one more thing, there was a systemd update (194-4) that was pushed to core just yesterday(?), I think... recently anyways. Maybe that might bring some magic to the situation.
Offline
Unfortunately, I already have the latest systemd update.
I'm not convinced it is a systemd issue anyway, as it won't shutdown in using legacy init-scripts boot either.
Also, "poweroff -f" fails to shutdown and according to this page:
http://freedesktop.org/wiki/Software/sy … n_Problems
That means its a kernel bug. Bug where do I go to debug this? I got no more ideas.
I think I'm looking at having to do a fresh install.
Offline
Oh, fyi, debug shell and and the "shutdown-log" did not yield any clues that I can see.
Offline
I did try the section above that one with these commands:
sync && reboot -f
sync && poweroff -fBut these failed to work as well.
I had the same problem. Try:
shutdown -P now
shutdown -r now
Works for me.
Offline
FYI,
This appears to be an Arch specific issue.
I installed a new base system on a new hard drive, and still have the same issue. I installed Linux Mint (ick) on the same drive for a sanity check and it shuts down immediately. I know this doesn't have the same kernel version etc, but it works no problem.
I'm all out of ideas on this.
Offline
my acer netbook shuts down fine, but on reboot, it dumps everything, screen goes black but the power button is still lit and it never works.
I'm sadly just in the habit of shutting down and restarting. subscribed.
Offline
some times I have same problem on poweroff command
I view in journal:
dic 31 23:06:41 arch64 systemd[1]: Stopped D-Bus System Message Bus.
dic 31 23:06:41 arch64 systemd[1]: systemd-logind.service: main process exited, code=exited,
status=1/FAILURE
dic 31 23:06:41 arch64 systemd[1]: Stopped Login Service.
dic 31 23:06:41 arch64 systemd[1]: Unit systemd-logind.service entered failed state
thanks
Offline
oddly reboot is working after my last -Syu
Don't know why
Offline
yesterday... in this case... with:
poweroff -f
it stop system OK
Last edited by sacarde (2013-01-02 08:15:19)
Offline
Finally figured out the problem here, just lucked into the solution while attempting to fix another problem with my sound card. This turns out to be a kernel bug in the i82975x_edac kernel driver. Blacklisting it fixes my sound card, and my reboot problems.
Thanks to Zmann for the fix:
Offline