ONTAP Hardware

how to reassign disks

CCOLEMAN_
118,292 Views

Hello,

 

I have added a DS4243 with 24 1TB drives to my FAS2040.

 

It looks like the disks on my new shelf have already been assigned before. Anytime I try to do a disk_removeownership or disk_unassign it says this can only be done in maintenance mode?

 

How can I unassign and reassign the disks with out taking the filer down? (I only have one controller)

 

Thanks!

1 ACCEPTED SOLUTION

rodrigon
118,227 Views

Hello,

Try this:

Identify the actual sysid owner:

> disk show

Remove the ownership using disk assign:

> disk assign <disk_id> -o unowned -s <sysid>

Regards,

Nascimento

NetApp - Enjoy it!

View solution in original post

27 REPLIES 27

rodrigon
118,228 Views

Hello,

Try this:

Identify the actual sysid owner:

> disk show

Remove the ownership using disk assign:

> disk assign <disk_id> -o unowned -s <sysid>

Regards,

Nascimento

NetApp - Enjoy it!

CCOLEMAN_
116,174 Views

Hey Rodrigo,

When I do a "disk show" it only shows me the internal disks in my 2040 with.

But heres what I get anyway,

netapp01*> Tue Dec 20 15:52:23 GMT [netapp01:diskown.RescanMessageFailed:warning                                                                                                                     ]: Could not send rescan message to unowned. Please type disk show on the consol                                                                                                                     e of unowned for it to scan the newly inserted disks.

Tue Dec 20 15:52:23 GMT [netapp01:diskown.RescanFailureReasonHttpd:warning]: The                                                                                                                      rescan failure is likely due to the httpd.admin.enable option being off.

Tue Dec 20 15:52:23 GMT [netapp01:sfu.firmwareUpToDate:info]: Firmware is up-to-                                                                                                                     date on all disk shelves.

rodrigon
116,174 Views

And what is the output for 'disk show -n' ?

CCOLEMAN_
116,174 Views

netapp01> disk show -n

disk show: No disks match option -n.

netapp01>

CCOLEMAN_
116,179 Views

Not sure if this helps but this is what I get for remove_ownership

netapp01*> disk remove_ownership 0d.01.19

disk remove_ownership: Disk 0d.01.19 is not owned by this node.

rodrigon
116,179 Views

'disk show -v'

It shows all disks attached to the controllers.

-n shows unowned and -a shows all assigned....

Please, put here the 'disk show -v' output.

CCOLEMAN_
116,180 Views

DISK       OWNER                      POOL   SERIAL NUMBER         HOME

------------ -------------              -----  -------------         -------------

0c.00.8      netapp01  (135084092)    Pool0  9QJ755P7              netapp01  (135084092)

0c.00.4      netapp01  (135084092)    Pool0  9QJ754VJ              netapp01  (135084092)

0c.00.1      netapp01  (135084092)    Pool0  9QJ758CC              netapp01  (135084092)

0c.00.0      netapp01  (135084092)    Pool0  9QJ755EE              netapp01  (135084092)

0c.00.2      netapp01  (135084092)    Pool0  9QJ75580              netapp01  (135084092)

0c.00.6      netapp01  (135084092)    Pool0  9QJ755HD              netapp01  (135084092)

0c.00.3      netapp01  (135084092)    Pool0  9QJ7550Z              netapp01  (135084092)

0c.00.9      netapp01  (135084092)    Pool0  9QJ755C8              netapp01  (135084092)

0c.00.11     netapp01  (135084092)    Pool0  9QJ754PJ              netapp01  (135084092)

0c.00.10     netapp01  (135084092)    Pool0  9QJ754Y4              netapp01  (135084092)

0c.00.7      netapp01  (135084092)    Pool0  9QJ755BV              netapp01  (135084092)

0c.00.5      netapp01  (135084092)    Pool0  9QJ7594Z              netapp01  (135084092)

0d.01.2      drfas2040 (135064522)    Pool0  WD-WCAW30897168       drfas2040 (135064522)

0d.01.4      drfas2040 (135064522)    Pool0  WD-WCAW30895989       drfas2040 (135064522)

0d.01.9      drfas2040 (135064522)    Pool0  WD-WCAW30897508       drfas2040 (135064522)

0d.01.19     drfas2040 (135064522)    Pool0  WD-WCAW30897956       drfas2040 (135064522)

0d.01.13     drfas2040 (135064522)    Pool0  WD-WCAW30896086       drfas2040 (135064522)

0d.01.15     drfas2040 (135064522)    Pool0  WD-WCAW30888554       drfas2040 (135064522)

0d.01.6      drfas2040 (135064522)    Pool0  WD-WCAW30897141       drfas2040 (135064522)

0d.01.1      drfas2040 (135064522)    Pool0  WD-WCAW30888541       drfas2040 (135064522)

0d.01.10     drfas2040 (135064522)    Pool0  WD-WCAW30891208       drfas2040 (135064522)

0d.01.7      drfas2040 (135064522)    Pool0  WD-WCAW30895985       drfas2040 (135064522)

0d.01.5      drfas2040 (135064522)    Pool0  WD-WCAW30891439       drfas2040 (135064522)

0d.01.11     drfas2040 (135064522)    Pool0  WD-WCAW30896477       drfas2040 (135064522)

0d.01.0      drfas2040 (135064522)    Pool0  WD-WCAW30896481       drfas2040 (135064522)

0d.01.23     drfas2040 (135064522)    Pool0  WD-WCAW30865750       drfas2040 (135064522)

0d.01.21     drfas2040 (135064522)    Pool0  WD-WCAW30875507       drfas2040 (135064522)

0d.01.12     drfas2040 (135064522)    Pool0  WD-WCAW30888529       drfas2040 (135064522)

0d.01.18     drfas2040 (135064522)    Pool0  WD-WCAW30897930       drfas2040 (135064522)

0d.01.20     drfas2040 (135064522)    Pool0  WD-WCAW30865773       drfas2040 (135064522)

0d.01.22     drfas2040 (135064522)    Pool0  WD-WCAW30876127       drfas2040 (135064522)

0d.01.14     drfas2040 (135064522)    Pool0  WD-WCAW30902526       drfas2040 (135064522)

0d.01.8      drfas2040 (135064522)    Pool0  WD-WCAW30895502       drfas2040 (135064522)

0d.01.3      drfas2040 (135064522)    Pool0  WD-WCAW30890577       drfas2040 (135064522)

0d.01.16     drfas2040 (135064522)    Pool0  WD-WCAW30897939       drfas2040 (135064522)

0d.01.17     drfas2040 (135064522)    Pool0  WD-WCAW30891044       drfas2040 (135064522)

drfas2040 is the old controller it was on

rodrigon
115,048 Views

try:

disk assign 0d.01.17 -o unown -s 135064522

CCOLEMAN_
115,048 Views

netapp01*> Tue Dec 20 16:33:20 GMT [netapp01:diskown.RescanMessageFailed:warning]: Could not send rescan message to unowned. Please type disk show on the console of unowned for it to scan the newly inserted disks.

Tue Dec 20 16:33:20 GMT [netapp01:diskown.RescanFailureReasonHttpd:warning]: The rescan failure is likely due to the httpd.admin.enable option being off.

Tue Dec 20 16:33:20 GMT [netapp01:sfu.firmwareUpToDate:info]: Firmware is up-to-date on all disk shelves.

rodrigon
45,395 Views

are you in 'priv set diag' mode?

and it is: '-o unowned', sorry for the typo mistake.

CCOLEMAN_
45,395 Views

i'm in 'priv set advanced'

rodrigon
45,395 Views

have you tried with '-o unowned' and it not work?

aborzenkov
45,395 Views

it is

disk assign 0d.01.17 -s unowned

possibly also add "-f" for "force"

rodrigon
45,395 Views

Yes, it is!

Thanks Aborzenkov... -s unowned and not -o unowned.

fletch2007
41,524 Views

In 8.1.2 this works:

 

disk assign 6b.71 -s unowned -f

 

ref: https://kb.netapp.com/index?page=content&id=1010853&actp=LIST_POPULAR

 

cheers!

CCOLEMAN_
46,517 Views

adding -f worked!!!!

Just curious, why does it require -f? that just seems a little scary

rodrigon
42,900 Views

Sorry for the confusion with the options....

Good to know it solves your problem.

See you!

Nascimento

NetApp - Enjoy it!

abdul_wahab
42,900 Views

Hi,

"The -f option will be use if disk is not owned by the local node and may result in data corruption if the current owner of the disk is up".

I assume in your case you use the disk shelf from another system which is completely separate from the system on which you are working. 

And thanks Nascimento. Your solution also solve my problem.

Abdul Wahab

rmontavonsa
26,538 Views

Hello,

 

i have changing a disk on one of my controller (fas2040) but i can't assign the new disk of spare to the pool1.

 

i try this command "disk assign 0d.01.5 -s unowned -f". This command work without error. When i make a "disk show -n" i see the disk.

 

But when i try to assign the disk to the pool1 (they are 3 disks of spare on spool0) with this command: "disk assign 0d.01.5 -p 1". I have this message "disk assign: disk 0d.01.5 cannot be assigned to pool 1. Other disks on the loop are assigned to pool 0."

 

Do you have any ideas how i can assign this disk to the other spool ?

For information, when i make juste the command "disk assign 0d.01.5" the disk is automaticaly assigned to the spool0.

 

Sorry for my bad english, i hope you can understand me.

 

Thank you for your help.

rmontavonsa
21,361 Views

i have found the command for switching spare disk to pool0 to pool1.

 

Firstime, you need to remove disk ownership with the command "disk remove_ownership 0d.01.5"

Now you can see the disk with the command "disk show -n"

After this, you can make the command "disk assign 0d.01.5 -p 1 -f"

 

 

But i have an other problem, i have always the message "There are not enough spare disks. /aggr0/plex0/rg0: Please add spare disks to any pool supporting block checksums with minimum " on the controller.

 

Do you have any ideas how i can resolve the problem ?

 

Thank you for your help.

Public