author:skate
time:2009/12/09
?
linux删除文件后没有释放空间
?
今天发现一台服务器的home空间满了,于是要清空无用的文件,当我删除文件后,发现可用空间没有变化
?
os:centos4.7
现象:
?
发现当前磁盘空间使用情况:
?
[root@ticketb ~]# df -h
Filesystem??????????? Size? Used Avail Use% Mounted on
/dev/sda1???????????? 981M? 203M? 729M? 22% /
none?????????????????? 16G???? 0?? 16G?? 0% /dev/shm
/dev/sda9???????????? 2.9G?? 37M? 2.7G?? 2% /tmp
/dev/sda7???????????? 4.9G? 1.9G? 2.7G? 42% /usr
/dev/sda8???????????? 2.9G? 145M? 2.6G?? 6% /var
/dev/mapper/vghome-lvhome
?????????????????????? 20G?? 19G?? 11M 100% /home
/dev/mapper/vgoradata-lvoradata
????????????????????? 144G?? 48G?? 90G? 35% /u01/oradata
/dev/mapper/vgbackup-lvbackup
????????????????????? 193G? 7.8G? 175G?? 5% /u01/backup
通过下面的命令找到无用的文件,然后删除
[root@ticketb ~]# find /home/oracle/admin/dbticb/udump/ -name "dbticb_*.trc" -mtime +50 | xargs rm -rf
?
然后在查看磁盘空间使用情况,发现没有/home空间没有变化