Bug 63134 - shutdown/reboot hangs on new arch install
Summary: shutdown/reboot hangs on new arch install
Status: RESOLVED WORKSFORME
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: high major
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords: love
Depends on:
Blocks:
 
Reported: 2013-04-04 20:53 UTC by Jake
Modified: 2014-06-25 09:54 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
What is printed to screen when the shutdown process hangs AND lines from journalctl that caught my eye (22.44 KB, text/plain)
2013-04-04 20:53 UTC, Jake
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jake 2013-04-04 20:53:51 UTC
Created attachment 77444 [details]
What is printed to screen when the shutdown process hangs AND lines from journalctl that caught my eye

First of all, I appologize if I go off track or if this isn't the right place to come. This is my first time doing one of these.

Some system information:

It is a uefi install using the kernels boot stub loader with an efibootmgr entry
root is in a logical volume on raid 5

The modules line in /etc/mkinitcpio.conf is:

MODULES="efivars dm_mod raid456 ext4"

The hooks line in /etc/mkinitcpio.conf is:

HOOKS="base udev autodetect modconf block filesystems keyboard fsck mdadm_udev lvm2 timestamp shutdown"

Symptoms:

When attempting to reboot or shutdown the system it hangs during the shutdown process and will not shut down.

Testing:

In 5 tries with systemctl reboot: failed on the 4th run (all other runs successful)
In 5 tries with systemctl shutdown: failed on the 4th and 5th runs

Last night I did...

[code]
boot with the debug options: 

systemd.log_level=debug systemd.log_target=kmsg log_buf_len=1M enforcing=0

    save the following script as /lib/systemd/system-shutdown/debug.sh and make it executable: 

#!/bin/sh
mount -o remount,rw /
dmesg > /shutdown-log.txt
mount -o remount,ro /

    reboot 

reference: http://freedesktop.org/wiki/Software/systemd/Debugging#Shutdown_Completes_Eventually
[/code]

 ...then went to bed. When I awoke the sytem was still hung up in the shutdown process. (That there be no shadow of a doubt it will not eventually complete).

After resetting the machine using the button on the front of the box I discoverd there was no shutdown-log.txt file on the sytem (the script was made executable).

Reproduce:

On a command line, type one of the folowing then press < enter > :

reboot
shutdown
shutdown -h now
shutdown -r now
poweroff

What does work:

halt (iirc)
sync && poweroff -f

Comment:

Attached are some data that may (or may not) be helpful. Again, this is my first time here. Please let me know if any other iformation is required.

The bottom line for me is I don't know what to test for or what command(s) to run to make that happen. I can only imagine that I should want to know what that next line is that would have been printed to the sceen when shutdown hangs, but how to get that data I don't know. Is there someone who can supply the command(s) to run to determine the problem's source? I'm unable to use my system properly and I need help. I have a thread on the arch forum and I ask on their irc chanel but I'm not getting the help I need and days are beginning to pass.

Thanks
Jake
Comment 1 Lennart Poettering 2014-06-25 09:54:35 UTC
I am pretty sure this got fixed in more recent systemd versions. If this problem persists, please reopen.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.