example: main drive shows 100 % disk space used i check what is going on and i notice that the mysql slow log takes all that big space.
2 others ways to get the disk is full issue: 1) hidden under a mount point: linux will show a full disk with files "hidden" under a mount point.
If you have data written to the drive and mount another filesystem over it, linux correctly notes the disk usage even though you can't see the files under the mount point.
If you have nfs mounts, try umounting them and looking to see if anything was accidentally written in those directories before the mount.
2) corrupted files: I see this occasionally on windows to linux file transfer via SMB.
An easy way to observe this is to do the following Until the background process is terminated the file space used by /tmp/cat-test will remain allocated and unavailable as reported by df(1) but the du(1) command will not be able to account for it as it no longer has a filename.
Note that if the system should crash without the process closing the file then the file data will still be present but unreferenced, an fsck(8) run will be needed to recover the filesystem space.Why df command still showing 100% disk used at dev/xvda2?Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvda2 101471352 97968944 0 100% / /dev/xvda1 101086 27568 68299 29% /boot tmpfs 2097152 0 2097152 0% /dev/shm /dev/xvdc1 154816488 101374388 45577884 69% /backup /usr/tmp DSK 495844 10858 459386 3% /tmp Edit This is what i got after running df -ih Filesystem Inodes IUsed IFree IUse% Mounted on /dev/xvda2 25M 652K 25M 3% / /dev/xvda1 26K 55 26K 1% /boot tmpfs 512K 1 512K 1% /dev/shm /dev/xvdc1 19M 497K 19M 3% /backup /usr/tmp DSK 126K 294 125K 1% /tmp Why df command still showing 100% disk used at dev/xvda2?Dealing with old Cent OS 5.6 box, with no lvm setup, my root file system / is full, I have cleared many old log files and application files that I don't need, which was more then 2 -5GB in size, however my system still reports that disk is full.[[email protected] ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 130G 124G 0 100% / /dev/sdb1 264G 188M 250G 1% /data /dev/sda1 99M 24M 71M 26% /boot tmpfs 2.0G 0 2.0G 0% /dev/shm [[email protected] ~]# mount /dev/sda3 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/sdb1 on /data type ext3 (rw) /dev/sda1 on /boot type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) can write to, so that critical system process don't fall over when normal users run out of disk space.In BSD a directory entry is simply one of many references to the underlying file data (called an inode).