Find the answer to your Linux question:
Results 1 to 8 of 8
Hi. I issuesed below in order to shutdown 2.6 linux system. /sbin/shutdown -c Cancelling current shutdown if exists" /sbin/shutdown -r now I don't know why would shutdown hang for about ...
  1. #1
    Just Joined!
    Join Date
    Jul 2008
    Posts
    7

    shutdown is taking about 15 minutes "shutdown -r now" invoked on 2.6 kernel

    Hi.
    I issuesed below in order to shutdown 2.6 linux system.
    /sbin/shutdown -c Cancelling current shutdown if exists"
    /sbin/shutdown -r now

    I don't know why would shutdown hang for about 15mins and then broadcast message came up and started shutting down.

    Thanks

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,086
    Welcome to the forums!

    I usually issue one of the following two commands for shutdown (halt) and shutdown (reboot):

    Code:
    shutdown -h now
    shutdown -r now
    ...but neither of them ever hangs the system.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  3. #3
    Just Joined!
    Join Date
    Jul 2008
    Posts
    7
    Hi OZ,
    We even don't see this issue all the time. But sometime I find it hangs for about 15mins, and there is no logs written to /var/log/syslog. Not sure what else system log I could look at.

    Thanks

  4. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,086
    Maybe you could run top to see what processes are running, and then kill them one at a time, and then issue the shutdown command after each kill to see which process is hanging things up.

    I really don't know of anything else to try.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  5. #5
    Just Joined!
    Join Date
    Jul 2008
    Posts
    7
    Hey OZ,
    Could you assist me how do I debug this issue. I want to know which processes are hung because of which shutdown -r now is hanging while shutting down. If I run top / ps command , I think shutdown will kill them. Any other good suggestion to track down which process are hung. Or How do I know "by strace on init/ shutdown pid" so that I can track which process shutdown/init is waiting on before shutting down the system

    Need urgent reply
    Thanks

  6. #6
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    I think it may be related to APM and/or ACPI, you could modify your /boot/grub/menu.lst file to disable them.
    just add this code to the kernel line of the above mentioned file:
    Code:
    acpi=off noapm noapic
    it should look something like this, but yours will be different.
    Code:
    title Gentoo Linux
            root (hd0,0)
            kernel /boot/kernel-2.6.24-gentoo-r8 real_root=/dev/hda8 acpi=off noapm noapic
    If it doesn't help, then you can change the file back and try something else.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  7. #7
    Just Joined!
    Join Date
    Jul 2008
    Posts
    7
    Thanks
    uname -a
    Linux Node1 2.6.10-telco-1.45-mckinley-smp #1 SMP Tue Apr 1 23:16:59 UTC 2008 ia64 GNU/Linux
    {MM-1}root@Node1:~# cat /boot/grub/menu.lst
    cat: /boot/grub/menu.lst: No such file or directory

    I don't have this file with me.
    Is there any other configuration file for editing the same

  8. #8
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    Uhhh, are you using Grub as a boot loader? Perhaps Lilo?
    You could try /boot/grub/grub.conf
    Make sure /boot is mounted or you will never find it.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •