How to remove ownership on foreign disks in clustered Data ONTAP
Applies to
- Clustered Data ONTAP 8
- ONTAP 9
- MetroCluster
Description
Before you begin, check Active IQ if this impacts your systems.
Clustered Data ONTAP fails to take disk ownership on disks with foreign ownership.
If disks are introduced into a clustered system and those disks came from another system (either a 7-Mode or a clustered Data ONTAP system) and they were not properly unowned, the disks will be owned by the node they came from and will be inaccessible by the cluster.
For example, if a user attached shelf from an old storage system, but forgot to clear the original disk ownership BEFORE attaching it to the new system, the attached disks show as in the second line:
r2cdot1::> storage disk show
Usable Container
Disk size Shelf Bay type Position Aggregate Owner
----------------------------------------------------------------------------------------------------------------------
:
r2cdot1-01:0a.00.23 - 0 23 spare present - r2cdot1-01
r2cdot1-01:0b.10.0 - 10 0 unknown present - netapp2
:
Any attempt to remove foreign ownership fails with the following error:
r2cdot1::> storage disk removeowner -disk r2cdot1-01:0b.10.0 -force true
Error: command failed: Failed to find node ID for node netapp2
r2cdot1::> storage disk modify -disk r2cdot1-01:0b.10.0 -ownerr2cdot1-01 -force-owner
Error: command failed: Failed to change the owner of disk"r2cdot1-01:0b.10.0". Reason: Unknown.
r2cdot1::> node run local
r2cdot1-01> priv set diag
r2cdot1-01*> disk remove_ownership 0b.10.0 disk remove_ownership: Disk 0b.10.0 is not owned by
this node.
r2cdot1-01*> disk remove_ownership 0b.10.0 -f disk remove_ownership: Disk 0b.10.0 is not owned by
this node.
r2cdot1-01*> disk assign 0b.10.0 -s unowned Disk assign request failed.
r2cdot1-01*> disk assign 0b.10.0 -s unowned -f Disk assign request failed.