df vs. du difference
Hi, I'm having a problem with disk space usage (getting low on it), so I ran a quick du on my drive, and it comes out differently than df. Can anyone help me figure out why this is? I have pasted my commands and output below:
fileserver:/ admin$ df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/disk7 76Gi 71Gi 5.1Gi 94% /
devfs 115Ki 115Ki 0Bi 100% /dev
fdesc 1.0Ki 1.0Ki 0Bi 100% /dev
/dev/disk8s2 698Gi 351Gi 348Gi 51% /Volumes/Users
map -hosts 0Bi 0Bi 0Bi 100% /net
map auto_home 0Bi 0Bi 0Bi 100% /home
map -fstab 0Bi 0Bi 0Bi 100% /Network/Servers
map -static 0Bi 0Bi 0Bi 100% /Network/Applications
/dev/disk9 14Ti 5.9Ti 7.8Ti 44% /Volumes/xsanvol
fileserver:vm admin$ sudo du -schx /*
10G /Applications
4.0K /Desktop DB
8.0K /Desktop DF
0B /Desktop Folder
1.8G /Developer
0B /Groups
191M /Image Management
1.5G /Library
2.0K /Network
786M /Network Applications
207M /Network Library
8.0K /Shared Items
3.9G /System
1.3G /Users
32M /Volumes
7.5M /bin
0B /cores
2.0K /dev
4.0K /etc
1.0K /home
604K /mach.sym
9.8M /mach_kernel
10M /mach_kernel.ctfsys
du: /net/localhost: Operation timed out
du: /net/broadcasthost: Operation timed out
du: /net/fileserver.local: Operation timed out
1.0K /net
228M /opt
11G /private
5.3M /sbin
4.0K /tmp
1.9G /usr
4.0K /var
33G total