8 Replies Latest reply: Feb 26, 2013 5:56 AM by VIJAYNUKALA RSS

Who has a file locked?

Currently Being Moderated

Users have been complaining from time to time about files being locked. They can't edit, delete or rename them. They are accessing them from a windows PC via share. So \\nafs1\departments\marketing\file1.doc for example.


I saw online how you can connect to the system via MMC but I can't see any storage, shares, etc. Perhaps because it's using my AD credentials instead of root?


Anyway, I also saw online how I could run the following command and find out who had a lock on it. But I'm not seeing from the output how to determine that. The user has rebooted their machine and immediately browsed to the share and cannot do anyting to the file. She thinks perhaps our backup software has it locked?


I ran this:

lock status -f "/vol/departments/marketing/file1.doc" -p cifs


And got this back:


CIFS path=\departments\marketing\file1.doc(/vol/departments/marketing/file1.doc) host=xxx.xxx.xxx.xxx(pc-name) owner=smithj state=GRANTED mode=Read-denyW oplock=None


If I run this, I can then break the lock and proceed as planned:

lock break -f "/vol/departments/marketing/file1.doc" -p cifs


So questions:

1. Who has the file locked?
2. How is it possible it's locked when she's the only one using it?

3. How can a user fix this on the fly or we prevent it from continually happening?

4. Why can't I do this via MMC? The exact error I get is "you do not have permissions to see the list of shares for Windows clients"

  • Re: Who has a file locked?
    Currently Being Moderated

    It is similar to what we are facing...intrested to see the responses....

  • Re: Who has a file locked?
    Currently Being Moderated

    We're seeing similar issues, but still trying to narrow it down also.  Will keep an eye on this thread.


    Regarding the MMC, you need to have an AD account which has admin rights on the storage controller.  Start mmc.exe on your Windows PC/Server logged in as that user (or Shift-Right-Click and open as that user), then add the 'Shared Folders' snap-in and point it at the controller name.  You should them be able to view/edit/manage shares, etc and also view Open Files.  It's not uncommon to have to unlock files (eg when a user has left a file open on their laptop, etc).

  • Re: Who has a file locked?
    Currently Being Moderated

    still nothing unfortunately. surprised no one from Netapp has chimed in. used to better forum participation by vendors. I don't see how to add my ad username in the configuration. only local user accounts.

More Like This

  • Retrieving data ...