我已完成以下命令:
App.accessRule('*://*youtube.com', 'navigation');
我看到文件空间是2.2G 然后我使用以下命令删除了该文件:sudo rm -rf /data/lfs.csv
当我在这个分区(sdd1)上再次检查空间时,我注意到文件得到的空间没有释放:
[equalum@eqclstr006a ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 30G 1.9G 28G 7% /
devtmpfs 6.9G 0 6.9G 0% /dev
tmpfs 6.9G 0 6.9G 0% /dev/shm
tmpfs 6.9G 49M 6.9G 1% /run
tmpfs 6.9G 0 6.9G 0% /sys/fs/cgroup
/dev/sda1 497M 62M 436M 13% /boot
/dev/sdb1 28G 45M 26G 1% /mnt/resource
/dev/sdc 148G 2.0G 139G 2% /eq
tmpfs 1.4G 0 1.4G 0% /run/user/1001
**/dev/sdd1 493G 2.2G 465G 1% /data**
tmpfs 1.4G 0 1.4G 0% /run/user/1000
我怎样才能释放想要的空间?
答案 0 :(得分:1)
确定此问题的解决方案是确定哪些进程保存文件,执行以下命令:
[user123@eqclstr006a ~]$ sudo /usr/sbin/lsof | grep deleted
tuned 915 root 7u REG 8,2 4096 50331727 /tmp/ffiyukbzX (deleted)
gmain 915 1116 root 7u REG 8,2 4096 50331727 /tmp/ffiyukbzX (deleted)
tuned 915 1118 root 7u REG 8,2 4096 50331727 /tmp/ffiyukbzX (deleted)
tuned 915 1119 root 7u REG 8,2 4096 50331727 /tmp/ffiyukbzX (deleted)
tuned 915 1120 root 7u REG 8,2 4096 50331727 /tmp/ffiyukbzX (deleted)
tail 124110 equalum 3r REG 8,49 2154610690 13 /data/lfs.csv (deleted)
lfs.sh 125254 equalum 1w REG 8,49 37589318 14 /data/lfs.csv (deleted)
tail 125256 equalum 3r REG 8,49 37589318 14 /data/lfs.csv (deleted)
通过以下方式释放所有相关的PID:
kill 915 124110 125254 125256