265 pts.
 unlock an IFS file
I have an IFS file that the system thinks is being used by another user. I tried "check in" & RLSIFSLCK to no avail. How can I make this file available to use. As a work-around, I had the user open as read-only and save as another name, but I would like to use the original file.

Software/Hardware used:
i5/OS V6.1
ASKED: July 29, 2010  5:00 PM
UPDATED: August 6, 2010  2:10 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Did you use RLSIFSLCK because you are using NFS functions or only because it was a last resort? If NFS is the suspected source of the lock, consider trying:

ENDNFSSVR SERVER(*NLM)  
          ENDJOBTIMO(10)

Then try RLSIFSLCK again. And then:

STRNFSSVR SERVER(*NLM)

The NFS Network Lock Manager might lose the lock if ended and restarted. Take care, though, that other NFS processes aren’t trying to do work while this is going on.

If this is a NFS “mandatory” lock rather than a common fcntl() “advisory” lock, you might not be able to force its release. Network-related locks can be tenacious for good reason. Unfortunately, ‘for bad reason’ also seems to be possible.

An IPL might be in order as a drastic last resort.

Tom

 108,025 pts.

 

I used RLSIFSLCK because I found it through a google search. Will the ENDNFSSVR require users to not access the IFS?

 265 pts.

 

Will the ENDNFSSVR require users to not access the IFS?

It will only affect IFS access if you are using the NFS server and it would only affect NFS users. If you aren’t using NFs, then the NFS Lock Manager (“*NLM”) probably won’t even be running. For a quick check, run this command:

dspf '/etc/STATD'

Post any error messages here. If there are no errors, then NFS has at least been started at some time on your system.

Tom

 108,025 pts.

 

I ran the dspf ‘/etc/STATD’ command and it said “No such path or directory.”

 265 pts.

 

“No such path or directory.”

That’s a strong indication that no one has ever used NFS on your system. In that case, the NFS Lock Manager has never been active. The RLSIFSLCK command was at least partially intended to work against NFS “mandatory” locks. I’m not sure that any other locks are expected to be a major problem — other IFS locks are generally called “advisory” locks because programs can ignore them if coded to do so, i.e., the system itself apparently doesn’t enforce them.

You mentioned that the streamfile can be copied. After copying, can the original be deleted? The copy might then be copied back to the original location. Of course, you’d want to capture and restore ownership, authorities, etc.

Do you have a developer familiar with the various IFS APIs?

Tom

 108,025 pts.

 

I am the IT department. I learn things as needed and am not too familiar with IFS other than setting up folders and sharing. We didn’t really copy the file. It was opened as read-only and then saved as another file. I just tried to delete it (never thought of that) and it deleted. Then I was able to rename the other back to the original name. The only thing I didn’t check first was to see if it still had the lock on it.

 265 pts.