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).When a file is deleted with the rm(1) command only the reference count is decreased. the file has other directory entries due to symlinks) then the underlying file data is not removed.
The first time is described in this closed question on Stack Overflow.
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.
i delete the file without restarting the mysql server disk space still shows 100 % because the file was locked. solution is to restart the process holding the lock on the file or quick reboot the server.
After a test run, I delete the files (sometimes without having imported into the database).
I notice that there is a steady decrease in the amount of free space on my disk (as reported by ).
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 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% /tmpusually when this happens, it means some open process is still locking the sector on the disk.