I am new to the linux and working with centos system , By running command df -H it is showing 82% if full, that is only 15GB is free.
我是linux新手并使用centos系统,通过运行命令df -H它显示82%如果已满,那只有15GB是免费的。
I want some more extra spaces, so using WINSCP i hav done shift deleted the 15G record.
我想要一些额外的空间,所以使用WINSCP我已经完成了删除15G记录。
and execured df -H once again, but still it is showing 15 GB free. but the free size of the deleted file where it goes.
然后再次执行df -H,但它仍然显示15 GB免费。但删除文件的空闲大小。
Plese help me out in finding solution to this
请帮助我找到解决方案
1 个解决方案
#1
5
In most unix filesystems, if a file is open, the OS will delete the file right way, but will not release space until the file is closed. Why? Because the file is still visible for the user that opened it.
在大多数unix文件系统中,如果文件是打开的,操作系统将以正确方式删除文件,但在文件关闭之前不会释放空间。为什么?因为打开它的用户仍然可以看到该文件。
On the other side, Windows used to complain that it can't delete a file because it is in use, seems that in later incarnations explorer will pretend to delete the file.
另一方面,Windows曾经抱怨它无法删除文件,因为它正在使用中,似乎在以后的版本中,资源管理器会假装删除该文件。
Some applications are famous for bad behavior related to this fact. For example, I have to deal with some versions of MySQL that will not properly close some files, over the time I can find several GB of space wasted in /tmp.
一些应用程序因与此事实相关的不良行为而闻名。例如,我必须处理某些版本的MySQL,这些版本无法正确关闭某些文件,因为我可以在/ tmp中找到浪费的几GB空间。
You can use the lsof command to list open files (man lsof). If the problem is related to open files, and you can afford a reboot, most likely it is the easiest way to fix the problem.
您可以使用lsof命令列出打开的文件(man lsof)。如果问题与打开文件有关,并且您可以重新启动,则很可能是解决问题的最简单方法。
#1
5
In most unix filesystems, if a file is open, the OS will delete the file right way, but will not release space until the file is closed. Why? Because the file is still visible for the user that opened it.
在大多数unix文件系统中,如果文件是打开的,操作系统将以正确方式删除文件,但在文件关闭之前不会释放空间。为什么?因为打开它的用户仍然可以看到该文件。
On the other side, Windows used to complain that it can't delete a file because it is in use, seems that in later incarnations explorer will pretend to delete the file.
另一方面,Windows曾经抱怨它无法删除文件,因为它正在使用中,似乎在以后的版本中,资源管理器会假装删除该文件。
Some applications are famous for bad behavior related to this fact. For example, I have to deal with some versions of MySQL that will not properly close some files, over the time I can find several GB of space wasted in /tmp.
一些应用程序因与此事实相关的不良行为而闻名。例如,我必须处理某些版本的MySQL,这些版本无法正确关闭某些文件,因为我可以在/ tmp中找到浪费的几GB空间。
You can use the lsof command to list open files (man lsof). If the problem is related to open files, and you can afford a reboot, most likely it is the easiest way to fix the problem.
您可以使用lsof命令列出打开的文件(man lsof)。如果问题与打开文件有关,并且您可以重新启动,则很可能是解决问题的最简单方法。