Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to delete a svm with cifs running and the AD isn't available
2015-06-29
03:49 AM
24,245 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! See The Solution
1 ACCEPTED SOLUTION
mkappe has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
9 REPLIES 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
- Log in via CLI with credentials that have the admin role
- Run cifs delete -vserver foobar
- Interface asks for AD credentials with sufficient privileges, etc. I entered dummy credentials like test/test.
- Interface warns that there are one or more shares associated with the CIFS server, and am I sure? I tell it yes.
- 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.
- 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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
whoa, this worked! thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your solution.
Doesn't work on 9.1P10 though... I get a Kerberos error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
