Kann sich wer folgendes erklären? Manuell wurde du nicht gestartet. Wodurch bzw. warum läuft du schon seit Stunden? Kann das mit amavisd zusammenhängen? # top -n 1 -b top - 20:00:36 up 7:45, 1 user, load average: 1.05, 1.04, 1.02 Tasks: 77 total, 1 running, 76 sleeping, 0 stopped, 0 zombie Cpu(s): 0.6% us, 57.3% sy, 0.1% ni, 9.2% id, 32.5% wa, 0.3% hi, 0.0% si Mem: 516696k total, 513852k used, 2844k free, 51964k buffers Swap: 200804k total, 77004k used, 123800k free, 14296k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 6119 root 18 0 3216 2140 1232 D 25.7 0.4 261:22.49 du 9601 root 16 0 1756 804 1540 R 2.0 0.2 0:00.01 top 1 root 16 0 588 68 444 S 0.0 0.0 0:04.47 init 2 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0 3 root 5 -10 0 0 0 S 0.0 0.0 0:00.07 events/0 19 root 5 -10 0 0 0 S 0.0 0.0 0:07.44 kblockd/0 29 root 15 -10 0 0 0 S 0.0 0.0 0:00.00 pdflush 30 root 5 -10 0 0 0 S 0.0 0.0 0:00.69 pdflush 32 root 15 -10 0 0 0 S 0.0 0.0 0:00.00 aio/0 31 root 16 0 0 0 0 S 0.0 0.0 7:03.69 kswapd0 199 root 16 0 0 0 0 S 0.0 0.0 0:00.00 kseriod 275 root 15 0 0 0 0 S 0.0 0.0 0:01.66 kjournald 447 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 kcopyd/0 485 root 15 0 0 0 0 S 0.0 0.0 0:00.17 kjournald 486 root 15 0 0 0 0 S 0.0 0.0 0:00.14 kjournald 487 root 15 0 0 0 0 S 0.0 0.0 0:00.01 kjournald 488 root 15 0 0 0 0 S 0.0 0.0 0:00.00 kjournald 489 root 15 0 0 0 0 S 0.0 0.0 0:00.00 kjournald 490 root 15 0 0 0 0 S 0.0 0.0 0:00.08 kjournald 491 root 15 0 0 0 0 S 0.0 0.0 0:00.16 kjournald 492 root 15 0 0 0 0 S 0.0 0.0 0:00.02 kjournald 493 root 15 0 0 0 0 S 0.0 0.0 0:00.01 kjournald 494 root 15 0 0 0 0 S 0.0 0.0 0:00.00 kjournald 686 root 16 0 2312 956 2108 S 0.0 0.2 0:00.19 Ausschalten 1187 root 25 0 2500 872 2288 S 0.0 0.2 0:00.00 hotplug 1188 root 20 0 1360 304 1200 S 0.0 0.1 0:00.00 logger 1216 root 25 0 2500 868 2288 S 0.0 0.2 0:00.00 pci.agent 1217 root 24 0 1360 304 1200 S 0.0 0.1 0:00.00 logger 1495 root 15 0 0 0 0 S 0.0 0.0 0:00.11 khubd 2493 root 16 0 1436 524 1260 S 0.0 0.1 0:00.13 syslogd 2500 root 15 0 2348 604 1212 S 0.0 0.1 0:00.09 klogd 2660 root 16 0 6616 892 5572 S 0.0 0.2 0:00.01 nmbd 2957 bin 16 0 1420 492 1248 S 0.0 0.1 0:00.00 portmap 2958 root 15 0 1588 524 1416 S 0.0 0.1 0:00.05 resmgrd 3189 root 17 0 1412 312 1200 S 0.0 0.1 0:00.00 hwscand 3297 root 16 0 4708 668 4320 S 0.0 0.1 0:00.19 sshd 3412 root 18 0 2316 844 2108 S 0.0 0.2 0:00.01 mysqld_safe 3484 mysql 16 0 112m 1520 6456 S 0.0 0.3 0:00.11 mysqld-max 3784 root 15 0 2600 516 2404 S 0.0 0.1 0:00.00 powersaved 4086 lp 16 0 6364 712 3340 S 0.0 0.1 0:00.33 cupsd 4095 root 15 0 0 0 0 S 0.0 0.0 0:00.00 nfsd 4096 root 15 0 0 0 0 S 0.0 0.0 0:00.00 nfsd 4097 root 15 0 0 0 0 S 0.0 0.0 0:00.00 nfsd 4098 root 15 0 0 0 0 S 0.0 0.0 0:00.00 nfsd 4100 root 21 0 0 0 0 S 0.0 0.0 0:00.00 lockd 4101 root 19 0 0 0 0 S 0.0 0.0 0:00.00 rpciod 4114 root 17 0 1592 692 1392 S 0.0 0.1 0:01.81 rpc.mountd 4299 root 16 0 4176 680 3960 S 0.0 0.1 0:00.15 master 4330 postfix 15 0 4248 672 4036 S 0.0 0.1 0:00.11 qmgr 4362 root 16 0 12892 720 10m S 0.0 0.1 0:00.17 httpd2-prefork 4364 vscan 16 0 34752 1308 4524 S 0.0 0.3 0:00.50 amavisd 4365 wwwrun 18 0 12892 700 10m S 0.0 0.1 0:00.00 httpd2-prefork 4366 wwwrun 18 0 12892 700 10m S 0.0 0.1 0:00.00 httpd2-prefork 4367 wwwrun 18 0 12892 700 10m S 0.0 0.1 0:00.00 httpd2-prefork 4368 wwwrun 21 0 12892 700 10m S 0.0 0.1 0:00.00 httpd2-prefork 4369 wwwrun 21 0 12892 700 10m S 0.0 0.1 0:00.00 httpd2-prefork 4404 root 18 0 1980 472 1644 S 0.0 0.1 0:00.00 xinetd 4406 vscan 17 0 34884 10m 4524 S 0.0 2.0 0:00.70 amavisd 4407 vscan 16 0 34884 5276 4524 S 0.0 1.0 0:00.67 amavisd 4426 root 16 0 1396 532 1220 S 0.0 0.1 0:00.05 cron 4431 root 16 0 42624 632 1468 S 0.0 0.1 0:00.05 nscd 4464 root 17 0 8936 592 7400 S 0.0 0.1 0:00.00 smbd 5047 root 18 0 1608 428 1436 S 0.0 0.1 0:00.01 mingetty 5048 root 18 0 1608 428 1436 S 0.0 0.1 0:00.01 mingetty 5049 root 18 0 1608 428 1436 S 0.0 0.1 0:00.01 mingetty 5050 root 18 0 1608 428 1436 S 0.0 0.1 0:00.01 mingetty 5051 root 18 0 1608 428 1436 S 0.0 0.1 0:00.01 mingetty 5052 root 18 0 1608 428 1436 S 0.0 0.1 0:00.02 mingetty 6078 root 15 0 1400 504 1220 S 0.0 0.1 0:00.00 cron 6079 root 18 0 2312 820 2108 S 0.0 0.2 0:00.00 sh 6080 root 21 0 2316 840 2108 S 0.0 0.2 0:00.00 hd_warnung 6151 root 16 0 4080 544 3868 S 0.0 0.1 0:00.00 sendmail 6152 root 17 0 4064 508 3852 S 0.0 0.1 0:00.00 postdrop 9043 postfix 16 0 4216 1340 4004 S 0.0 0.3 0:00.00 pickup 9500 root 16 0 7896 1476 7152 S 0.0 0.3 0:00.06 sshd 9502 root 16 0 2844 1240 2368 S 0.0 0.2 0:00.04 bash 9578 root 18 0 1596 492 1432 S 0.0 0.1 0:00.00 sleep Al
Am Freitag, 14. Mai 2004 20:03 schrieb Al Bogner:
Kann sich wer folgendes erklären?
Manuell wurde du nicht gestartet. Wodurch bzw. warum läuft du schon seit Stunden? Kann das mit amavisd zusammenhängen?
# top -n 1 -b top - 20:00:36 up 7:45, 1 user, load average: 1.05, 1.04, 1.02 Tasks: 77 total, 1 running, 76 sleeping, 0 stopped, 0 zombie Cpu(s): 0.6% us, 57.3% sy, 0.1% ni, 9.2% id, 32.5% wa, 0.3% hi, 0.0% si Mem: 516696k total, 513852k used, 2844k free, 51964k buffers Swap: 200804k total, 77004k used, 123800k free, 14296k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 6119 root 18 0 3216 2140 1232 D 25.7 0.4 261:22.49 du
amavisd-new läuft aber nicht als root, oder? Mach mal: # ps aux --forest Wo taucht denn da der "du" auf? -- Andreas
Am Freitag, 14. Mai 2004 20:22 schrieb Andreas Winkelmann:
Am Freitag, 14. Mai 2004 20:03 schrieb Al Bogner:
Kann sich wer folgendes erklären?
Manuell wurde du nicht gestartet. Wodurch bzw. warum läuft du schon seit Stunden? Kann das mit amavisd zusammenhängen?
# top -n 1 -b top - 20:00:36 up 7:45, 1 user, load average: 1.05, 1.04, 1.02 Tasks: 77 total, 1 running, 76 sleeping, 0 stopped, 0 zombie Cpu(s): 0.6% us, 57.3% sy, 0.1% ni, 9.2% id, 32.5% wa, 0.3% hi, 0.0% si Mem: 516696k total, 513852k used, 2844k free, 51964k buffers Swap: 200804k total, 77004k used, 123800k free, 14296k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 6119 root 18 0 3216 2140 1232 D 25.7 0.4 261:22.49 du
amavisd-new läuft aber nicht als root, oder?
Es ist alles 9.1 default.
Mach mal:
# ps aux --forest
Wo taucht denn da der "du" auf?
siehe folgend. Mir fällt dazu jetzt ein, dass mein Script hd_warnung unter anderem stündlich testet, ob die HD voll wird. Da kommt folgendes vor: du -aLh --max-depth=1 "$PARTITION" >> $WARNLOG Unter 8.2 gab es da aber nie zeitliche Probleme. Al # ps aux --forest USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 588 56 ? S 12:15 0:04 init [3] root 2 0.0 0.0 0 0 ? SN 12:15 0:00 [ksoftirqd/0] root 3 0.0 0.0 0 0 ? S< 12:15 0:00 [events/0] root 19 0.0 0.0 0 0 ? S< 12:15 0:09 \_ [kblockd/0] root 29 0.0 0.0 0 0 ? S< 12:15 0:00 \_ [pdflush] root 30 0.0 0.0 0 0 ? S< 12:15 0:00 \_ [pdflush] root 32 0.0 0.0 0 0 ? S< 12:15 0:00 \_ [aio/0] root 447 0.0 0.0 0 0 ? S< 12:15 0:00 \_ [kcopyd/0] root 31 1.5 0.0 0 0 ? S 12:15 8:54 [kswapd0] root 199 0.0 0.0 0 0 ? S 12:15 0:00 [kseriod] root 275 0.0 0.0 0 0 ? S 12:15 0:02 [kjournald] root 485 0.0 0.0 0 0 ? S 12:15 0:00 [kjournald] root 486 0.0 0.0 0 0 ? S 12:15 0:00 [kjournald] root 487 0.0 0.0 0 0 ? S 12:15 0:00 [kjournald] root 488 0.0 0.0 0 0 ? S 12:15 0:00 [kjournald] root 489 0.0 0.0 0 0 ? S 12:15 0:00 [kjournald] root 490 0.0 0.0 0 0 ? S 12:15 0:00 [kjournald] root 491 0.0 0.0 0 0 ? S 12:15 0:00 [kjournald] root 492 0.0 0.0 0 0 ? S 12:15 0:00 [kjournald] root 493 0.0 0.0 0 0 ? S 12:15 0:00 [kjournald] root 494 0.0 0.0 0 0 ? S 12:15 0:00 [kjournald] root 686 0.0 0.1 2312 956 ? S 12:15 0:00 /bin/bash /usr/local/bin/Ausschalten root 10483 0.0 0.0 1596 492 ? S 21:47 0:00 \_ sleep 900 root 1187 0.0 0.1 2500 876 ? S 12:15 0:00 /bin/bash /sbin/hotplug pci root 1188 0.0 0.0 1360 308 ? S 12:15 0:00 \_ logger -t /sbin/hotplug[1167] root 1216 0.0 0.1 2500 872 ? S 12:15 0:00 /bin/bash /etc/hotplug/pci.agent pci root 1217 0.0 0.0 1360 308 ? S 12:15 0:00 \_ logger -t /etc/hotplug/pci.agent[1167] root 1495 0.0 0.0 0 0 ? S 12:15 0:00 [khubd] root 2493 0.0 0.1 1436 524 ? Ss 12:15 0:00 /sbin/syslogd -a /var/lib/ntp/dev/log root 2500 0.0 0.1 2348 604 ? Ss 12:15 0:00 /sbin/klogd -c 1 -2 root 2660 0.0 0.1 6616 896 ? Ss 12:15 0:00 /usr/sbin/nmbd -D -s /etc/samba/smb.conf bin 2957 0.0 0.0 1420 380 ? Ss 12:15 0:00 /sbin/portmap root 2958 0.0 0.1 1588 524 ? Ss 12:15 0:00 /sbin/resmgrd root 3189 0.0 0.0 1412 312 ? S 12:15 0:00 [hwscand] root 3297 0.0 0.1 4708 796 ? Ss 12:15 0:00 /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid root 10508 0.1 0.3 7732 2060 ? Ss 22:00 0:00 \_ sshd: root@pts/48 root 10510 0.1 0.3 2844 1680 pts/48 Ss 22:00 0:00 \_ -bash root 10558 0.0 0.1 2156 700 pts/48 R+ 22:00 0:00 \_ ps aux --forest root 3412 0.0 0.1 2316 848 ? S 12:15 0:00 /bin/sh /usr/bin/mysqld_safe --user=mysql --pid-file=/var/lib/mysql/mysqld.pi mysql 3484 0.0 0.2 115200 1520 ? S 12:15 0:00 \_ /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/lib/mysql --user=mysql root 3784 0.0 0.1 2600 520 ? S 12:15 0:00 /usr/sbin/powersaved -d -e /etc/powersave.conf -a resmgr -v 3 lp 4086 0.0 0.1 6364 708 ? Ss 12:15 0:00 /usr/sbin/cupsd root 4095 0.0 0.0 0 0 ? S 12:15 0:00 [nfsd] root 4096 0.0 0.0 0 0 ? S 12:15 0:00 [nfsd] root 4097 0.0 0.0 0 0 ? S 12:15 0:00 [nfsd] root 4098 0.0 0.0 0 0 ? S 12:15 0:00 [nfsd] root 4100 0.0 0.0 0 0 ? S 12:15 0:00 [lockd] root 4101 0.0 0.0 0 0 ? S 12:15 0:00 [rpciod] root 4114 0.0 0.0 1592 504 ? Ss 12:15 0:01 /usr/sbin/rpc.mountd root 4299 0.0 0.1 4176 680 ? Ss 12:15 0:00 /usr/lib/postfix/master postfix 4330 0.0 0.1 4248 752 ? S 12:15 0:00 \_ qmgr -l -t fifo -u postfix 10506 0.0 0.2 4296 1524 ? S 21:59 0:00 \_ smtp -t unix -u postfix 10507 0.0 0.2 4232 1376 ? S 21:59 0:00 \_ bounce -z -n defer -t unix -u postfix 10555 0.0 0.2 4216 1360 ? S 22:00 0:00 \_ pickup -l -t fifo -u root 4362 0.0 0.1 12892 720 ? Ss 12:15 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf wwwrun 4365 0.0 0.1 12892 704 ? S 12:16 0:00 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf wwwrun 4366 0.0 0.1 12892 704 ? S 12:16 0:00 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf wwwrun 4367 0.0 0.1 12892 704 ? S 12:16 0:00 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf wwwrun 4368 0.0 0.1 12892 704 ? S 12:16 0:00 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf wwwrun 4369 0.0 0.1 12892 704 ? S 12:16 0:00 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf vscan 4364 0.0 0.2 34752 1308 ? Ss 12:16 0:00 amavisd (master) vscan 4406 0.0 1.4 34884 7240 ? S 12:16 0:00 \_ amavisd (child) vscan 4407 0.0 0.8 34884 4268 ? S 12:16 0:00 \_ amavisd (child) root 4404 0.0 0.0 1980 476 ? Ss 12:16 0:00 /usr/sbin/xinetd root 4426 0.0 0.1 1396 532 ? Ss 12:16 0:00 /usr/sbin/cron root 6078 0.0 0.0 1400 504 ? S 13:01 0:00 \_ /USR/SBIN/CRON root 6079 0.0 0.1 2312 824 ? Ss 13:01 0:00 \_ /bin/sh -c /usr/local/bin/hd_warnung 2>&1 > /dev/null root 6080 0.0 0.1 2316 844 ? S 13:01 0:00 | \_ /bin/bash /usr/local/bin/hd_warnung root 6119 61.9 0.4 3216 2140 ? D 13:01 334:21 | \_ du -aLh --max-depth=1 / root 6151 0.0 0.1 4080 544 ? S 13:02 0:00 \_ /usr/sbin/sendmail -FCronDaemon -odi -oem root root 6152 0.0 0.1 4064 544 ? S 13:02 0:00 \_ /usr/sbin/postdrop -r root 4431 0.0 0.1 42624 652 ? Ss 12:16 0:00 /usr/sbin/nscd root 4464 0.0 0.1 8936 596 ? Ss 12:16 0:00 /usr/sbin/smbd -D -s /etc/samba/smb.conf root 5047 0.0 0.0 1608 432 tty1 Ss+ 12:16 0:00 /sbin/mingetty --noclear tty1 root 5048 0.0 0.0 1608 432 tty2 Ss+ 12:16 0:00 /sbin/mingetty tty2 root 5049 0.0 0.0 1608 432 tty3 Ss+ 12:16 0:00 /sbin/mingetty tty3 root 5050 0.0 0.0 1608 432 tty4 Ss+ 12:16 0:00 /sbin/mingetty tty4 root 5051 0.0 0.0 1608 432 tty5 Ss+ 12:16 0:00 /sbin/mingetty tty5 root 5052 0.0 0.0 1608 432 tty6 Ss+ 12:16 0:00 /sbin/mingetty tty6
Am Freitag, 14. Mai 2004 22:06 schrieb Al Bogner:
Mach mal:
# ps aux --forest
Wo taucht denn da der "du" auf?
siehe folgend.
Mir fällt dazu jetzt ein, dass mein Script hd_warnung unter anderem stündlich testet, ob die HD voll wird. Da kommt folgendes vor:
du -aLh --max-depth=1 "$PARTITION" >> $WARNLOG
Unter 8.2 gab es da aber nie zeitliche Probleme.
root 4426 0.0 0.1 1396 532 ? Ss 12:16 0:00 /usr/sbin/cron root 6078 0.0 0.0 1400 504 ? S 13:01 0:00 \_ /USR/SBIN/CRON root 6079 0.0 0.1 2312 824 ? Ss 13:01 0:00 \_ /bin/sh -c /usr/local/bin/hd_warnung 2>&1 > /dev/null root 6080 0.0 0.1 2316 844 ? S 13:01 0:00
| \_ /bin/bash /usr/local/bin/hd_warnung
root 6119 61.9 0.4 3216 2140 ? D 13:01 334:21
| \_ du -aLh --max-depth=1 /
Yep, "du" wird von "hd_warnung" gestartet. Vielleicht solltest Du es mal manuell starten, damit Du evtl. ausgaben sehen kannst. Oder wenn Du dich in den laufenden Prozess "einklinken" willst, schau Dir mal "strace" an, dort kannst Du mit -p einen Prozess tracen. Siehe "man strace". Was ist denn $PARTITION ? Ich hoffe Du lässt /sys und derartiges aus? -- Andreas
Am Freitag, 14. Mai 2004 22:18 schrieb Andreas Winkelmann:
Yep, "du" wird von "hd_warnung" gestartet. Vielleicht solltest Du es mal manuell starten, damit Du evtl. ausgaben sehen kannst. Oder wenn Du dich in den laufenden Prozess "einklinken" willst, schau Dir mal "strace" an, dort kannst Du mit -p einen Prozess tracen. Siehe "man strace".
Was ist denn $PARTITION ? Ich hoffe Du lässt /sys und derartiges aus?
if [ $WARNSIZE -gt $FREI ]; then PARTITION=`cat $DFLOG | /usr/bin/gawk '{if (NR==LINE) print $7}' LINE=$i` Man mag das schöner schreiben können, aber es hat bis jetzt funktioniert. Wenn der freie Platz lt. df einen Wert unterschreitet, wird mit du analysiert, in welchem Verzeichnis der "Platzfresser" ist und wenn das / ist, dann wird auch /sys mitbetrachtet. Ich spekuliere und habe einen Dateinamen im Verdacht, der nicht UTF8-konform ist, aber ISO-8859-15 war. Konvertiert habe ich keine Dateien, da selber angelegte Dateien mit 7bit auskommen. Die Warngröße liegt bei 80MB. /dev/hdb7 5.1G 4.7G 89M 99% / ist zwar ziemlich voll. Lt df. haben aber alle Partitionen über 80MB. Ich werde mal auf / die YOU-Pakete löschen. Al
participants (2)
-
Al Bogner
-
Andreas Winkelmann