ONTAP Discussions

How to Remove CIFS from a Filer?

MRJORDANG
9,053 Views

cifs setup was run on a filer that is not going to be used to serve cifs data.   I would like to remove cifs from the filer.  How do I go about removing cifs from a filer?

Thanks,

-J

1 ACCEPTED SOLUTION

CCOLEMAN_
9,053 Views

type in "cifs terminate"

then "license delete cifs"

Make sure you clean up AD

View solution in original post

6 REPLIES 6

James_Littlefield
9,053 Views

You should be able to accomplish this by stopping cifs ("cifs terminate") and removing the cifs license from the filer.

CCOLEMAN_
9,054 Views

type in "cifs terminate"

then "license delete cifs"

Make sure you clean up AD

MRJORDANG
9,053 Views

I think both of you are correct.  Thanks for your responses.  I had the opportunity to bounce this off of a NetApp Professional Services Consultant and he said the same thing.   The catch is that we want to remove CIFS from the phyiscal filer (vfiler0) but allow CIFS to continue running on a (non-vfiler0) virtual filer.  I am assuming removing the CIFS license would kill CIFS on the non-vfiler0 vfilers.   Any thoughts you have on that would be appreciated.

Thanks,

-J 

CCOLEMAN_
9,053 Views

In that case, stop CIFS on the physical filer but keep it licensed.

To allow CIFS, NFS, FTP, or HTTP on a vFiler unit, each of the protocols must have an active

license on the hosting storage system.

MRJORDANG
9,053 Views

Thanks for the response!   Sounds like cifs terminate, period, is our best option at this point until we have a chance to move the vfilers.  Thanks for again for the info.

aborzenkov
9,053 Views

But it will be started again after reboot. I wish there was “cifs unsetup” or similar. I am too interested in how to return filer to “CIFS uninitialized” state.

I guess removing all files /etc/cifs* should do the trick, but there may be some registry entries left over.

Anyone?

...

OK, I had chance to capture config before and after CIFS setup. In case someone is interested, here is the list (from "config diff"):

options.security.history.root

options.useradmin.administrator

options.wafl.default_security_style

file.contents.cifs_homedir.cfg

file.contents.cifs_nbalias.cfg

file.contents.cifsconfig_setup.cfg

file.contents.cifsconfig_share.cfg

file.contents.cifssec.cfg

file.contents.lclgroups.cfg

file.contents.passwd

file.contents.usermap.cfg

options.security.history.root

Removing /etc/cifsconfig_setup.cfg effectively returned CIFS to unconfigured state.

simsim> priv set advanced

Warning: These advanced commands are potentially dangerous; use

         them only when directed to do so by NetApp

         personnel.

simsim*> mv /etc/cifsconfig_setup.cfg /etc/cifsconfig_setup.cfg_

simsim*> priv set

simsim> cifs restart

CIFS not configured.  Use "cifs setup" to configure

simsim>

Public