[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Discrepencies between du and df.



Hi All,

I am having a strange problem where the output of du and df do not
correlate. Here are the symptoms :

$df /var
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda10              606405    596139         0 100% /var

$du -s /var
54157	/var

Here we can see that du thinks there is only about 54M used but df reckons
there is over 596M used.

I am using kernel 2.2.14, which is old but I cannot upgrade because I am
using an IDE raid device from Raidzone (Smartcan)  which they no longer
support and have no more drivers for. I will include further diagnostic
info below.

Here is the output of mount :

/dev/hda8 on / type ext2 (rw,errors=remount-ro)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda1 on /boot type ext2 (rw)
/dev/hda5 on /usr type ext2 (rw)
/dev/hda10 on /var type ext2 (rw)
/dev/hda6 on /home type ext2 (rw)
/dev/rza1 on /raid type ext2 (rw)

I have attached the output of dmesg. If anyone has any advice I would be
most grateful.

Kind regards, Fred.

Linux version 2.2.14 (root@localhost) (gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #9 SMP Fri Mar 2 19:52:54 GMT 2001
Warning only 960MB will be used.
Intel MultiProcessor Specification v1.4
    Virtual Wire compatibility mode.
OEM ID: INTEL    Product ID: Lancewood    APIC at: 0xFEE00000
Processor #1 Pentium(tm) Pro APIC version 17
Processor #0 Pentium(tm) Pro APIC version 17
I/O APIC #2 Version 17 at 0xFEC00000.
Processors: 2
mapped APIC to ffffe000 (fee00000)
mapped IOAPIC to ffffd000 (fec00000)
Detected 696421855 Hz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 694.68 BogoMIPS
Memory: 971520k/983040k available (1004k kernel code, 436k reserved, 10012k data, 68k init)
Dentry hash table entries: 131072 (order 8, 1024k)
Buffer cache hash table entries: 524288 (order 9, 2048k)
Page cache hash table entries: 262144 (order 8, 1024k)
Pentium-III serial number disabled.
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
Pentium-III serial number disabled.
per-CPU timeslice cutoff: 50.03 usecs.
CPU1: Intel Pentium III (Coppermine) stepping 03
calibrating APIC timer ... 
..... CPU clock speed is 696.4089 MHz.
..... system bus clock speed is 99.4868 MHz.
Booting processor 0 eip 2000
Calibrating delay loop... 694.68 BogoMIPS
Pentium-III serial number disabled.
OK.
CPU0: Intel Pentium III (Coppermine) stepping 03
Total of 2 processors activated (1389.36 BogoMIPS).
enabling symmetric IO mode... ...done.
ENABLING IO-APIC IRQs
init IO_APIC IRQs
 IO-APIC (apicid-pin) 2-0, 2-5, 2-9, 2-10, 2-11, 2-16, 2-17, 2-18, 2-22 not connected.
number of MP IRQ sources: 20.
number of IO-APIC #2 registers: 24.
testing the IO APIC.......................

IO APIC #2......
.... register #00: 02000000
.......    : physical APIC id: 02
.... register #01: 00170011
.......     : max redirection entries: 0017
.......     : IO APIC version: 0011
.... register #02: 00000000
.......     : arbitration: 00
.... IRQ redirection table:
 NR Log Phy Mask Trig IRR Pol Stat Dest Deli Vect:   
 00 000 00  1    0    0   0   0    0    0    00
 01 000 00  0    0    0   0   0    1    1    59
 02 0FF 0F  0    0    0   0   0    1    1    51
 03 000 00  0    0    0   0   0    1    1    61
 04 000 00  0    0    0   0   0    1    1    69
 05 000 00  1    0    0   0   0    0    0    00
 06 000 00  0    0    0   0   0    1    1    71
 07 000 00  0    0    0   0   0    1    1    79
 08 000 00  0    0    0   0   0    1    1    81
 09 000 00  1    0    0   0   0    0    0    00
 0a 000 00  1    0    0   0   0    0    0    00
 0b 000 00  1    0    0   0   0    0    0    00
 0c 000 00  0    0    0   0   0    1    1    89
 0d 000 00  1    0    0   0   0    0    0    00
 0e 000 00  0    0    0   0   0    1    1    91
 0f 000 00  0    0    0   0   0    1    1    99
 10 000 00  1    0    0   0   0    0    0    00
 11 000 00  1    0    0   0   0    0    0    00
 12 000 00  1    0    0   0   0    0    0    00
 13 0FF 0F  1    1    0   1   0    1    1    A1
 14 0FF 0F  1    1    0   1   0    1    1    A9
 15 0FF 0F  1    1    0   1   0    1    1    B1
 16 000 00  1    0    0   0   0    0    0    00
 17 0FF 0F  1    1    0   1   0    1    1    B9
IRQ to pin mappings:
IRQ0 -> 2
IRQ1 -> 1
IRQ3 -> 3
IRQ4 -> 4
IRQ6 -> 6
IRQ7 -> 7
IRQ8 -> 8
IRQ12 -> 12
IRQ13 -> 13
IRQ14 -> 14
IRQ15 -> 15
IRQ19 -> 19
IRQ20 -> 20
IRQ21 -> 21
IRQ23 -> 23
.................................... done.
PCI: PCI BIOS revision 2.10 entry at 0xfdab0
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI->APIC IRQ transform: (B0,I12,P0) -> 19
PCI->APIC IRQ transform: (B0,I12,P0) -> 19
PCI->APIC IRQ transform: (B0,I14,P0) -> 21
PCI->APIC IRQ transform: (B0,I18,P3) -> 21
PCI->APIC IRQ transform: (B2,I4,P0) -> 20
PCI->APIC IRQ transform: (B3,I4,P0) -> 23
PCI->APIC IRQ transform: (B4,I12,P0) -> 23
PCI->APIC IRQ transform: (B4,I12,P0) -> 23
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
TCP: Hash tables configured (ehash 524288 bhash 65536)
Starting kswapd v 1.5 
Detected PS/2 Mouse Port.
Serial driver version 4.27 with no serial options enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
pty: 256 Unix98 ptys configured
PIIX4: IDE controller on PCI bus 00 dev 91
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0x2860-0x2867, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0x2868-0x286f, BIOS settings: hdc:DMA, hdd:pio
RAIDZONE: New Smartcan 5-way on PCI bus 4
rzft: 6: Registering new smartcan on PCI Bus 4
    ide4a: BM-DMA at 0x5800-0x5807
    ide4b: BM-DMA at 0x5900-0x5907
    ide4c: BM-DMA at 0x5a00-0x5a07
    ide4d: BM-DMA at 0x5b00-0x5b07
    ide4e: BM-DMA at 0x5c00-0x5c07
hda: QUANTUM FIREBALLP LM15, ATA DISK drive
hd4a: IBM-DTLA-307075, ATA DISK drive
hd4b: IBM-DTLA-307075, ATA DISK drive
hd4c: IBM-DTLA-307075, ATA DISK drive
hd4d: IBM-DTLA-307075, ATA DISK drive
hd4e: IBM-DTLA-307075, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide4a at 0x5040-0x5047,0x5022 on irq 23
ide4b at 0x5048-0x504f,0x5026 on irq 23
ide4c at 0x5050-0x5057,0x502a on irq 23
ide4d at 0x5058-0x505f,0x502e on irq 23
ide4e at 0x5060-0x5067,0x5032 on irq 23
hda: QUANTUM FIREBALLP LM15, 14324MB w/1900kB Cache, CHS=1826/255/63, UDMA
hd4a: IBM-DTLA-307075, 73308MB w/1916kB Cache, CHS=9345/255/63, (U)DMA
hd4b: IBM-DTLA-307075, 73308MB w/1916kB Cache, CHS=9345/255/63, (U)DMA
hd4c: IBM-DTLA-307075, 73308MB w/1916kB Cache, CHS=9345/255/63, (U)DMA
hd4d: IBM-DTLA-307075, 73308MB w/1916kB Cache, CHS=9345/255/63, (U)DMA
hd4e: IBM-DTLA-307075, 73308MB w/1916kB Cache, CHS=9345/255/63, (U)DMA
RAIDZONE rzft driver (v1.3.4).
Floppy drive(s): fd0 is 1.44M
FDC 0 is a National Semiconductor PC87306
scsi : 0 hosts.
scsi : detected total.
PPP: version 2.3.7 (demand dialling)
TCP compression code copyright 1989 Regents of the University of California
PPP line discipline registered.
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256) (6 bit encapsulation enabled).
CSLIP: code copyright 1989 Regents of the University of California.
SLIP linefill/keepalive option.
eth0: Intel EtherExpress Pro 10/100 at 0x2800, 00:90:27:6A:47:97, IRQ 21.
  Board assembly 000000-000, Physical connectors present: RJ45
  Primary interface chip i82555 PHY #1.
  General self-test: passed.
  Serial sub-system self-test: passed.
  Internal registers self-test: passed.
  ROM checksum self-test: passed (0x04f4518b).
  Receiver lock-up workaround activated.
Partition check:
 hda: hda1 hda2 < hda5 hda6 hda7 hda8 hda9 hda10 >
 hd4a: hd4a1
 hd4b: hd4b1
 hd4c: hd4c1
 hd4d: hd4d1
 hd4e: hd4e1
 rza: rza1
 rza: rza1
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 68k freed
Adding Swap: 265032k swap-space (priority -1)
3c59x.c:v0.99H 11/17/98 Donald Becker http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html
eth1: 3Com 3c905B Cyclone 100baseTx at 0x3000,  00:01:02:21:36:97, IRQ 20
  8K byte-wide RAM 5:3 Rx:Tx split, autoselect/Autonegotiate interface.
  MII transceiver found at address 24, status 786d.
  MII transceiver found at address 0, status 786d.
  Enabling bus-master transmits and whole-frame receives.
send_arp uses obsolete (PF_INET,SOCK_PACKET)

Reply to: