Hi,

We have a server running Redhat 8.0, and we can not shut down remotely
via shutdown command. Since it is hosting remotely, I would like to
find out if there is any other thing I can do before power cycle the
server. Other abnormal behaviors also attached. Thanks for the help.

1. init process accumulate lots of process time
2. can not kill a process clearly - become defunct

[root@ root]#
[root@ root]#
[root@ root]#
[root@ root]# w
10:05pm up 43 days, 2:44, 2 users, load average: 1.26, 1.14, 1.19
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root tty1 - 9Sep03 43days 0.18s 0.09s bash
root pts/1 2-164.unigate.ne 10:04pm 0.00s 0.14s 0.03s w
[root@ root]# ps ax
PID TTY STAT TIME COMMAND
1 ? R 4887:01 init
2 ? SW 0:00 [migration_CPU0]
3 ? SW 0:00 [migration_CPU1]
4 ? SW 0:00 [keventd]
5 ? SWN 0:00 [ksoftirqd_CPU0]
6 ? SWN 0:00 [ksoftirqd_CPU1]
7 ? SW 0:56 [kswapd]
8 ? SW 0:00 [bdflush]
9 ? SW 0:50 [kupdated]
10 ? SW 0:00 [mdrecoveryd]
16 ? SW 0:00 [scsi_eh_0]
17 ? SW 0:00 [scsi_eh_1]
20 ? SW 0:06 [kjournald]
76 ? SW 0:00 [khubd]
233 ? SW 0:00 [kjournald]
234 ? SW 1:56 [kjournald]
235 ? SW 0:02 [kjournald]
236 ? SW 2:57 [kjournald]
522 ? S 0:06 syslogd -m 0
526 ? S 0:00 klogd -x
543 ? S 0:00 portmap
562 ? S 0:00 rpc.statd
642 ? Z 0:19 [sshd ]
656 ? Z 0:00 [xinetd ]
688 ? Z 3:15 [sendmail ]
698 ? Z 0:01 [sendmail ]
708 ? S 0:00 gpm -t ps/2 -m /dev/mouse
719 ? S 1:48 /usr/sbin/httpd
728 ? S 0:05 crond
735 ? S 0:00 /bin/sh /usr/bin/safe_mysqld
--datadir=/var/lib/mysql
769 ? S 0:01 /usr/sbin/atd
781 ? S 0:00 login -- root
783 tty3 S 0:00 /sbin/mingetty tty3
785 tty4 S 0:00 /sbin/mingetty tty4
786 tty5 S 0:00 /sbin/mingetty tty5
787 tty6 S 0:00 /sbin/mingetty tty6
788 ? S 4:48 /usr/sbin/mysqld --basedir=/
--datadir=/var/lib/mysql
803 tty1 S 0:00 -bash
920 tty1 S 0:00 su dda
921 tty1 S 0:00 bash
968 tty2 S 0:00 /sbin/mingetty tty2
1206 ? S 0:10 /usr/sbin/httpd
1210 ? S 0:11 /usr/sbin/httpd
1217 ? S 0:10 /usr/sbin/httpd
1233 ? S 0:10 /usr/sbin/httpd
1251 ? S 0:11 /usr/sbin/httpd
1262 ? S 0:10 /usr/sbin/httpd
1645 ? S 0:09 /usr/sbin/httpd
1646 ? S 0:10 /usr/sbin/httpd
1647 ? S 0:10 /usr/sbin/httpd
4271 ? Z 0:00 [anacron ]
6193 ? Z 0:00 [sshd ]
6197 ? Z 0:00 [bash ]
7449 ? Z 0:00 [bash ]
7684 ? Z 0:25 [sshd ]
7758 ? Z 0:00 [bash ]
8073 ? Z 0:00 [sshd ]
8458 ? Z 0:00 [loop0 ]
8812 ? Z 0:00 [loop0 ]
8977 ? S 0:00 /usr/sbin/sshd
9118 ? S 0:00 sendmail: accepting connections
9127 ? S 0:00 sendmail: Queue runner@01:00:00 for
/var/spool/client
9161 ? S 0:00 xinetd -stayalive -pidfile
/var/run/xinetd.pid
9216 ? S 0:00 /usr/sbin/sshd
9218 pts/1 S 0:00 -bash
9265 pts/1 R 0:00 ps ax
[root@ root]#
[root@ root]#
[root@ root]# killall sendmail
[root@ root]# ps ax
PID TTY STAT TIME COMMAND
1 ? R 4887:21 init
2 ? SW 0:00 [migration_CPU0]
3 ? SW 0:00 [migration_CPU1]
4 ? SW 0:00 [keventd]
5 ? SWN 0:00 [ksoftirqd_CPU0]
6 ? SWN 0:00 [ksoftirqd_CPU1]
7 ? SW 0:56 [kswapd]
8 ? SW 0:00 [bdflush]
9 ? SW 0:50 [kupdated]
10 ? SW 0:00 [mdrecoveryd]
16 ? SW 0:00 [scsi_eh_0]
17 ? SW 0:00 [scsi_eh_1]
20 ? SW 0:06 [kjournald]
76 ? SW 0:00 [khubd]
233 ? SW 0:00 [kjournald]
234 ? SW 1:56 [kjournald]
235 ? SW 0:02 [kjournald]
236 ? SW 2:57 [kjournald]
522 ? S 0:06 syslogd -m 0
526 ? S 0:00 klogd -x
543 ? S 0:00 portmap
562 ? S 0:00 rpc.statd
642 ? Z 0:19 [sshd ]
656 ? Z 0:00 [xinetd ]
688 ? Z 3:15 [sendmail ]
698 ? Z 0:01 [sendmail ]
708 ? S 0:00 gpm -t ps/2 -m /dev/mouse
719 ? S 1:48 /usr/sbin/httpd
728 ? S 0:05 crond
735 ? S 0:00 /bin/sh /usr/bin/safe_mysqld
--datadir=/var/lib/mysql
769 ? S 0:01 /usr/sbin/atd
781 ? S 0:00 login -- root
783 tty3 S 0:00 /sbin/mingetty tty3
785 tty4 S 0:00 /sbin/mingetty tty4
786 tty5 S 0:00 /sbin/mingetty tty5
787 tty6 S 0:00 /sbin/mingetty tty6
788 ? S 4:48 /usr/sbin/mysqld --basedir=/
--datadir=/var/lib/mysql
803 tty1 S 0:00 -bash
920 tty1 S 0:00 su dda
921 tty1 S 0:00 bash
968 tty2 S 0:00 /sbin/mingetty tty2
1206 ? S 0:10 /usr/sbin/httpd
1210 ? S 0:11 /usr/sbin/httpd
1217 ? S 0:10 /usr/sbin/httpd
1233 ? S 0:10 /usr/sbin/httpd
1251 ? S 0:11 /usr/sbin/httpd
1262 ? S 0:10 /usr/sbin/httpd
1645 ? S 0:09 /usr/sbin/httpd
1646 ? S 0:10 /usr/sbin/httpd
1647 ? S 0:10 /usr/sbin/httpd
4271 ? Z 0:00 [anacron ]
6193 ? Z 0:00 [sshd ]
6197 ? Z 0:00 [bash ]
7449 ? Z 0:00 [bash ]
7684 ? Z 0:25 [sshd ]
7758 ? Z 0:00 [bash ]
8073 ? Z 0:00 [sshd ]
8458 ? Z 0:00 [loop0 ]
8812 ? Z 0:00 [loop0 ]
8977 ? S 0:00 /usr/sbin/sshd
9118 ? Z 0:00 [sendmail ]
9127 ? Z 0:00 [sendmail ]
9161 ? S 0:00 xinetd -stayalive -pidfile
/var/run/xinetd.pid
9216 ? S 0:00 /usr/sbin/sshd
9218 pts/1 S 0:00 -bash
9267 pts/1 R 0:00 ps ax
[root@ root]#