ONTAP 9.13.1 commands

storage disk assign

Assign ownership of a disk to a system

Availability: This command is available to cluster administrators at the admin privilege level.

Description

The storage disk assign command is used to assign ownership of an unowned disk or array LUN to a specific node. You can also use this command to change the ownership of a disk or an array LUN to another node. You can designate disk ownership by specifying disk names, array LUN names, wildcards, or all (for all disks or array LUNs visible to the node). For disks, you can also set up disk ownership autoassignment. You can also assign disks to a particular pool. You can also assign disks by copying ownership from another disk.

Parameters

{ [-disk <disk path name>] - Disk Path

This specifies the disk or array LUN that is to be assigned. Disk names take one of the following forms:

  • Disks are named in the form <stack-id> .<shelf> .<bay>

  • Disks on multi-disk carriers are named in the form <stack-id> .<shelf> .<bay> .<lun>

  • Virtual disks are named in the form <prefix>.<number>, where prefix is the storage array’s prefix and number is a unique ascending number.

Examples

The following example assigns ownership of an unowned disk named ``_1_`` .``_1_`` .``_16_`` to a node named ``_node1_`` :
cluster1::> storage disk assign -disk 1.1.16 -owner node1

The following example assigns all unowned disks or array LUNs visible to a node named node1 to itself:

cluster1::> storage disk assign -all -node node1

The following example autoassigns all unowned disks (eligible for autoassignment) visible to a node named node1 to itself:

cluster1::> storage disk assign -auto -node node1

The following two examples show the working of the -force parameter with a spare disk that is already owned by another system:

cluster1::> storage disk assign -disk 1.1.16 -owner node1
    Error: command failed: Failed to assign disks. Reason: Disk 1.1.16 is
    already owned.
cluster1::> storage disk assign -disk 1.1.16 -owner node1 -force
    Success.

The following example assigns ownership of the set of unowned disks on <stack>1 , to a node named node1 :

cluster1::> storage disk assign -disk 1.* -owner node1

The following example assigns ownership of unowned disk 1 .1 .16 by copying ownership from disk 1 .1 .18 :

cluster1::> storage disk assign -disk 1.1.16
   -copy-ownership-from 1.1.18
The following example assigns all unowned disks visible to a node named ``_node1_`` by copying ownership from disk ``_1_`` .``_1_`` .``_18_`` :
cluster1::> storage disk assign -all -node node1
    -copy-ownership-from 1.1.18

The following example assigns the root partition of disk 1 .1 .16 to node1.

cluster1::> storage disk assign -disk 1.1.16 -owner node1 -root true
    -force true

The following example assigns the data partition of root-data partitioned disk 1 .1 .16 to node1.

cluster1::> storage disk assign -disk 1.1.16 -owner node1 -data true
    -force true

The following example assigns the data1 partition of root-data1-data2 partitioned disk 1 .1 .24 to node1.

cluster1::> storage disk assign -disk 1.1.24 -owner node1 -data1 true
    -force true

The following example assigns the data2 partition of root-data1-data2 partitioned disk 1 .1 .24 to node1.z33

cluster1::> storage disk assign -disk 1.1.24 -owner node1 -data2 true
    -force true
Top of Page