Operating System - HP-UX
1833777 Members
1918 Online
110063 Solutions
New Discussion

Re: Disk I/O - what file is causing it

 
Midrange Systems Unix
Occasional Contributor

Disk I/O - what file is causing it

In Glance, when drilling down to I/O by lvol, I see that the /opt mount point has a lot of lv writes compared to other servers here. Is there a way to determine which file or process on that mount point is doing the most writing to the disk? I want to determine if it is HP-UX or an application causing the writes.
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Disk I/O - what file is causing it

You should be able to get a handle on the process by drilling into glance.

As to what resources the process is using, I would suggest lsof.

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.70/

You will have to set suid on the binary to get the install to work right.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Anil C. Sedha
Trusted Contributor

Re: Disk I/O - what file is causing it

You must do a

fuser /opt

as root

then you will be shown a few process id's.

Do a ps -ef | grep "number" (number is the process id you will get through fuser command)

Then you can look it up in another window through top and see if the process id is using a lot of CPU.

-Anil
If you need to learn, now is the best opportunity