Subscribe
Accepted Solution

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

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

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

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.

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

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.

 

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

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

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

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.

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

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?

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

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!