How to debug system reboot/shutdown procedure?



Hi all.

After ~10 years of using Linux on the "desktop", I have decided to give a chance
to Solaris 10 on my new nforce4/AMD-opteron based opteron workstation. Just for
the sake of change. BTW I'm using Solaris on couple of company servers (U-sparc
and x86_64) without a problem.

I have SYSV init related problems with Solaris 10:

When I shutdown system with "init 0" or shutdown -g0 -i5 -y, init system often
fails to power off (or reboot if I reboot it) machine, leaving me with half of
services running and console login. Then, if I type root passwd, log in, and
give the command "who -r", it shows me that I am in runlevel 5 (or 6 if I wanted
to reboot). After that, I can type the same command again, shutdown command
prints usual warning and - nothing happens - I'm still in the console, logged as
root, able to type commands. Only way to shut down is to change runlevel to
something else (reboot if it was shutdown initialy, single-user ...) and then
repeat initial shutdown/reboot command - after that, system will (usually) do
what I told it to do in the first place.

So, where to put 'set -x' or 'exec >> /tmplog 2>&1' ? I have read /etc/rc[0,6]
and it doesn't look like there is something for debugging there. There is no
trace of some error in /var/adm/messages BTW ... nothing. How about 'truss -f -o
bla init 0' ? Maybe this is too much. :-)

I have this problem on this machine (x86), and on one Ultra SPARC machine in my
company (but not on other 4 Solaris 10 machines where I have root account). So
it looks like bug is not arch-dependent.

Has anyone some clue, hint, sugestion? Thx ...


--
Man is something that shall be overcome.
-- Friedrich Nietzsche
.



Relevant Pages

  • SUMMARY: Lost access to Solaris 10 11/06 after renaming /usr/lib/libxml2.so.2
    ... I had lost the ability to log in as root or any ... Solaris supplied /usr/lib/libxml2.so file. ... Most of the suggestions told me to reboot from Solaris CD/DVD media ... Since I use Solaris Volume Manager to mirror the root filesystem, ...
    (SunManagers)
  • Re: ttya console speed limit
    ... >>Solaris to print the first three or four lines of text that always ... The open boot prom's ttya-mode parameter. ... Log in as root on the console, ... > Reboot and everything should work at the new speed. ...
    (comp.sys.sun.admin)
  • Re: how to shut down or reboot system without being root?
    ... these systems, is to log in as root, and reboot. ... You could use RBAC on your Solaris 9 box, ... need to go with the sudo method on the other. ...
    (comp.unix.solaris)
  • how to shut down or reboot system without being root?
    ... I have several versions of Solaris. ... these systems, is to log in as root, and reboot. ... How do you reboot or shut down these systems without logging in as ...
    (comp.unix.solaris)
  • Re: Why I hate this so called OS
    ... Each time I trust Solaris to do autoinstall, I wind up with a root ... Usually I create a properly sized slice on a second disk and transfer OS ... If your in to managing many servers and services easy, ...
    (comp.unix.solaris)