Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New install hangs during shutdown. [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
52midnight
Apprentice
Apprentice


Joined: 20 Mar 2012
Posts: 176
Location: Brisbane AU

PostPosted: Tue Mar 19, 2013 11:05 pm    Post subject: New install hangs during shutdown. [SOLVED] Reply with quote

During the past fortnight I've done about a dozen new installations based on stage3-i686-20121213.tar.bz2 and a 3.7.9 kernel in order to learn about the process. A common feature of all of them is that they hang during shutdown at the point of remounting the root filesystem:
Code:
* Remounting all remaining filesystems read-only
  * Remounting / read-only

This happens about 90% of the time; occasionally they will drop through to reboot or shutdown, but I haven't been able to correlate this with any past actions or stages of installation.

Has anyone else experienced this; if so, would you be so kind as to post your remedy? Otherwise, is there a reason why my own system does this?


Last edited by 52midnight on Wed Mar 20, 2013 2:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
aim nano
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jan 2006
Posts: 131
Location: Jackson, MS

PostPosted: Tue Mar 19, 2013 11:27 pm    Post subject: Reply with quote

How are you shutting down?

As root or with sudo, I always do:

Code:
shutdown -h 0


to reboot:

Code:
shutdown -r 0

_________________
Unanswered posts need love too.
--
~ # emerge -pv gentoo-love
Back to top
View user's profile Send private message
52midnight
Apprentice
Apprentice


Joined: 20 Mar 2012
Posts: 176
Location: Brisbane AU

PostPosted: Tue Mar 19, 2013 11:29 pm    Post subject: Reply with quote

I use 'halt' or reboot' as root.
Back to top
View user's profile Send private message
aim nano
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jan 2006
Posts: 131
Location: Jackson, MS

PostPosted: Tue Mar 19, 2013 11:47 pm    Post subject: Reply with quote

Try "shutdown -h 0" and "poweroff" and see if you get the same results...I'm just curious. They're all supposed to do the same thing, but if there is any difference it may give us some clues.
_________________
Unanswered posts need love too.
--
~ # emerge -pv gentoo-love
Back to top
View user's profile Send private message
52midnight
Apprentice
Apprentice


Joined: 20 Mar 2012
Posts: 176
Location: Brisbane AU

PostPosted: Tue Mar 19, 2013 11:55 pm    Post subject: Reply with quote

I tried both immediately after login and the system behaved correctly, dropping through to reboot or powerdown. However, this is atypical, since no processes were started. My feeling is that something is still running that prevents the process list from clearing (or whatever).

I was hoping there might be a "shutdown log" or something that could be examined. If I don't get a solution I'll try your suggestions over the next few days and see what happens.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Wed Mar 20, 2013 1:10 pm    Post subject: Reply with quote

52midnight wrote:
I tried both immediately after login and the system behaved correctly, dropping through to reboot or powerdown. However, this is atypical, since no processes were started. My feeling is that something is still running that prevents the process list from clearing (or whatever).

52midnight ... any process *should* be killed by 'killprocs' which is set to run in the runlevel shutdown, it'll first send a 'kill -15' (TERM) and then a 'kill -9' (SIGKILL). If the kernel itself is trying to write to disk (ie perform a 'sync') then the above signal will have no effect, so my guess is the issue lies there.

52midnight wrote:
I was hoping there might be a "shutdown log" or something that could be examined. If I don't get a solution I'll try your suggestions over the next few days and see what happens.

You can have openrc create a log by setting rc_logger="YES" in /etc/rc.conf ... but this probably won't provide any more information than what is provided via the console. Have you looked in /var/log/messages for some possible clue?

best ... khay
Back to top
View user's profile Send private message
52midnight
Apprentice
Apprentice


Joined: 20 Mar 2012
Posts: 176
Location: Brisbane AU

PostPosted: Wed Mar 20, 2013 2:00 pm    Post subject: Reply with quote

Think I've found it. In reference to my other post USB devices ignored by new installation. [WORKAROUND]:

https://forums.gentoo.org/viewtopic-t-954552.html

there's problem with recent kernels in which the USB ehci module fails on some machines. This apparently leaves orphaned/zombie processes in the system that can't be killed, hence the hang. Changing from a 3.7.9 back to a 3.5.7 kernel did the trick.

Thanks for your efforts, khayyam.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum