Operating System - HP-UX
1832204 Members
2576 Online
110039 Solutions
New Discussion

Re: deleted files space not returned

 
SOLVED
Go to solution
Donald Thaler
Super Advisor

deleted files space not returned

deleted files from system, but space utilized not returned. ran script to find process that had files, but no process's are found.
fuser -u /u03/oradata/archive|cut -d "c" -f1|xargs -n1 > /tmp/file..

short of rebooting the server what can i do???
4 REPLIES 4
yulianto piyut
Valued Contributor

Re: deleted files space not returned

hi Donald,

You can check with lsof. There are processess that hung at still hold the size.

-yut-
marvik
Regular Advisor
Solution

Re: deleted files space not returned

Hi Donald,

check it out with man lsof it will tell u of options where u come to know of pid using that log file.
Once the file is rm'ed with fuser or simple lsof u won't get anything.

For future, its recommended to use
" > filename " to empty it than rm it.
Incase ur unable to find the process then reboot is final take

Thanks
Marvik
john123
Trusted Contributor

Re: deleted files space not returned

Hi Donald..,

Try lsof to find any opened files.
And try by giving a HUP signal to the process if you you found any process have opened files

JOhn
Sajjad Sahir
Honored Contributor

Re: deleted files space not returned

my be inodes are open
u have to check it