ONTAP Discussions

ghost aggregate on my two node HA pair

grocanar
128 Views

hi

i have strange behaviour on my ha pair

when i run 

snap::> disk show -disk 4.11.* -fields aggregate
disk aggregate
------- ---------------------
4.11.0 aggr0
4.11.1 aggr0
4.11.2 aggr0
4.11.3 aggr_snap_n02_sata_02
4.11.4 aggr_snap_n02_sata_02
4.11.5 aggr_snap_n02_sata_02
4.11.6 aggr_snap_n02_sata_02
4.11.7 aggr_snap_n02_sata_02
4.11.8 aggr_snap_n02_sata_02
4.11.9 aggr_snap_n02_sata_02
4.11.10 aggr_snap_02_system
4.11.11 -
12 entries were displayed.

 

But 

snap::> aggr show -aggregate aggr0

Error: show failed: Aggregate "aggr0" does not exist.

 

but now i can't use this disk attached on this "gohst" aggreagte.

 

how can i remove the ownership of gthis disk to aggr0? 

 

1 ACCEPTED SOLUTION

grocanar
18 Views

I found the solution on this KB 
https://kb.netapp.com/on-prem/ontap/Ontap_OS/OS-KBs/The_aggregate_cannot_be_offline_before_deleting_aggregate

i just run 
debug vreport fix -type aggregate -object aggr0(a6f36178-3aba-4ffa-8628-f549bc4c63c8)

 

After i was able to put offline the aggregate and remove it. 
Thank you both for your help to solve that problem 

View solution in original post

4 REPLIES 4

TMACMD
102 Views

do this.

set diag

debug vreport show

 

I suspect WAFL/VLDB will not match.

 

storage aggregate remove-stale-record -node <node> -aggregate aggr_snap_02_system

You need to figure which "node" that disk is on. You left that out of your output.

Ashun
66 Views

If aggr0 is not yours or want to delete it
Run the following command to determine which node aggr0 is on
::> system node run -node * -command sysconfig -r
Run the following command based on the above output to remove aggr
::> set -privilege advanced
::*> storage aggregate remove-stale-record -nodename [node_name] -aggregate aggr0

grocanar
18 Views

Hi 
Thank for your answer it seems indeed an aggregate only in wafl. 
I run debug vreport show

debug vreport show
aggregate Differences:

Name Reason Attributes
-------- ------- ---------------------------------------------------
aggr0(a6f36178-3aba-4ffa-8628-f549bc4c63c8)
Present in WAFL Only
Node Name: snap_n02
Aggregate UUID: a6f36178-3aba-4ffa-8628-f549bc4c63c8
Aggregate State: restricted
Aggregate Raid Status: raid_dp
Aggregate HA Policy: cfo
Is Aggregate Root: true
Is Composite Aggregate: false

 

but when i run 

storage aggregate remove-stale-record -node snap_n02 -aggregate aggr0

Error: command failed: Failed to delete aggregate "aggr0". Reason: aggregate 'aggr0' cannot be destroyed because it is restricted. You will need to take it offline before destroying it.

 

snap::*> storage aggregate offline -aggregate aggr0

Error: command failed: Failed to check if aggr0 is a foreign (unknown) aggregate. Reason: entry doesn't exist.

 

I m still stuck in removing that host aggregate

grocanar
19 Views

I found the solution on this KB 
https://kb.netapp.com/on-prem/ontap/Ontap_OS/OS-KBs/The_aggregate_cannot_be_offline_before_deleting_aggregate

i just run 
debug vreport fix -type aggregate -object aggr0(a6f36178-3aba-4ffa-8628-f549bc4c63c8)

 

After i was able to put offline the aggregate and remove it. 
Thank you both for your help to solve that problem 

Public