or maybe a yum pid check at startup. ... I was out at a client with intermittent internet access -- I found this on one of the servers. check-packages, and yum each are querying into the rpm database. It is an almost certainty that there is a deadly embrace on the database here. I'll reboot and analyze in a moment -- but at a minimum, only one instance should be running at any time. A lockfile mechanism for the cron version seems needed, if not the more formal approach of checking for a valid yum pid lockfile at startup, and bailing if found. -- Russ Herrold ---------- Forwarded message ---------- Date: Fri, 17 Jan 2003 09:45:49 -0500 To: herrold@xxxxxxxxxxxx Subject: yum-interlock PID TTY STAT TIME COMMAND 1 ? S 7:12 init [5] 2 ? SW 0:33 [keventd] 3 ? SW 0:20 [kapmd] 4 ? SWN 1:05 [ksoftirqd_CPU0] 5 ? SW 360:42 [kswapd] 6 ? SW 0:06 [bdflush] 7 ? SW 0:51 [kupdated] 8 ? SW 0:00 [mdrecoveryd] 12 ? SW 7:19 [kjournald] 64 ? SW 0:00 [khubd] 159 ? SW 0:03 [kjournald] 160 ? SW 1:37 [kjournald] 161 ? SW 0:01 [kjournald] 162 ? SW 0:01 [kjournald] 163 ? SW 2:58 [kjournald] 164 ? SW 8:58 [kjournald] 399 ? S 1:25 /sbin/dhcpcd -n eth0 438 ? S 4:08 syslogd -m 0 442 ? S 2:36 klogd -x 453 ? S 0:00 portmap 472 ? S 0:00 rpc.statd 559 ? S 0:00 /usr/sbin/sshd 573 ? S 0:00 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid 601 ? S 0:59 lpd Waiting 617 ? S 0:00 rpc.rquotad 622 ? SW 0:00 [nfsd] 623 ? SW 0:00 [nfsd] 624 ? SW 0:00 [nfsd] 625 ? SW 0:00 [nfsd] 626 ? SW 0:00 [nfsd] 627 ? SW 0:00 [nfsd] 628 ? SW 0:00 [nfsd] 629 ? SW 0:00 [nfsd] 630 ? SW 0:00 [lockd] 631 ? SW 0:00 \_ [rpciod] 637 ? S 0:00 rpc.mountd 693 ? S 38:37 sendmail: accepting connections 706 ? S 1:19 sendmail: Queue runner@01:00:00 for /var/spool/client 716 ? S 7:07 gpm -t ps/2 -m /dev/mouse 727 ? S 35:16 /usr/sbin/httpd 22281 ? S 0:00 \_ /usr/sbin/httpd 22282 ? S 0:00 \_ /usr/sbin/httpd 22283 ? S 0:00 \_ /usr/sbin/httpd 22284 ? S 0:00 \_ /usr/sbin/httpd 22285 ? S 0:00 \_ /usr/sbin/httpd 22286 ? S 0:00 \_ /usr/sbin/httpd 22287 ? S 0:00 \_ /usr/sbin/httpd 22288 ? S 0:00 \_ /usr/sbin/httpd 737 ? S 1:50 cannaserver -syslog -u bin 746 ? S 2:57 crond 23504 ? S 0:00 \_ CROND 23505 ? S 0:00 | \_ /bin/bash /usr/bin/run-parts /etc/cron.daily 16651 ? S 0:00 | \_ /bin/sh /etc/cron.daily/yum.cron 16890 ? S 14:45 | | \_ /usr/bin/python /usr/bin/yum -R 120 - 16652 ? S 0:00 | \_ awk -v progname=/etc/cron.daily/yum.cron 13946 ? S 0:00 \_ CROND 13947 ? S 0:00 | \_ /bin/bash /usr/bin/run-parts /etc/cron.daily 13644 ? S 0:00 | \_ /bin/sh /etc/cron.daily/yum.cron 13647 ? S 15:46 | | \_ /usr/bin/python /usr/bin/yum -R 120 - 13645 ? S 0:00 | \_ awk -v progname=/etc/cron.daily/yum.cron 2942 ? S 0:00 \_ CROND 2943 ? S 0:00 | \_ /bin/bash /usr/bin/run-parts /etc/cron.daily 3539 ? S 0:00 | \_ /bin/sh /etc/cron.daily/yum.cron 3545 ? S 16:10 | | \_ /usr/bin/python /usr/bin/yum -R 120 - 3540 ? S 0:00 | \_ awk -v progname=/etc/cron.daily/yum.cron 25545 ? S 0:00 \_ CROND 25546 ? S 0:00 | \_ /bin/bash /usr/bin/run-parts /etc/cron.daily 26567 ? S 0:00 | \_ /bin/sh /etc/cron.daily/yum.cron 26570 ? S 18:15 | | \_ /usr/bin/python /usr/bin/yum -R 120 - 26568 ? S 0:00 | \_ awk -v progname=/etc/cron.daily/yum.cron 6644 ? S 0:00 \_ CROND 6645 ? S 0:00 | \_ /bin/bash /usr/bin/run-parts /etc/cron.daily 7607 ? S 0:00 | \_ /bin/sh /etc/cron.daily/yum.cron 7615 ? S 17:26 | | \_ /usr/bin/python /usr/bin/yum -R 120 - 7608 ? S 0:00 | \_ awk -v progname=/etc/cron.daily/yum.cron 29087 ? S 0:00 \_ CROND 29088 ? S 0:00 | \_ /bin/bash /usr/bin/run-parts /etc/cron.daily 31208 ? S 0:00 | \_ /bin/sh /etc/cron.daily/yum.cron 31214 ? S 16:01 | | \_ /usr/bin/python /usr/bin/yum -R 120 - 31209 ? S 0:00 | \_ awk -v progname=/etc/cron.daily/yum.cron 28211 ? S 0:00 \_ CROND 28212 ? S 0:00 | \_ /bin/bash /usr/bin/run-parts /etc/cron.daily 21290 ? S 0:00 | \_ /bin/sh /etc/cron.daily/yum.cron 21293 ? S 16:45 | | \_ /usr/bin/python /usr/bin/yum -R 120 - 21291 ? S 0:00 | \_ awk -v progname=/etc/cron.daily/yum.cron 18300 ? S 0:00 \_ CROND 18301 ? S 0:00 | \_ /bin/bash /usr/bin/run-parts /etc/cron.daily 19275 ? S 0:00 | \_ /bin/sh /etc/cron.daily/yum.cron 19278 ? S 15:43 | | \_ /usr/bin/python /usr/bin/yum -R 120 - 19276 ? S 0:00 | \_ awk -v progname=/etc/cron.daily/yum.cron 8370 ? S 0:00 \_ CROND 8371 ? S 0:00 | \_ /bin/bash /usr/bin/run-parts /etc/cron.daily 8909 ? S 0:00 | \_ /bin/sh /etc/cron.daily/yum.cron 8915 ? S 16:52 | | \_ /usr/bin/python /usr/bin/yum -R 120 - 8910 ? S 0:00 | \_ awk -v progname=/etc/cron.daily/yum.cron 30843 ? S 0:00 \_ CROND 30844 ? S 0:00 | \_ /bin/bash /usr/bin/run-parts /etc/cron.daily 23244 ? S 0:00 | \_ /bin/sh /etc/cron.daily/yum.cron 23250 ? S 18:37 | | \_ /usr/bin/python /usr/bin/yum -R 120 - 23245 ? S 0:00 | \_ awk -v progname=/etc/cron.daily/yum.cron 20964 ? S 0:00 \_ CROND 20965 ? S 0:00 | \_ /bin/bash /usr/bin/run-parts /etc/cron.daily 21937 ? S 0:00 | \_ /bin/sh /etc/cron.daily/yum.cron 21943 ? S 17:27 | | \_ /usr/bin/python /usr/bin/yum -R 120 - 21938 ? S 0:00 | \_ awk -v progname=/etc/cron.daily/yum.cron 11063 ? S 0:00 \_ CROND 11064 ? S 0:00 | \_ /bin/bash /usr/bin/run-parts /etc/cron.daily 11631 ? S 0:00 | \_ /bin/sh /etc/cron.daily/yum.cron 11634 ? S 17:19 | | \_ /usr/bin/python /usr/bin/yum -R 120 - 11632 ? S 0:00 | \_ awk -v progname=/etc/cron.daily/yum.cron 1175 ? S 0:00 \_ CROND 1176 ? S 0:00 | \_ /bin/bash /usr/bin/run-parts /etc/cron.daily 3086 ? S 0:00 | \_ /bin/sh /etc/cron.daily/yum.cron 3092 ? S 16:42 | | \_ /usr/bin/python /usr/bin/yum -R 120 - 3087 ? S 0:00 | \_ awk -v progname=/etc/cron.daily/yum.cron 14501 ? S 0:00 \_ CROND 14502 ? S 1:25 | \_ /bin/bash /usr/bin/run-parts /etc/cron.daily 22051 ? S 0:00 | | \_ /bin/sh /etc/cron.daily/yum.cron 22280 ? S 0:54 | | | \_ /usr/bin/python /usr/bin/yum -R 120 - 22052 ? S 0:00 | | \_ awk -v progname=/etc/cron.daily/yum.cron 21770 ? S 0:00 | \_ /usr/sbin/sendmail -FCronDaemon -i -odi -oem 16942 ? S 0:00 \_ CROND 16943 ? S 0:00 | \_ /bin/bash /usr/bin/run-parts /etc/cron.daily 5871 ? S 0:00 | | \_ /bin/sh /etc/cron.daily/check-packages 5877 ? S 0:00 | | | \_ /usr/lib/rpm/rpmq -q --all 5872 ? S 0:00 | | \_ awk -v progname=/etc/cron.daily/check-pac 5873 ? S 0:00 | \_ /usr/sbin/sendmail -FCronDaemon -i -odi -oem 6745 ? S 0:00 \_ CROND 6746 ? S 0:00 \_ /bin/bash /usr/bin/run-parts /etc/cron.daily 7500 ? S 0:00 | \_ /bin/sh /etc/cron.daily/yum.cron 7504 ? S 1:12 | | \_ /usr/bin/python /usr/bin/yum -R 120 - 7501 ? S 0:00 | \_ awk -v progname=/etc/cron.daily/yum.cron 7282 ? S 0:00 \_ /usr/sbin/sendmail -FCronDaemon -i -odi -oem 797 ? S 2:47 xfs -droppriv -daemon 814 ? S 0:04 smbd -D 818 ? S 45:25 nmbd -D 845 ? S 1:51 /usr/sbin/atd 863 tty1 S 0:00 /sbin/mingetty tty1 864 tty2 S 0:00 /sbin/mingetty tty2 865 tty3 S 0:00 /sbin/mingetty tty3 866 tty4 S 0:00 /sbin/mingetty tty4 867 tty5 S 0:00 /sbin/mingetty tty5 868 tty6 S 0:00 /sbin/mingetty tty6 869 ? S 0:15 /usr/bin/gdm-binary 1128 ? S 0:00 \_ /usr/bin/gdm-binary 1368 ? S 0:00 | \_ /usr/sbin/gdmopen /usr/bin/dialog --yesno The 1373 tty8 S 0:00 | \_ /usr/sbin/gdmopen /usr/bin/dialog --yesno 31757 ? S 0:00 \_ /usr/bin/gdm-binary 31764 ? S 0:00 \_ /bin/sh /usr/bin/startkde 31813 ? S 0:00 \_ /usr/bin/ssh-agent /usr/share/apps/switch 31878 ? S 0:00 \_ kwrapper ksmserver --restore 954 ? SW 0:00 [loop0] 963 ? SW 0:00 [loop1] 969 ? SW 0:00 [loop2] 18783 ? S< 3:01 /usr/bin/X11/X -indirect localhost 31856 ? S 0:00 kdeinit: Running... 31873 ? S 0:02 \_ /usr/bin/artsd -F 10 -S 4096 -s 60 -m artsmessage 31881 ? S 0:04 \_ kdeinit: kwin -session 11ac1023b40001024676695000 31895 ? S 0:45 \_ kdeinit: konsole -icon konsole -miniicon konsole 31898 pts/1 S 0:01 | \_ /bin/bash 32380 pts/1 R 0:00 | | \_ ps afx 32381 pts/1 D 0:00 | | \_ mail -s yum-interlock herrold@xxxxxxxxxxx 31934 pts/2 S 0:00 | \_ /bin/bash 32177 pts/2 S 0:02 | | \_ ssh swampfox.owlriver.com 32336 pts/4 S 0:00 | \_ /bin/bash 32364 pts/4 S 0:01 | \_ /usr/bin/python /usr/sbin/yum install x32 32246 ? S 0:47 \_ /usr/lib/mozilla-1.0.1/mozilla-bin 32334 ? S 0:06 \_ ksnapshot -icon ksnapshot -miniicon ksnapshot 31859 ? S 0:00 kdeinit: dcopserver --nosid 31862 ? S 0:00 kdeinit: klauncher 31864 ? S 0:04 kdeinit: kded 31877 ? S 0:01 kdeinit: knotify 31880 ? S 0:00 kdeinit: ksmserver --restore 31883 ? S 0:06 kdeinit: kdesktop 31885 ? S 0:08 kdeinit: kicker 31888 ? S 0:06 kdeinit: klipper -icon klipper -miniicon klipper 31890 ? S 0:00 kdeinit: kwrited 31893 ? S 0:00 kalarmd --login 32025 ? SL 0:00 /usr/sbin/ntpd -A 32035 ? SL 0:00 ntpd -U ntp -g