Active IQ Unified Manager Discussions

delete aggregate ONTAPP 9.1 fails because of MDV_aud

NevetsYar
15,180 Views

Need to delete the aggregate the shelf is to be re-used on a different system.

 

afsnetappcl::> aggregate delete afsnetapp01_SAS_aggr2
(storage aggregate delete)

Warning: Are you sure you want to destroy aggregate "afsnetapp01_SAS_aggr2"?
{y|n}: y

Error: command failed: Cannot delete an aggregate that has volumes. Delete or
move the volumes and retry the command.

afsnetappcl::>

 

afsnetappcl::>
afsnetappcl::> volume show -vserver afsnetappcl -volume * Vserver Volume Aggregate State Type Size Available Used%
--------- ------------ ------------ ---------- ---- ---------- ---------- -----
afsnetappcl
MDV_aud_cdab8d64892448e2a52ebcbdfa5d957d
afsnetapp01_SAS_aggr2
- RW - - -

 

afsnetappcl::> volume show -vserver afsnetappcl -volume MDV_aud*

Vserver Name: afsnetappcl
Volume Name: MDV_aud_cdab8d64892448e2a52ebcbdfa5d957d
Aggregate Name: afsnetapp01_SAS_aggr2

 

afsnetappcl::> volume offline -volume MDV_aud_cdab8d64892448e2a52ebcbdfa5d957d -vserver afsnetappcl

Error: command failed: This operation is not supported for the system volume
"MDV_aud_cdab8d64892448e2a52ebcbdfa5d957d".

afsnetappcl::>

 

 

1 ACCEPTED SOLUTION

BoJlk
10,796 Views

If anyone still looking for this issue

The Resolution is simple, you must Disable and Delete vserver audit which removes all the auditing staging (MDV) volume

Only then you can offline,delete the aggregate. 

The Staging Volume "MDV_aud..." cannot be put offline, deleted even in advanced priviliges 

This has worked for me

How to create or remove auditing staging (MDV) volumes

https://kb.netapp.com/app/answers/answer_view/a_id/1029815

View solution in original post

5 REPLIES 5

hariprak
15,149 Views

Hi,

 

Hope this helps,http://community.netapp.com/t5/Data-ONTAP-Discussions/Delete-aggregate-in-CDOT/td-p/102909  

 

 

Thanks

 

 

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

NevetsYar
15,128 Views

First had to put the aggregate back on line.

Then off line the volume

third delete the volume

forth delete the aggregate, the issuse was in previous attempts the volume would not go off line, or delete.

Plus all the warning messeges, but since there were no other volumes on this aggregate, proceeded.

 

afsnetappcl::*> aggregate online afsnetapp01_SAS_aggr2

  (storage aggregate online)

 

Aggregate online successful on aggregate: afsnetapp01_SAS_aggr2

 

afsnetappcl::*> volume offline -vserver afsnetappcl -volume MDV_aud_cdab8d64892448e2a52ebcbdfa5d957d -force

 

Warning: You are about to modify the system volume

         "MDV_aud_cdab8d64892448e2a52ebcbdfa5d957d".  This may cause severe

         performance or stability problems.  Do not proceed unless directed to

         do so by support.  Do you want to proceed? {y|n}: y

 

Warning: Forcing the system volume "MDV_aud_cdab8d64892448e2a52ebcbdfa5d957d"

         offline might impact MetroCluster, if configured, or other operations.

         Do you want to force this volume to be offline? {y|n}: y

 

Warning: Forcing offline volume MDV_aud_cdab8d64892448e2a52ebcbdfa5d957d in

         Vserver afsnetappcl can potentially disrupt access to files in other

         volumes.

Do you want to continue? {y|n}: y

 

Volume "afsnetappcl:MDV_aud_cdab8d64892448e2a52ebcbdfa5d957d" is now offline.

 

afsnetappcl::*> volume delete -vserver afsnetappcl -volume MDV_aud_cdab8d64892448e2a52ebcbdfa5d957d -force

 

Warning: You are about to modify the system volume

         "MDV_aud_cdab8d64892448e2a52ebcbdfa5d957d".  This may cause severe

         performance or stability problems.  Do not proceed unless directed to

         do so by support.  Do you want to proceed? {y|n}: y

 

[Job 21764] Job succeeded: Successful

 

afsnetappcl::*>

 

afsnetappcl::*>

afsnetappcl::*> aggregate delete afsnetapp01_SAS_aggr2

  (storage aggregate delete)

 

Warning: Are you sure you want to destroy aggregate "afsnetapp01_SAS_aggr2"?

{y|n}: y

 

[Job 21765]

Job succeeded: DONE

ReggieP
13,553 Views

I would not use the above mentioned procedure, as you can read in this KB article.  Instead use this procedure.

 

https://kb.netapp.com/app/answers/answer_view/a_id/1029815

 

BoJlk
10,797 Views

If anyone still looking for this issue

The Resolution is simple, you must Disable and Delete vserver audit which removes all the auditing staging (MDV) volume

Only then you can offline,delete the aggregate. 

The Staging Volume "MDV_aud..." cannot be put offline, deleted even in advanced priviliges 

This has worked for me

How to create or remove auditing staging (MDV) volumes

https://kb.netapp.com/app/answers/answer_view/a_id/1029815

RaviChandra
9,160 Views

https://kb.netapp.com/app/answers/answer_view/a_id/1029815

This link worked on how to delete the "MDV_AUD" volumes in aggr.. First Disable the AUDIT on SVM Next Delete the AUDIT on SVM (Automatically "MDV_AUD" volumes will be deleted. Thankyou All.
Public