Network and Storage Protocols

renaming a folder in a CIFS share

GUVNIJJAR

I have a filer FAS2050 , running version 7.3.4P3.    I have a cifs share setup, and underneath there are some folders.  I try to rename a specific folder A which is underneath the cifs share but i get the error rmessage thatthe folder or file in iit is open in anothe rprogram.  I have checked in open files, and closed all sessions which opened for this folder, but still get the same message.   Is there anything else I need to do to make the folder rename.  Do i need to stop cifs or something, or do anything on that share.

Any advise

3 REPLIES 3

maliu

check the locked file on the cifs share with "lock status" command

>lock status -f -p cifs (to show and identify all locked cifs files)

>lock break -f "/vol/share/folder/file.doc" -p cifs (to show all locks on the listed file)

>lock break -f "/vol/share/folder/file.doc" -p cifs (to clear all locks on the listed file)

GUVNIJJAR

can you run these commands on folders as well as files, as its a folder that i want to rename.

maliu

i'll first check to see what file is locked in the folder with lock status, then lock break that file in that folder using the commands before trying to rename the said folder.

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public