The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how can i replace "(", "\" "+" in a file mail2sant Shell Programming and Scripting 3 04-22-2008 08:10 PM
To give the "unzip" permissions & "create" file permissions Mike1234 HP-UX 3 03-02-2008 01:34 PM
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-19-2007 09:52 PM
"sed" to check file size & echo " " to destination file jockey007 Shell Programming and Scripting 6 11-13-2007 05:00 PM
Why ""No mountable file system" endeavour1985 High Level Programming 0 03-02-2005 05:01 PM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-23-2003
Registered User
 

Join Date: Aug 2003
Posts: 1
"File in use" - how to identify locks on this file and release them?

At times we see the "file in use" when we run RCS (revision conrol system" on this file. Most of time, we do not see this message.

How do we identify the locks on this file and how do we release those locks? I can imagine it happens when there are some processes running on this file.

THe file system is mounted on thousands of boxes so it is difficultt to find processes that might lock this file...
Forum Sponsor
  #2 (permalink)  
Old 09-05-2003
Kelam_Magnus's Avatar
Unix does a body good.
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
do a man on fuser...

fuser will identify processes that have a file or directory in use... fuser is esp helpful when you are trying to find a process that has a file open...

This helps many times when /tmp is reporting 100% and there are no large files in /tmp... I have seen oracle do this several times... and it only clears the space when the process is identified and summarily killed...

also, useful when you need to umount a directory for some disk maintenance...
__________________
My brain is your brain
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:04 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0