unlock an IFS file

265 pts.
Tags:
i5/OS
IFS
IFS File Lock
iSeries
Locks
V6R1
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

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 6  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • RayM
    I used RLSIFSLCK because I found it through a google search. Will the ENDNFSSVR require users to not access the IFS?
    265 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • RayM
    I ran the dspf ‘/etc/STATD’ command and it said "No such path or directory."
    265 pointsBadges:
    report
  • TomLiotta
    “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
    125,585 pointsBadges:
    report
  • RayM
    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 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following