Operating System - HP-UX
1753964 Members
7252 Online
108811 Solutions
New Discussion юеВ

difference bettween size?

 
SOLVED
Go to solution
taouw
Frequent Advisor

difference bettween size?

hi,
can anyone help me to see the real size that i have:
I have 1 logical volume (/dev/vg00/lvol2):
total 78460135KB (78GB)
free allocated 4377680kb (4GB)
used allocated 74082455kb (74GB)
95% allocated used
this logical volume is mounted in /hf

but when i check files in /hf directory; i found the following:
only one directory /data
/hf/data/12.u001 (0.5GB)
/hf/data/13.u001 (1GB)
/hf/data/14.u001 (0.5GB)

the total size is 2 GB

why there is a difference between 74 GB and 2 GB allocated in hf directory? and how can i check the real used space?
is there any hidden file or no????
is there any way to find what is hapening to 72 GB allocated "the difference"
5 REPLIES 5
Tim Nelson
Honored Contributor
Solution

Re: difference bettween size?

Typically this is cause by deleting a file that is still in use by a process.

Will need to stop and restart the process that still has the file(s) open.

lsof can help to find open files in filesystems.

taouw
Frequent Advisor

Re: difference bettween size?

thank y for yr help but how can we stop and restart the process that still has the file open, can y give me a simple example please!!


taouw
Frequent Advisor

Re: difference bettween size?

can y please check the following steps, it is wrong or right ????

# fuser -u /hf

#kill -9 idprocess # to Kill all processes with files

but what is the difference between this method and lsof method ???????
taouw
Frequent Advisor

Re: difference bettween size?

can y please check the following steps, it is wrong or right ????

# fuser -u /hf

#kill -9 idprocess # to Kill all processes with files open in hf directory

but what is the difference between this method and lsof method ???????
Bill Hassell
Honored Contributor

Re: difference bettween size?

fuser is only about 50% accurate in identifying all open files. lsof is the most accurate way to find all open files.


Bill Hassell, sysadmin