The server does not shoutdown

I have a NCR 4300 server with Unix and i have the problem with the reboot and the shutdown y think one proccess is the problem but i don�t now which one is? when i write "ps -A" i detect the idleproc with value of 9550:00. Which command can i use for verify my problem.

Thanks
Carlos Rodr�guez.

how are you trying to shut down the system? what commands?
shutdown -h now?
or init 0?

uadmin 2 0
or
uadmin 0 2

I can't remember the right one. One is failing the other one not :slight_smile:

Hope you have this command for your OS, Sun at least works ok.

Regs David

shutdown -i0 -g0 -y in the schedule task every day, and i init 0 in then prompt, and does not work, i think one proccess is bloqued.

thaks

Did this ever work? When did it stop working? What is the date on /etc/inittab? What lines do you get from the command:
grep ":0:" /etc/inittab

Also you seem to be able to run commands when it blocks. Run "ps -ef" and "who -r" and post the results of both commands.

Result:
r0:0:wait:/sbin/rc0 off 1> /dev/sysmsg 2>&1 </dev/console
sd:0:wait:/sbin/chk_shutdown 0 >/dev/sysmsg 2>&1 </dev/console
c0:0:respawn:/sbin/vtgetty vt00 9600NP

Thanks

who -r
. run-level 6 Dec 5 05:02 6 0 3

UID PID PPID C STIME TTY TIME COMD
root 0 0 0 Dec 04 ? 0:01 sched
root 1 0 0 Dec 04 ? 0:07 /sbin/init
root 2 0 0 Dec 04 ? 10976:48 idleproc00
root 3 0 0 Dec 04 ? 10978:14 idleproc01
root 4 0 0 Dec 04 ? 3:48 pageout
root 5 0 0 Dec 04 ? 3:29 fsflush
root 6 0 0 Dec 04 ? 0:00 aiodaemon
root 7 0 0 Dec 04 ? 0:00 aiodaemon
root 8 0 0 Dec 04 ? 0:00 aiodaemon
root 9 0 0 Dec 04 ? 0:00 aiodaemon
root 10 0 0 Dec 04 ? 0:00 aiodaemon
root 11 0 0 Dec 04 ? 0:01 kmdaemon
root 1107 1 0 Dec 04 ? 0:00 /usr/lib/netsvc/rusers/rpc.rusersd
root 267 266 0 Dec 04 ? 0:00 /etc/smi/bin/smisl_d
avalos 22063 22061 0 09:45:55 pts/5 0:00 -sh
root 211 1 0 Dec 04 ? 0:00 gplogger /etc/.osm
root 1336 1 0 Dec 04 ? 0:00 /usr/lib/nfs/nfsd -a 4
root 725 531 1 Dec 04 ? 25:04 /etc/smi/bin/basebrd
root 29344 29331 0 12:11:39 pts/19 0:00 ps -ef
root 15212 27184 0 07:31:00 ? 0:00 in.telnetd
root 15562 27184 0 07:38:27 ? 0:00 in.telnetd
root 1340 1 0 Dec 04 ? 0:00 /usr/lib/nfs/biod 4
root 1141 1 0 Dec 04 ? 0:00 /usr/sbin/cs
root 1100 1 0 Dec 04 ? 0:00 /usr/sbin/rpcbind
root 531 1 0 Dec 04 ? 0:00 /etc/smi/bin/smibasebd_d /etc/smi/bin/basebrd Baseboard Baseboard Component Ins
root 1335 1 0 Dec 04 ? 0:00 /usr/lib/nfs/biod 4
root 1167 1 0 Dec 04 ? 0:00 /usr/lib/X11/xdaemon
root 1143 1 0 Dec 04 ? 0:06 /usr/sbin/batchd
root 278 1 0 Dec 04 ? 0:00 /etc/smi/bin/smisci_d /etc/smi/bin/smidisk System Disks System Disks Instrument
root 287 1 0 Dec 04 ? 0:00 /etc/smi/bin/smisci_d /etc/smi/bin/smiproc System Processors System Processors
root 266 1 0 Dec 04 ? 0:00 gplogger -a -o -l 100 -d other=3 /var/smi/smidmi.log
root 337 267 0 Dec 04 ? 0:19 /etc/smi/bin/smisl_d
root 1360 1 0 Dec 04 ? 0:00 /usr/lib/nfs/statd
root 273 1 0 Dec 04 ? 0:00 /etc/smi/bin/smisci_d /etc/smi/bin/smiserv Server Server Component Instrumentat
root 726 1 0 Dec 04 ? 0:00 /etc/smi/bin/eventmon43
root 764 1 0 Dec 04 ? 0:00 /etc/llc2init
root 8289 1 0 Dec 08 ? 0:00 /usr/sbin/strerr -m 3000
root 871 273 0 Dec 04 ? 11:06 /etc/smi/bin/smiserv -c 5
root 1125 1 0 Dec 04 ? 0:20 /usr/sbin/cron
root 1109 1 0 Dec 04 ? 0:00 /usr/lib/netsvc/spray/rpc.sprayd
root 1339 1 0 Dec 04 ? 0:00 /usr/lib/nfs/biod 4
root 1039 725 0 Dec 04 ? 0:03 /etc/smi/bin/basebrd
dolores 16585 16581 0 07:55:40 pts/40 0:13 runcobol /b/OINFO/informacion.cob -k
root 1105 1 0 Dec 04 ? 0:00 /usr/lib/netsvc/rwall/rpc.rwalld
root 1176 1 0 Dec 04 ? 0:00 /usr/bin/PEListener
root 3153 278 0 Dec 04 ? 11:06 /etc/smi/bin/smidisk -c 2
root 1193 1 0 Dec 04 ? 0:02 /etc/dacmon -c ../../dev/conslog
root 3209 287 0 Dec 04 ? 11:03 /etc/smi/bin/smiproc -c 3
root 1276 1 0 Dec 04 ? 0:01 /usr/lib/mousemgr
root 1503 1 0 Dec 04 vt01 1:19 /usr/bin/X11/X386 vt01 -lines 480 -virtres 640 480 :0 -auth /usr/lib/X11/xdm/au
veronica 22502 22461 0 09:53:17 pts/42 0:00 fmli -i /clesa/menus/init -a /clesa/menus/Aliases -c /clesa/menus/Cmdo /clesa/m
root 1349 1 0 Dec 04 ? 0:00 /usr/lib/nfs/mountd
root 1356 1336 0 Dec 04 ? 0:00 /usr/lib/nfs/nfsd -a 4
root 1337 1 0 Dec 04 ? 0:00 /usr/lib/nfs/biod 4
root 1352 1336 0 Dec 04 ? 0:00 /usr/lib/nfs/nfsd -a 4
root 27184 1 0 Dec 09 ? 0:14 /usr/sbin/inetd
root 1355 1336 0 Dec 04 ? 0:00 /usr/lib/nfs/nfsd -a 4
root 1378 1 0 Dec 04 ? 0:00 /usr/lib/nfs/lockd.cots
root 27191 1 0 Dec 09 ? 0:00 /usr/sbin/in.aasd
root 23297 27184 0 10:08:20 ? 0:00 in.telnetd
root 22030 27184 0 09:45:30 ? 0:00 in.telnetd
root 18044 27184 0 08:17:31 ? 0:00 in.telnetd
root 15528 27184 0 07:38:02 ? 0:00 in.telnetd
root 27641 27184 0 11:30:53 ? 0:00 in.telnetd
root 14920 27184 0 07:18:02 ? 0:00 in.telnetd
root 16048 27184 0 07:46:20 ? 0:00 in.telnetd
root 22061 27184 0 09:45:54 ? 0:00 in.telnetd
root 15979 27184 0 07:45:39 ? 0:00 in.telnetd
root 7133 5776 0 Dec 10 ? 0:01 lpNet
root 28985 27184 0 12:01:10 ? 0:00 in.telnetd
root 9530 5776 0 Dec 10 ? 0:02 lpNet
root 687 5776 0 Dec 11 ? 0:00 lpNet
root 5776 5770 0 Dec 10 ? 0:00 lpNet
root 21200 27184 0 09:22:44 ? 0:00 in.telnetd
root 15817 27184 0 07:42:51 ? 0:00 in.telnetd
root 27181 1 0 Dec 09 ? 0:02 /usr/sbin/in.snmpd
root 27824 27184 0 11:35:41 ? 0:00 in.telnetd
root 5199 5776 0 14:12:22 ? 0:00 lpNet
root 29331 28987 0 12:11:11 pts/19 0:00 ksh
root 28588 27184 0 11:49:02 ? 0:00 in.telnetd
root 5770 1 0 Dec 10 ? 0:03 /usr/lib/lp/lpsched
root 24018 27184 0 10:25:26 ? 0:00 in.telnetd
virginia 27669 27643 0 11:31:17 pts/4 0:00 fmli -i /clesa/menus/init -a /clesa/menus/Aliases -c /clesa/menus/Cmdo /clesa/m
root 18290 27184 0 08:24:15 ? 0:00 in.telnetd
natalia 29229 29225 0 12:07:15 pts/9 0:01 runcobol /b/OINFO/informacion.cob -k
fatima 28610 16034 12 11:49:14 pts/34 0:31 runcobol /b/OINFO/informacion.cob -k
virginia 27643 27641 0 11:30:54 pts/4 0:00 -sh
mirna 29232 18057 0 12:07:35 pts/52 0:00 sh /clesa/menus/contab.lis
natalia 29187 29185 0 12:06:49 pts/9 0:00 -sh
eliu 14922 14920 0 07:18:03 pts003 0:00 -sh
virginia 27672 27669 1 11:31:22 pts/4 0:32 runcobol /b/OINFO/informacion.cob -k
root 28987 28985 0 12:01:11 pts/19 0:00 -ksh
veronica 27132 22502 4 11:22:01 pts/42 1:13 runcobol /b/OINFO/informacion.cob -k
root 23858 5776 0 Dec 11 ? 0:00 lpNet
eliu 14935 14922 0 07:18:30 pts003 0:00 fmli -i /clesa/menus/init -a /clesa/menus/Aliases -c /clesa/menus/Cmdo /clesa/m
caja47 16058 16048 0 07:46:24 pts/37 0:00 -sh
jcm 23318 23315 0 10:08:41 pts/38 0:02 runcobol /b/OINFO/informacion.cob -k
caja47 16106 16089 0 07:46:50 pts/37 0:14 runcobol85 /b/OFACT/clesa-caja.cob -k
mirna 29233 29232 0 12:07:35 pts/52 0:00 sh /clesa/menus/contab.lis
mirna 18057 18046 0 08:17:48 pts/52 0:03 fmli -i /clesa/menus/init -a /clesa/menus/Aliases -c /clesa/menus/Cmdo /clesa/m
root 27186 1 0 Dec 09 ? 0:00 /usr/sbin/in.tlid
aracely 24045 24020 0 10:25:55 pts/27 0:00 fmli -i /clesa/menus/init -a /clesa/menus/Aliases -c /clesa/menus/Cmdo /clesa/m
aracely 24020 24018 0 10:25:27 pts/27 0:00 -sh
godoy 22032 22030 0 09:45:31 pts/41 0:00 -sh
oscar 28633 28611 48 11:49:53 pts/10 8:03 runcobol /b/OFACT/rec-texto-nvo.cob -k
root 22459 27184 0 09:52:24 ? 0:00 in.telnetd
natalia 29225 29187 0 12:07:11 pts/9 0:00 fmli -i /clesa/menus/init -a /clesa/menus/Aliases -c /clesa/menus/Cmdo /clesa/m
recinos 15605 15564 0 07:39:04 pts/25 0:01 fmli -i /clesa/menus/init -a /clesa/menus/Aliases -c /clesa/menus/Cmdo /clesa/m
fatima 15981 15979 0 07:45:40 pts/34 0:00 -sh
root 29185 27184 0 12:06:48 ? 0:00 in.telnetd
root 13535 1 0 00:00:02 ? 0:00 /usr/sbin/syslogd
godoy 22057 22032 0 09:45:42 pts/41 0:01 fmli -i /clesa/menus/init -a /clesa/menus/Aliases -c /clesa/menus/Cmdo /clesa/m
oscar 28607 28591 0 11:49:12 pts/10 0:00 fmli -i /clesa/menus/init -a /clesa/menus/Aliases -c /clesa/menus/Cmdo /clesa/m
root 16519 27184 0 07:54:56 ? 0:00 in.telnetd
jcm 23315 23299 0 10:08:34 pts/38 0:00 fmli -i /clesa/menus/init -a /clesa/menus/Aliases -c /clesa/menus/Cmdo /clesa/m
caja43 15282 15250 2 07:32:24 pts/14 0:14 runcobol85 /b/OFACT/clesa-caja.cob -k
eventual 15819 15817 0 07:42:52 pts/30 0:00 -sh
mirna 18046 18044 0 08:17:33 pts/52 0:00 -sh
cusca01 15530 15528 0 07:38:03 pts/24 0:00 -sh
dolores 16521 16519 0 07:54:57 pts/40 0:00 -sh
root 16726 27184 0 07:57:08 ? 0:00 in.telnetd
credoma2 27837 27826 0 11:35:53 pts/6 0:00 fmli -i /clesa/menus/init -a /clesa/menus/Aliases -c /clesa/menus/Cmdo /clesa/m

I don't see evidence of a shutdown procedure running at all. Nothing is hung, no shutdown procedure is running. Do a "which init" and a "which shutdown". That had better come back with "/sbin/init" or you have screwed up root's PATH.

When you have the path to shutdown, do a "file /usr/bin/shutdown" to see if it's a shell scipt. If it's a shell script, look at it to see if the last thing it does is "/sbin/init 0" or just "init 0".

If you're sure that you are running the real /sbin/init when you try to shutdown, the next thing to look at is the shutdown scripts. Your inittab says that "/sbin/rc0 off" will be the first thing to run. do a "ls -lu /sbin/rc0" to see when the last time was that /sbin/rc0 was read. A shell must read a script to run it. Was it read at about the time you tried a shutdown? When was it last modified?

/ ls -lu /sbin/rc0
-rwxr--r-- 1 root sys 25509 Nov 29 17:31 /sbin/rc0

If that persists after you type
/sbin/init 0
I must guess that your /sbin/init has been corrupted or something... What does
ls -l /sbin/init
say?

Anyway /sbin/init 0 is supposed to to run the "0" entries in /etc/iniitab in the order in which they appear. Scan inittab to be sure that there aren't any other zero entries. If the second field has a zero, it will be selected. Something like
xxx:0123456:<more fields>

/ ls -l /sbin/init
-r-xr-xr-x 2 bin bin 109108 Jun 20 2001 /sbin/init

--------------------
/etc vi inittab
a0:0123456:wait:/sbin/contty -c 1> /dev/sysmsg 2>&1

--------------------
/ find . -name shutdown -print
./usr/sbin/shutdown
./usr/alarm/events/gen/shutdown
./usr/ucb/shutdown
./etc/shutdown
./sbin/shutdown

--------------------
/sbin tail shutdown
fi
fi

case "${initstate}" in
s | S )
. /sbin/rc0
esac

echo "Changing to init state $initstate - please wait"
/sbin/init ${initstate}
/sbin

Thanks
Carlos Rodr�guez.

Well, I'm running out of ideas. The output from your "who" command shows that init has not yet stored the new run state in utmp. It needs to do that before it can run the commands from inittab.

That contty could stall this process, but it's not in your ps listing.

Your version of init may be trying to a "init state changed to" messages on the system console. You might check that it is not locked up somehow.