Your message dated Mon, 02 Feb 2009 07:04:23 -0500
with message-id <[email protected]>
and subject line Re: Bug#513896: "du" ignore parameter -x and runs for several 
hours (access any NFS shares found)
has caused the Debian Bug report #513896,
regarding "du" ignore parameter -x and runs for several hours (access any NFS 
shares found)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
513896: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513896
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: coreutils
Version: 5.97-5.3
Severity: normal

Hello Maintainer,

I have a script which I have not more used since Woody and  not  I  have
encountered an error while this script turns  my  @home  office  into  a
military airbase in alarm start...

Since I use several Fileservers and Servers which are entirely SCSI  SCA
15000 RpM Drives (86 HDD's ~14 TByte) I  was  alarmed  by  my  neighbour
which was bothered by the loudness of my servers!!!

On my Office-Workstation (AMD Sempron 2200+, 3 GByte memory, 10/100  VIA
OnBoard) I have tried to run the command

michelle1:/# du -xsmc /*/

which took arrond 17 hours... on a partiton of 3 GByte!!!

Why?  This pig access ANY network drives (NFS shares) it finds...

For example on my Office Workstation:

----[ 'df -m' ]---------------------------------------------------------
Dateisystem          1M-Blöcke   Benutzt Verfügbar Ben% Eingehängt auf
/dev/hda1                 2819      2544       132  96% /
tmpfs                      253         0       253   0% /lib/init/rw
udev                        10         1        10   2% /dev
/dev/hda3                 3753       812      2751  23% /tmp
/dev/hda4                  397       128       249  34% /var/log
192.168.0.69:/home       17087     16186        33 100% /home
192.168.0.69:/Maildirs
                         17087     15932       288  99% /Maildirs
/dev/hdb1                  941       725       169  82% /media/hdb/1
/dev/hdb3                 2380         9      2253   1% /media/hdb/3
/dev/hdb5                 2831      1095      1593  41% /media/hdb/5
/dev/hdb6                 2831      1095      1593  41% /media/hdb/6
/dev/hdb7                 2831      1095      1593  41% /media/hdb/7
/dev/hdb8                 4705      1892      2575  43% /media/hdb/8
/dev/hdb9                 1778       308      1376  19% /media/hdb/9
/dev/hdb10                3747       209      3349   6% /media/hdb/10
/dev/hdb11               34308      7381     25210  23% /media/hdb/11
192.168.0.69:/home_www
                          8540      6421      1685  80% /home_www
------------------------------------------------------------------------

----[ 'du -xsmc /*/' ]--------------------------------------------------
85760   /Maildirs/
4       /bin/
24      /boot/
1       /dev/
13      /etc/
816014  /home/
12006274        /home_www/
1       /initrd/
100     /lib/
1       /lost+found/
1       /media/
1       /mnt/
1       /opt/
515     /proc/
2       /root/
5       /sbin/
1       /srv/
0       /sys/
748     /tmp/
2099    /usr/
232     /var/
12911797        total
------------------------------------------------------------------------

and another test with an interesting result...

----[ 'du -smc /media/ /var/ /var/log/ /tmp/' ]-------------------------
13682   /media/
352     /var/
120     /var/log/
748     /tmp/
14900   total
------------------------------------------------------------------------

As you can see, /media/ was excluded entirely, while /var/log/  partialy
and not /tmp/ not from this run.

Now a third test using the "-x" option:

----[ 'du -xsmc /media/ /var/ /var/log/ /tmp/' ]------------------------
1       /media/
232     /var/
120     /var/log/
748     /tmp/
1099    total
------------------------------------------------------------------------

and a fourth test:

----[ 'du -xsmc /media/hdb/*/ /var/ /var/log/ /tmp/' ]------------------
717     /media/hdb/1/
201     /media/hdb/10/
7349    /media/hdb/11/
1       /media/hdb/2/
1       /media/hdb/3/
1       /media/hdb/4/
1087    /media/hdb/5/
1087    /media/hdb/6/
1087    /media/hdb/7/
1860    /media/hdb/8/
299     /media/hdb/9/
232     /var/
120     /var/log/
748     /tmp/
14780   total
------------------------------------------------------------------------


I think, according to "du --help" and the manpage,  the  parameter  "-x"
should exclude Network drives too...

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


--- End Message ---
--- Begin Message --- You probably want du -x --max-depth 1 /

Mike Stone


--- End Message ---

Reply via email to