1833695 Members
3522 Online
110062 Solutions
New Discussion

what files are busy?

 
Greg Hall
Frequent Advisor

what files are busy?

Hi,

HPUX v11.11. Is there anything equivalent to AIX's filemon command, to identify busy files?
I have used Glance to identify busy filesystems, and looked at open files per some processes to drill down further, but its a tedious way to find busy files.

thanks, Greg
Confucious Confused
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor

Re: what files are busy?

Hi Greg:

The simplest, standard command for HP-UX is 'fuser'. See its man pages for more information.

Another tool that you can obtain from the HP-UX porting archives is 'lsof':

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.75/

Regards!

...JRF...
Sandman!
Honored Contributor

Re: what files are busy?

Greg,

lsof would be the tool of choice and it has a lot of options for listing busy files. In case you don't have it, download it from http://hpux.cs.utah.edu/

regards!
Greg Hall
Frequent Advisor

Re: what files are busy?

Hi James and Mr Sandman,

thanks, I'm aware of fuser and lsof. But they kinda presume I know which files are busy or which procs are causing disk activity.
I know there is activity in /usr, (probably entirely legitimate but clients love to blame the OS), and I want to know what files are busy.

thanks anyway.

Greg
Confucious Confused
Sandman!
Honored Contributor

Re: what files are busy?

In that case use the following command to find out what files in /usr are busy...

# lsof /usr

cheers!
Ted Buis
Honored Contributor

Re: what files are busy?

fuser -cu /your_file_system_mount_point
e.g. fuser -cu /usr
Mom 6
B. Hulst
Trusted Contributor

Re: what files are busy?

Hi,

Or you could try monitoring the system with Glance.

This 'extremly enhanced top' program should be able to show you which process is writing where and how much.

Regards,
Bob
Sยภเl Kย๓คг
Respected Contributor

Re: what files are busy?

Hi,

lsof should be able to help you rather than fuser -cu

Regards,
Sunil
Your imagination is the preview of your life's coming attractions
Raj D.
Honored Contributor

Re: what files are busy?

Hi Greg ,

lsof would be a good tool , that can be used to check busy file statics , and can be use with script , to monitor for a period , as filemon does in aix by starting the trace daemon in background.

Here is the link:

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.75/


lsof binary can be found here:
http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/binaries/hpux/

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "