Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

3496

September 26th, 2016 08:00

How to delete orphaned cifs shares

I'm trying to delete shares created on a 5300 from an old cifs server that no longer exists.  When trying to delete from the GUI I get "no such file or directory" and message ID 13690601492.  Short of trying to recreate the old cifs server, are there any options for deleting these orphaned shares?

4 Operator

 • 

8.6K Posts

September 28th, 2016 02:00

I would suggest to either temp. recreating the CIFS Server with its old name

or open a Service Request to have EMC Support cleanup manually

3 Apprentice

 • 

1.2K Posts

September 26th, 2016 12:00

You can do this from the CLI without too much trouble.  The command you need to review is "server_export":

[nasadmin@test-vnxcs0 ~]$ server_export --help

Error 2100: usage: server_export { | ALL }

          operations on all cifs and/or nfs entries:

        | [ -Protocol { cifs | nfs } ] -list -all

        | [ -Protocol { cifs | nfs } ] -all

        | [ -Protocol { cifs | nfs } ] -unexport [-perm] -all

          nfs operations per entry:

        | -list pathname

        | [-Protocol nfs [-name name]] [-ignore] [-option options]

          [-comment ] pathname

        | -unexport [-perm] pathname

          cifs operations per entry:

        | -list -name sharename [-option options]

        | -name sharename [-ignore] [-option options]

          [-comment ] pathname

        | -unexport -name sharename [-option options]

Here, I'll use server_export to list all the CIFS shares:

[nasadmin@test-vnxcs0 ~]$ server_export server_2 -P cifs -list

server_2 :

share "my-hws" "/my-hws" umask=022 maxusr=4294967295 netbios=TEST_CIFS comment="Hyperspace Web Data"

share "my-epstmp" "/my-epstmp" umask=022 maxusr=4294967295 netbios=TEST_CIFS comment="Temp EPS"

share "my-archive" "/my-archive" umask=022 maxusr=4294967295 netbios=TEST_CIFS comment="Archive Data"

share "my-blob" "/my-blob" umask=022 maxusr=4294967295 netbios=TEST_CIFS comment="Blob Data"

share "my-relaytmp" "/my-erelaytmp" umask=022 maxusr=4294967295 netbios=TEST_CIFS comment="Temp Relay"

share "my-bodata" "/bodata" umask=022 maxusr=4294967295 netbios=TEST_CIFS comment="Business Objects"

share "my-staticdata" "/my-staticdata" umask=022 maxusr=4294967295 netbios=TEST_CIFS comment="Static Data"

Now, I can unexport "my-staticdata":

[nasadmin@test-vnxcs0 ~]$ server_unexport server_2 -name3 my-staticdata cifs -option TEST_CIFS


In this case, I used the name of the CIFS server, "TEST_CIFS" as the target to unexport the share from.  If the CIFS server no longer exists on your 5300, you might try it both with and without the CIFS server.

Let us know if that helps!

Karl

September 27th, 2016 07:00

Thanks Karl.  I can view all my cifs shares but when trying to delete I get "No such file or directory"

[nasadmin@1 ~]$ server_export vdm01 -unexport -name Share -P cifs -option netbios=Server

vdm01 :

Error 2: vdm01 : No such file or directory

Unshare error: Shares not unmounted

[nasadmin@1 ~]$ server_export vdm01 -unexport -name Share -option netbios=Server

vdm01 :

Error 2: vdm01 : No such file or directory

Unshare error: Shares not unmounted

[nasadmin@1 ~]$ server_export vdm01 -unexport -name Share -P cifs -option Server

vdm01 :

Error 2: vdm01 : No such file or directory

Unshare error: Shares not unmounted

[nasadmin@1 ~]$ server_export vdm01 -unexport -name Share -option Server

vdm01 :

Error 2: vdm01 : No such file or directory

Unshare error: Shares not unmounted

[nasadmin@1 ~]$ server_export vdm01 -unexport -name Share -P cifs

vdm01 :

Error 2: vdm01 : No such file or directory

Unshare error: Shares not unmounted

September 28th, 2016 08:00

Solved - recreating the old CIFS server allowed me to delete the orphaned shares, thank you!

4 Operator

 • 

8.6K Posts

September 29th, 2016 11:00

thanks for the feedback

No Events found!

Top