Forced remove disk ownership in ONTAP 8

If you want to remove disk ownership on a ONTAP8 system of disks that are owned by another filer, it’s normalli only possible in maintenance mode.

The situation:

  • Disks are not accessible by the filer after adding disks from another filer.
  • The disk show -v command shows the disks are owned by another filer.
  • The disk reassign command does not work because the filer does not own the disks.
  • The disk fail command does not work because the filer does not own the disks.

Remove disk ownership on disks that are not owned by local node.

Procedure

Internal Note: 
Run the priv set advanced command and the disk remove_ownership command with the -f switch to force removal of the ownership.

For example:

disk remove_ownership -f 0a.16
disk assign 0a.16 -s unowned

The above disk remove_ownership -f command does not work in Data ONTAP 8.0 and later. The below process of forcing the disk to be ‘unowned’ and then assigning it to the proper node is the correct process. In Data ONTAP 8.0 and later, the system returns the following output:

Disk <disk ID> is not owned by this node after disk remove_ownership is attempted.
As an anternate method to remove the ownership, reboot into Maintenance Mode.
Run the following commands:

*> storage release disks
*> disk remove_ownership <disk ID list>

“To make an owned disk unowned, use the -s unowned option.  The local node should own this disk.  Use -f option if the disk is not owned by the local node and may result in data corruption if the current owner of the disk is up.”

Perform the following steps to make an owned disk unowned:

  1. Identify the disk.
    newfiler*> disk show -v
    DISK         OWNER          POOL SERIAL NUMBER
    ———— ————- —– ————-
    00.2 newfiler(135031589) Pool0 3LM28D290000981410TH
    0c.00.4 newfiler(135031589) Pool0 3LM2AVL500009816QJ5A
    0c.00.9 newfiler(135031589) Pool0 3LM2C3GX00009816B0Y1
    c.00.11 NEWDISK (123123123) Pool0 3LM3J7ZT00009831LN9Q
    0c.00.6 newfiler(135031589) Pool0 3LM2AFEH000098169TRG
    0c.00.1 newfiler(135031589) Pool0 3LM2C1VN00009816B3F0
    0c.00.5 newfiler(135031589) Pool0 3LM3J72500009831HWSA
    0c.00.3 newfiler(135031589) Pool0 3LM2AFC500009816QGEP
    0c.00.7 newfiler(135031589) Pool0 3LM1Z3EZ00009815L019
    0c.00.8 newfiler(135031589) Pool0 3LM2AFDF00009816L4CH
    0c.00.0 newfiler(135031589) Pool0 3LM1Z3CQ0000981410J7
    0c.00.10 newfiler(135031589) Pool0 3LM1Z2ME00009816N1GN
  2. Remove the ownership.
    newfiler*> disk assign 0c.00.11 -s unowned -f
  3. Verify if the disk is now unowned.
    newfiler*> disk show -v
    DISK         OWNER          POOL SERIAL NUMBER
    ———— ————- —– ————-
    00.2 newfiler(135031589) Pool0 3LM28D290000981410TH
    0c.00.4 newfiler(135031589) Pool0 3LM2AVL500009816QJ5A
    0c.00.9 newfiler(135031589) Pool0 3LM2C3GX00009816B0Y1
    0c.00.6 newfiler(135031589) Pool0 3LM2AFEH000098169TRG
    0c.00.1 newfiler(135031589) Pool0 3LM2C1VN00009816B3F0
    0c.00.5 newfiler(135031589) Pool0 3LM3J72500009831HWSA
    0c.00.3 newfiler(135031589) Pool0 3LM2AFC500009816QGEP
    0c.00.7 newfiler(135031589) Pool0 3LM1Z3EZ00009815L019
    0c.00.8 newfiler(135031589) Pool0 3LM2AFDF00009816L4CH
    0c.00.0 newfiler(135031589) Pool0 3LM1Z3CQ0000981410J7
    0c.00.10 newfiler(135031589) Pool0 3LM1Z2ME00009816N1GN
    0c.00.11 Not Owned NONE 3LM3J7ZT00009831LN9Q
  4. Assign the disk to a local node.
    newfiler*> disk assign 0c.00.11
    Wed Mar 25 14:15:51 CET [diskown.changingOwner:info]: changing ownership for disk 0c.00.11 (S/N 3LM3J7ZT00009831LN9Q) from unowned (ID -1) to newfiler (ID 135031589)
twitterlinkedinmailtwitterlinkedinmail
Arco

About

View all posts by