[systemd-devel] Debugging systemd shutdown problem on openSuSE 12.3
Andrey Borzenkov
arvidjaar at gmail.com
Mon May 13 06:45:32 PDT 2013
On Mon, May 13, 2013 at 5:28 PM, Rainer Krienke <krienke at uni-koblenz.de> wrote:
> Hello,
>
> I i trouble on a openSuSE 12.3 system that is using autofs to mount
> users home directories and other shares. The system basically works fine.
>
> When I try to shut down or reboot the system sometimes this works, but
> most of the time the system terminates kdm and other processes (eg ssh
> access no longer works then) but it won't reboot or turn power off in
> case of shutdown.
>
Using openSUSE 12.3 as well.
How long did you wait? I have the same symptom on my home notebook, it
appears to hang on reboot but after some time (appr 1 - 2 minutes) it
reboots.
> I added
> systemd.log_level=debug systemd.log_target=kmsg log_buf_len=1M
> systemd.sysv_console=1
> to the kernel command line and created a debug.sh file
>
> #!/bin/sh
> mount -o remount,rw /
> dmesg > /shutdown-log.txt
> mount -o remount,ro /
>
> in /usr/lib/systemd/system-shutdown. Once I found a /shutdown-log.txt
> log file but it did not contain any real hint for me why rebooting seems
> to hang.
>
> The problem is that I do not see what is hanging. How can I get better
> debugging results from systemd to find out more? Is it possible to
> redirect all steps systemd makes when rebooting to a virtual tty? What
> else could I do to get more information of what happens during
> reboot/shutdown?
>
> Any ideas?
>
> You can download the shutdown-log.txt file that was created on a reboot
> that did not succeed here:
>
> http://userpages.uni-koblenz.de/~krienke/tmp/systemd/shutdown-log.txt
>
I briefly see "watchdog" message before it reboots too. Did not get
around to debug it further.
More information about the systemd-devel
mailing list