ONTAP Discussions

How to delete a svm with cifs running and the AD isn't available

mkappe
23,043 Views

Hi,

 

i want delete a svm with cifs running.

Problem: The AD is not availlable

 

Is there any force command for cifs delete or vserver delete?

 

Regards

Michael

1 ACCEPTED SOLUTION

mkappe
22,894 Views

With stopped cifs server it works.

 

Warning: There are one or more shares associated with this CIFS server
         Do you really want to delete this CIFS server and all its shares? {y|n}: y

Warning: Unable to delete the Active Directory computer account for this CIFS server.
         Do you want to continue with CIFS server deletion anyway? {y|n}: y

 

Thx

Michael

View solution in original post

9 REPLIES 9

deepuj
22,942 Views

Hi,

 

Are you able to stop cifs using "vserver cifs stop" command?

 

Thanks

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

mkappe
22,897 Views

yes, it is down.

 

 vserver cifs show -vserver farmw01

                                          Vserver: farmw01
                         CIFS Server NetBIOS Name: FARMW01C
                    NetBIOS Domain/Workgroup Name: xxxxxxxx
                      Fully Qualified Domain Name: xxxxxx.LOCAL
Default Site Used by LIFs Without Site Membership:
                             Authentication Style: domain
                CIFS Server Administrative Status: down

nbgw81gr1::> vserver delete -vserver farmw01

Warning: There are 2 routing group(s), 4 admin created login account(s) associated with Vserver farmw01. All these objects will be removed while deleting the Vserver.Are you sure you want to delete Vserver farmw01 and all objects
         associated with it? {y|n}: y

Error: command failed: Cannot delete Vserver. Failed to remove CIFS server. Reason: The Vserver is associated with Active Directory configured CIFS server "FARMW01C" . The deletion is partially complete. Please delete the CIFS server
       using "cifs delete" and retry to complete the deletion.

 

mkappe
22,895 Views

With stopped cifs server it works.

 

Warning: There are one or more shares associated with this CIFS server
         Do you really want to delete this CIFS server and all its shares? {y|n}: y

Warning: Unable to delete the Active Directory computer account for this CIFS server.
         Do you want to continue with CIFS server deletion anyway? {y|n}: y

 

Thx

Michael

SMLocke
21,250 Views

Problem persists with 8.3.2 as well. CIFS server is stopped, but I still can't delete the CIFS server - it asks for AD credentials, but that whole AD environment is gone. Any solutions? Any way we can force deletion of CIFS assets within an SVM so I can eventually delete the SVM?

SMLocke
21,126 Views

Welp, for what it's worth I managed to delete the CIFS server and the SVM. Here's how I did it, running CDOT 8.3.2:

 

  1. Log in via CLI with credentials that have the admin role
  2. Run cifs delete -vserver foobar
  3. Interface asks for AD credentials with sufficient privileges, etc. I entered dummy credentials like test/test.
  4. Interface warns that there are one or more shares associated with the CIFS server, and am I sure? I tell it yes.
  5. Interface gives a second warning saying that it can't delete the AD computer account, and did I want to continue with CIFS server deletion anyway? I tell it yes.
  6. Boom, no more CIFS server. I was able to delete the SVM.

 

I'm not sure if it'll be have the same way in 8.2.3, but I hope it does. 8.3.2 has been good to me so far, but I'd hate to tell anyone to upgrade just so they can delete a defunct CIFS server.  Good luck!

shoong
19,506 Views

whoa, this worked! thanks!!

matthiasFF
18,176 Views

Thanks for your solution.

 

Doesn't work on 9.1P10 though... I get a Kerberos error.

 

 

bartel
15,156 Views

I just tried it with NetApp Release 9.1P10:

::> cifs delete -vserver foobar
In order to delete an Active Directory machine account for the CIFS server, you must supply the name and password of a Windows account with sufficient privileges to
remove computers from the "foobar" domain.
Enter the user name: test
Enter the password:
Warning: There are one or more shares associated with this CIFS server
Do you really want to delete this CIFS server and all its shares? {y|n}: y
Warning: Unable to delete the Active Directory computer account for this CIFS server.
Do you want to continue with CIFS server deletion anyway? {y|n}: y

 

Worked like a champ!!

harrnack
21,501 Views

Not working in 8.2.3.  Still asking for AD credentials, CIFS server is stopped.

 

Error: command failed: Cannot delete Vserver. Failed to remove CIFS server. Reason: The Vserver is associated with Active Directory configured CIFS server "CIFS_Z8" . The deletion is
partially complete. Please delete the CIFS server using "cifs delete" and retry to complete the deletion.

Public