Unsolved

This post is more than 5 years old

165 Posts

699

February 23rd, 2009 19:00

Question about unmap dev form FA

Hi

I have a question about unmap dev from FA.

Let me tell you that i have one dev mapped to 4 FA's please see the info below


Device Identifier Type Dir:P
------ ---------------- ----- ----------------
08ED 2100001b32074693 FIBRE FA-8A:1
210100e08bbb2875 FIBRE FA-9A:1

this info is for my produccion server and it is running now.

but i have the same device mapped to other FA pair, but this server wont work any more, i mean I'm going to turn off the server y I wont need this dev in these FA pair any more.

Device Identifier Type Dir:P
------ ---------------- ----- ----------------
08ED 10000000c96da746 FIBRE FA-8C:1
10000000c96bb3de FIBRE FA-9C:1

I know that I can unmapped this dev from FA 8C:1 and 9C:1, but how can i do that, because to unmap a dev I need to configure the dev to not ready, but the dev is running also in the FA 9C:1 and 9A:1

does any one help to tell me how can i do that, I mean, tell me the steps ?

Regards

9 Legend

 • 

20.4K Posts

February 23rd, 2009 19:00

instead of making device not_ready you will need to make device write disable on those FAs you are unmapping them from:

symdev -sid 123 write_disable 0BAD -SA 8C -p 1

so this will write disable device 0BAD only on FA 8C:1 ..it will not impact other FAs. Once you got them write_disabled on FAs you are no longer using ..go ahead and unmap.

41 Posts

March 5th, 2009 15:00

1) Remove masking for unused HBA's
symmaskdb -sid 766 -wwn 10000000c96bb3de remove dev 57D -dir 8c -p 1
symmaskdb -sid 766 -wwn 10000000c96d5def remove dev 57D -dir 9c -p 1
symmask refresh

2) Write Disable device on directors
symdev -sid 766 write_disable 57D -sa 8c -p 1
symdev -sid 766 write_disable 57D -sa 9c -p 1

3) New map file containing unmap commands (cmdfile.txt)
unmap dev D57 from dir 8c:1;
unmap dev D57 from dir 9c:1;

4) symconfigure -sid 766 -f cmdfile.txt preview -> prepare -> commit

Everyone agree?

165 Posts

March 5th, 2009 15:00

hi

is my script ok?

Regards

165 Posts

March 5th, 2009 15:00

Hi

Talking about unmapped device from 4 FA directors,

I'am going to apply this change in my production environment:

could you check my scripts:

The dev is 057D
The production FA are 8B0 and 9B0


057D 10000000c96d5dc4 FIBRE FA-8B:0
10000000c973f198 FIBRE FA-9B:0
10000000c96bb3de FIBRE FA-8C:1
10000000c96d5def FIBRE FA-9C:1

I want to unmap the dev from 8c1 and 9c1, but I don't want to affect my production FAs

Please see below my script


symdg create unmapkondordb
symld -g unmapkondordb addall dev 057D
symld -g unmaptcbsdev write_disable -sa 8C -p 1
symld -g unmaptcbsdev write_disable -sa 9C -p 1
unmap dev 057D from dir ALL:ALL;
symconfigure discover

/usr/symcli/bin/symconfigure -sid 0766 -f /home/ixeadmin/kondorunmap2.txt preview
/usr/symcli/bin/symconfigure -sid 0766 -f /home/ixeadmin/kondorunmap2.txt prepare
/usr/symcli/bin/symconfigure -sid 0766 -f /home/ixeadmin/kondorunmap2.txt commit

Regards

41 Posts

March 5th, 2009 15:00

Don't forget to unmask the device from the wwn's first ;)

165 Posts

March 5th, 2009 15:00

Check my scripts

9 Legend

 • 

20.4K Posts

March 5th, 2009 16:00

actually no dissolving as it's still in use ...brain clot :)

9 Legend

 • 

20.4K Posts

March 5th, 2009 16:00

looks good. If 57D is a meta ..might as well dissolve it if you don't plan on re-using this device anytime soon.

you may run powermt check and delete dead paths/devices.

165 Posts

March 6th, 2009 14:00

Hi

Last question:

If i use a group like this, is my script ok?

symdg create unmapkondordb
symld -g unmapkondordb addall dev 057D
symld -g unmaptcbsdev write_disable -sa 8C -p 1
symld -g unmaptcbsdev write_disable -sa 9C -p 1

regards

9 Legend

 • 

20.4K Posts

March 9th, 2009 05:00

if you only have one device i would not bother putting it in a group ..just use symdev to write_disable it.

symdev -sid 123 write_disable 057D -sa 8c -p 1
symdev -sid 123 write_disable 057D -sa 9c -p 1

Top