Hello
I did a fresh install of Mandrake Linux 10.0 on my small home server two weeks ago. Everything used to work fine over the next days. ACPI and APC both are enabled in BIOS - no problems with shuting down or powering off the server (shutdown -r now, poweroff, halt, reboot).
Few days later I did three things:
1. uninstall of linuxconf
2. install & configure to work apcupsd (UPS management)
3. install of the latest stable Webmin (and went over all of its resources)
UPS used to shut down system correctly.
And finally yesterday I found out that my server cannot reboot nor power off. After "shutdown -r now" (also after "reboot" or "poweroff" or "halt")system is closing several processes and then hangs on this:
Code:
INIT: switching to run level: 6
INIT: sending processes the TERM signal
(closing some servers and services)
Running killall
INIT: no more processes left in this run level
It is still possible to use my keyboard at this stage so that I type "reboot" and only then the system reboots.
Typing "poweroff" at this stage results in... nothing.
After this "forced reboot" system detects that "/dev/hda5 was not cleanly unmounted, check forced".
Here are a few ideas about some other things I did before & after the problem occured:
- before: I had used the "acpi=force" parameter in lilo and (now its removed)
- after: I checked all the combinations of ACPI ON/OFF and APC ON/OFF in bios (without any results)
- after: I removed my APC UPS usb cable from the socket (no results)
- after: I commented (#) all the lines concerning my UPS from /etc/inittab and from /etc/rc.d/init.d/halt (no results)
- when I hit CTRL-ALT-DEL system hangs in the same place, but with keyboard locked (I cannot type)
- removing power plug causes UPS shutting down the system and hanging in the same place
- I have seen some "umount: /initrd: device is busy" line somewhere during checking hda5 procedure (not sure if it means anything)
- I removed all the possible services from boot procedure (alsa, apcupsd, atd, crond, cvs, devfsd, dhcpd, dm, fam, harddrake, hotplug, hylafax, keytable, kheader, mysql, named, netfs, netplugd, network, nfslock, numlock, partmon, postfix, random, rawdevices, rsync, shorewall, smb, sound, squid, sshd, sshd-xinted, switchprofile, syslog, vdomaincheck, vncserver, webmin, xfs) except: (iptables, routed, xinetd) - but no results
- I booted in fail-safe mode (no results)
Here's my inittab:
Code:
id:3:initdefault:
# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit
l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6
# Hylafax
m01:2345:respawn:/usr/local/sbin/faxgetty ttyS1
# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
# When our UPS tells us power has failed, assume we have a few minutes
# of power left. Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"
# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"
# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6