I'm trying to track down why /var is full, and df and du report major
differences (or else I'm reading something wrong, in which case I submit
to the verbal beatings). Pay attention to what it says for /var.
Running OpenBSD 3.8 GENERIC as a firewall. Why does df report 8G used,
and du report 9M used? What am I missing? (Don't comment on the size of
the / partition, I just realized I made a mistake there, but there are
no user accounts on this machine, and /var is on a different partition,
so I don't have to worry about log file sizes killing the machine.)
# cat /etc/fstab
/dev/wd0a / ffs softdep,rw 1 1
/dev/wd0e /tmp ffs softdep,rw,nodev,nosuid 1 2
/dev/wd0d /var ffs softdep,rw,nodev,nosuid 1 2
# mount
/dev/wd0a on / type ffs (local, softdep)
/dev/wd0e on /tmp type ffs (local, nodev, nosuid, softdep)
/dev/wd0d on /var type ffs (local, nodev, nosuid, softdep)
# df -k
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/wd0a 59392362 990286 55432458 2% /
/dev/wd0e 1005854 2 955560 0% /tmp
/dev/wd0d 8255550 8117786 -275012 104% /var
# cd /
# du -ksc *
2 altroot
5310 bin
40 boot
4784 bsd
4784 bsd.mp
4672 bsd.old
4208 bsd.rd
34 dev
2228 etc
2 home
2 mnt
4560 obsd
6830 root
13718 sbin
2 stand
0 sys
2 tmp
939104 usr
9610 var
999892 total
# cd /var
# du -ksc *
2 account
2 audit
2 authpf
828 backups
4 crash
34 cron
1440 db
4 empty
44 games
142 log
8 mail
4 msgs
28 named
2 quotas
90 run
2 rwho
308 spool
4 tmp
6632 www
28 yp
9608 total
# ls -al
total 92
drwxr-xr-x 22 root wheel 512 Sep 10 15:10 .
drwxr-xr-x 14 root wheel 512 Nov 1 09:15 ..
drwxr-xr-x 2 root wheel 512 Sep 10 15:10 account
drwxrws--- 2 root wheel 512 Sep 10 15:10 audit
drwxrwx--- 2 root authpf 512 Sep 10 15:10 authpf
drwx------ 2 root wheel 4096 Nov 8 01:31 backups
drwxrwx--- 2 root wheel 512 Nov 1 09:15 crash
dr-xr-xr-x 4 root wheel 512 Nov 7 00:00 cron
drwxr-xr-x 4 root wheel 512 Nov 5 03:30 db
drwxr-xr-x 3 root wheel 512 Sep 10 15:10 empty
drwxrwxr-x 5 root games 512 Nov 1 09:15 games
drwxr-xr-x 3 root wheel 1024 Nov 8 09:00 log
drwxr-xr-x 2 root wheel 512 Nov 1 09:15 mail
drwxr-xr-x 2 daemon wheel 512 Nov 1 09:15 msgs
drwxr-xr-x 7 root wheel 512 Nov 1 09:15 named
drwxr-x--- 2 root operator 512 Sep 10 15:10 quotas
drwxr-xr-x 2 root wheel 512 Nov 1 09:27 run
drwxr-xr-x 2 root wheel 512 Sep 10 15:10 rwho
drwxr-xr-x 9 root wheel 512 Sep 10 15:10 spool
drwxrwxrwt 3 root wheel 512 Nov 5 03:30 tmp
drwxr-xr-x 8 root daemon 512 Sep 10 15:10 www
drwxr-xr-x 2 root wheel 512 Sep 10 15:20 yp
# ls -al .*
ls: .*: No such file or directory
# dmesg
uid 0 on /var: file system full
uid 0 on /var: file system full
uid 0 on /var: file system full
uid 0 on /var: file system full
uid 0 on /var: file system full
uid 0 on /var: file system full
uid 0 on /var: file system full
uid 0 on /var: file system full
-----REAL DMESG ---------
OpenBSD 3.8 (GENERIC.MP) #504: Sat Sep 10 16:02:38 MDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4227395584 (4128316K)
avail mem = 3632812032 (3547668K)
using 22937 buffers containing 422948864 bytes (413036K) of memory
mainbus0 (root)
mainbus0: Intel MP Specification (Version 1.4) (TYAN S2881 )
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Opteron(tm) Processor 248, 2192.40 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 199276705Hz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Opteron(tm) Processor 248, 2192.05 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,LONG,3DNOW2,3DNOW
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB
64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
mpbios: bus 0 is type PCI
mpbios: bus 1 is type PCI
mpbios: bus 2 is type PCI
mpbios: bus 3 is type PCI
mpbios: bus 4 is type ISA
ioapic0 at mainbus0 apid 2: pa 0xffff800006cbde24, version 11, 24 pins
ioapic1 at mainbus0 apid 3: pa 0xffff800006cbdd24, version 11, 4 pins
ioapic2 at mainbus0 apid 4: pa 0xffff800006cbdc24, version 11, 4 pins
pci0 at mainbus0 bus 0: configuration mode 1
ppb0 at pci0 dev 6 function 0 "AMD 8111 PCI-PCI" rev 0x07
pci1 at ppb0 bus 3
ohci0 at pci1 dev 0 function 0 "AMD 8111 USB" rev 0x0b: apic 2 int 19
(irq 10), version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: AMD OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci1 dev 0 function 1 "AMD 8111 USB" rev 0x0b: apic 2 int 19
(irq 10), version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: AMD OHCI root hub, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
vga1 at pci1 dev 6 function 0 "ATI Rage XL" rev 0x27
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"AMD AMD8111 LPC" rev 0x05 at pci0 dev 7 function 0 not configured
pciide0 at pci0 dev 7 function 1 "AMD 8111 IDE" rev 0x03: DMA, channel 0
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <WDC WD800JB-00JJC0>
wd0: 16-sector PIO, LBA, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <SAMSUNG, CD-ROM SN-124, N103> SCSI0
5/cdrom removable
wd1 at pciide0 channel 1 drive 1: <WDC WD800JB-00JJC0>
wd1: 16-sector PIO, LBA, 76319MB, 156301488 sectors
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
wd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 5
"AMD 8111 SMBus" rev 0x02 at pci0 dev 7 function 2 not configured
"AMD 8111 ACPI" rev 0x05 at pci0 dev 7 function 3 not configured
ppb1 at pci0 dev 10 function 0 "AMD 8131 PCIX" rev 0x12
pci2 at ppb1 bus 2
bge0 at pci2 dev 9 function 0 "Broadcom BCM5704C" rev 0x03, BCM5704 A3
(0x2003): apic 3 int 0 (irq 5) address 00:e0:81:30:b8:22
brgphy0 at bge0 phy 1: BCM5704 10/100/1000baseT PHY, rev. 0
bge1 at pci2 dev 9 function 1 "Broadcom BCM5704C" rev 0x03, BCM5704 A3
(0x2003): apic 3 int 1 (irq 9) address 00:e0:81:30:b8:23
brgphy1 at bge1 phy 1: BCM5704 10/100/1000baseT PHY, rev. 0
aapic0 at pci0 dev 10 function 1 "AMD 8131 PCIX IOAPIC" rev 0x01
ppb2 at pci0 dev 11 function 0 "AMD 8131 PCIX" rev 0x12
pci3 at ppb2 bus 1
bge2 at pci3 dev 3 function 0 "Broadcom BCM5701" rev 0x15, BCM5701 B5
(0x0105): apic 4 int 0 (irq 5) address 00:04:76:ec:a5:29
aapic1 at pci0 dev 11 function 1 "AMD 8131 PCIX IOAPIC" rev 0x01
pchb0 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport" rev 0x00
pchb1 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev 0x00
pchb2 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00
pchb3 at pci0 dev 24 function 3 "AMD AMD64 Misc Cfg" rev 0x00
pchb4 at pci0 dev 25 function 0 "AMD AMD64 HyperTransport" rev 0x00
pchb5 at pci0 dev 25 function 1 "AMD AMD64 Address Map" rev 0x00
pchb6 at pci0 dev 25 function 2 "AMD AMD64 DRAM Cfg" rev 0x00
pchb7 at pci0 dev 25 function 3 "AMD AMD64 Misc Cfg" rev 0x00
isa0 at mainbus0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 0x290/8: W83627HF
dkcsum: wd0 matches BIOS drive 0x80
wd1: no disk label
dkcsum: wd1 matches BIOS drive 0x81
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302