Quotidien Shaarli

Tous les liens d'un jour sur une page.

April 6, 2023

Why is space not being freed from disk after deleting a file in Red Hat Enterprise Linux? - Red Hat Customer Portal

lsof | egrep "deleted|COMMAND"
-> note PID and FD number
file /proc/<PID>/fd/<FD number>
-> "broken symbolic link to ..."
echo > /proc/<PID>/fd/<FD number>

If datafiles of an INDEX tablespace, do not forget to check integrity :
select 'alter index "||index_name||' validate structure;' from dba_indexes where tablespace_name='PSINDEX';