Remove a foreign aggregate

Instructions for clustered Data ONTAP 8.3 and later versions

The following are the steps to remove a foreign aggregate and make the disks available as unzeroed spares in clustered Data ONTAP 8.3 and later versions.

  1. Run the following command to identify the node with the aggregate flagged as foreign.
    The relevant aggregate will have the label foreign.
    ::> system node run -node * -command sysconfig -r
  2. Based on the above output, run the following clustershell commands, referencing the node that has the foreign aggregate.
    ::> set -privilege advanced
    ::*> storage aggregate remove-stale-record -nodename [node_name] -aggregate [foreign aggregate name]

This will remove all foreign aggregates from the relevant system and free up the used drives as unzeroed spares.

Instructions for clustered Data ONTAP 8.2 and later versions

The following are the steps to remove a foreign aggregate and make the disks available as unzeroed spares in clustered Data ONTAP 8.2.x and earlier versions.

  1. Run the following command to identify the node with the aggregate flagged as foreign.
    The relevant aggregate will have the label foreign.
    ::> node run -node * sysconfig -r
  2. Based on the above output, go to the node that has the foreign aggregate.
  3. Run the following command from the node shell of that node:
    ::> node run -node <node_name> options nodescope.reenabledcmds 'aggr=destroy'
  4. Now that the aggr destroy command is unlocked, it can be run to remove the foreign aggregate, and turn the disks into unzeroed spares. Run the following command from the node shell to destroy the aggregate:
    > aggr destroy <foreign aggr name>
  5. Run the following command again to disable the aggr destroy command:
    > options nodescope.reenabledcmds ' ' 
  6. The foreign aggregate has now been turned into unzeroed spares. Once zeroed, start creating a new aggregate.
twitterlinkedinmailtwitterlinkedinmail
Arco

About

View all posts by