#File locking history

1 messages · Page 1 of 1 (latest)

flat yacht
#

Hi,
I'm wondering if it's possible to get a (historical) list of file locks per share/volume/...
One of our customers is experiencing intermittent file lock issues when running a script on new and exising files. The script will create files and rename them. But sometimes, files seem locked and the script fails. By the time we check the active locks on ONTAP with "vserver locks show", the locks are already gone. Is there a way we can see past locks in order to troubleshoot this issue?

craggy walrus
#

No. I would suggest a packet trace filtered on just the client and server (ONTAP LIF) involved to confirm the script and/or client is working as expected. If there are no issues there, it could be due to other clients accessing the files, which you could also troubleshoot with packet traces, or possibly a security trace (with -trace-allow yes). Auditing with native auditing or FPolicy will show you who is acting on a file, where opens are usually acquiring some type of lock, but it's not exactly what you are looking for.