HowTo Break CIFS Locks Netapp Filers Cluster Mode

I was trying to delete one file from CIFS share but not able to do it. It always say “The action can’t be completed because the file is open”  i tried so many ways but no luck. CIFS shares are coming from Netapp Cluster mode so let’s verify the CIFS lock files and release Lock from Netapp console. I will show you HowTo Break CIFS Locks Netapp Filers Cluster Mode.

Not able to delete file in use

Not able to delete file in use

HowTo Break CIFS Locks Netapp

There are two ways you can do. One is from Windows Computer Management. Second is from Netapp SSH session.

Method 1:

Go to Computer Management console –> Right Click –> Connect Another Computer –> Provide Netapp Filer IP –> Click Ok

Connect Another Computer

Connect Another Computer

computer management Open Files

computer management Open files

Here you will see all the open file sessions then select the one you want to release and break that session.

Method 2 Break CIFS Locks:

Login to SSH Console using putty utility and verify locks using below command

>vserver locks show

Vserver: CIFS_ARKIT
Volume Object Path LIF Protocol Lock Type Client
-------- ------------------------- ----------- --------- ----------- ----------
CIFS_Software
 /CIFS_Software/Utilities/Softwares/ccmsetup.exe
 CIFS_Access cifs share-level 192.103.2.181
 Sharelock Mode: read-deny_write
28 entries were displayed.

CIFS Break is not available normal admin mode you have to switch back to advanced mode

> set advanced

Warning: These advanced commands are potentially dangerous; use them only when directed to do so by NetApp personnel.
Do you want to continue? {y|n}: y

*> You can see * in front of prompt be careful while running any command here

> vserver locks break -vserver CIFS_ARKIT -volume CIFS_Software -path "/CIFS_Software/Utilities/Softwares/ccmsetup.exe" -lif CIFS_Access
Warning: Breaking file locks can cause applications to become unsynchronized and may lead to data corruption.
Do you want to continue? {y|n}: y
2 entries were acted on.

Let’s see what the command say

  • CIFS_ARKIT = Storage Virtual Machine Name
  • CIFS_Software = volume Name
  • CIFS_Access = LIF name

That’s it. Now try to delete the file from path it will delete. That’s HowTo Break CIFS Locks Netapp Filers Cluster Mode.

Conclusion

Be careful do not break against full volume or full CIFS Share path. run only to specific path is the recommended way.

Related Articles

C-Mode Netapp Basics

Steps to Setup C-Mode Netapp

Netapp Link

Thanks for your wonderful Support and Encouragement

blank

Ravi Kumar Ankam

My Name is ARK. Expert in grasping any new technology, Interested in Sharing the knowledge. Learn more & Earn More

Leave a Reply

Your email address will not be published. Required fields are marked *