1847253 Members
2930 Online
110263 Solutions
New Discussion

Server does not reboot

 
ClaudiaAmado
Advisor

Server does not reboot

When executing "shutdown -r -y 0" the server ( C8000 HP-UX 11i ) starts shutting down and then it kills my remote session. After a while the server is not up yet. I still cannot ping it. When I log into the server via the console "uptime" does not reflect any reboots or shutdown.
If I do reboot the the server goes down and comes up with on problems.
The /etc/shutdownlog does not show the messages of shutdown.
In the /etc/rc.log log file there are the following messages:

Unmount file systems
Output from "/sbin/rc0.d/K900localmount stop":
----------------------------
umountall: umount : has failed.
umountall: diagnostics from umount
umount: cannot unmount /usr : Device busy
umount: return error 1.
umountall: umount : has failed.
umountall: diagnostics from umount
umount: cannot unmount /var : Device busy
umount: return error 1.

Stopping all Volume Manager I/O Daemons
Output from "/sbin/rc0.d/K930vxvm-daemon-kill stop":
----------------------------

**************************************************
HP-UX run-level transition completed
Tue Nov 14 00:15:45 SAT 2006
**************************************************
I could not see any processes hung when shutting down the system.
Is it a bug?
Any ideas?
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Server does not reboot

Shalom,

From the console,

fuser -cuk /var

The shutdown should at least continue. There are open processes on /var and the system can't umount the filesystem.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
ClaudiaAmado
Advisor

Re: Server does not reboot

Thank you for your prompt answer.

The shutdown is executed by crontab, once a week.
May I execute "fuser -cku /var" before shutdown by crontab? Do you see any problem on that?
Claudia.
Coolmar
Esteemed Contributor

Re: Server does not reboot

Hi Claudia,

It seems that /var and /usr are not able to unmount. I would fuser -ku /var and same for /usr and it should shutdown. You would think a shutdown would force them to unmount anyway....strange. Anyway, as for putting fuser into a script, would depend on if this happens all the time when you try and shutdown. Perhaps this is a one-time thing....if it is happening all the time, you would be better off finding out what is hanging on so tightly that the system can't shutdown.

Coolmar
Esteemed Contributor

Re: Server does not reboot

Also .... is it possible that you have other file systems mounted within /var or /usr that are not being umounted beforehand?
ClaudiaAmado
Advisor

Re: Server does not reboot

From what I can see in the /etc/rc.log file only /var and /usr filesystems report the error message "Device busy"
Christian Tremblay
Trusted Contributor

Re: Server does not reboot

You should definitively check what process(es) is preventing the FS from unmounting.

fuser -c /usr
fuser -c /var

Will give you the PIDs of those processes.