1832856 Members
2998 Online
110047 Solutions
New Discussion

Lock Files

 
Pando
Regular Advisor

Lock Files

Dear Gurus,

I would like to ask how to identify the stat of lock files and and list them?
Thanks!

Maximum point for all correct answers!
4 REPLIES 4
Robert-Jan Goossens
Honored Contributor

Re: Lock Files

Hi Pando,

Idetifying the status of the nflock kernel parameter, or identifying the status of one lock file?

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

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.8/

Title: HPUX OS: Determining nflock Usage Using lsof(8)
Document ID: KBRC00005697
Last Modified Date: 8/3/05

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000079977609

If you are trying to identify the status of one lock file, use lsof to identify the processid, and run tusc/truss (-p pid) to track down the status.

Hope this helps a bit,
Robert-Jan
Ignacio Javier
Regular Advisor

Re: Lock Files


I am not sure what you are refering to.

If you want to know what process is using ( locking ) a file, you may use the fuser command.

Regards
Dave Olker
Neighborhood Moderator

Re: Lock Files

Hi Pando,

Are you asking how to tell which files on an HP-UX system are currently locked? If not, please clarify exactly what you're trying to determine.

Thanks,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Pando
Regular Advisor

Re: Lock Files

Hello Dave and Ignacio,

Sorry for the confusion. Im asking which files on an HP-UX system are currently locked and how to determine the exact numbers that are locked including its file size.

Thanks,