Thursday 16 January 2014

EMC DMX : PART-2(MAPPING,MASKING & UNMASKING,UNMAPING)

MAPPING:- (26DF,26E7,26EF,26F7,26FF,2787,278F,2797,279F)
requirements:-
1)create required no LUNs(Devices/Metas)
2)select Dircetor Port(follow rule 17)
3)calculate free lun numbers
1)create a file which maintains luns & their mapping ports.
# more map_luns
map dev 26DF to dir 4D:1 target=0, lun=8B;
map dev 26DF to dir 13D:1 target=0, lun=8B;
map dev 26E7 to dir 4D:1 target=0, lun=8C;
map dev 26E7 to dir 13D:1 target=0, lun=8C;
map dev 26EF to dir 4D:1 target=0, lun=8D;
map dev 26EF to dir 13D:1 target=0, lun=8D;
map dev 26F7 to dir 4D:1 target=0, lun=8E;
map dev 26F7 to dir 13D:1 target=0, lun=8E;
map dev 26FF to dir 4D:1 target=0, lun=8F;
map dev 26FF to dir 13D:1 target=0, lun=8F;
map dev 2787 to dir 4D:1 target=0, lun=90;
map dev 2787 to dir 13D:1 target=0, lun=90;
map dev 278F to dir 4D:1 target=0, lun=91;
map dev 278F to dir 13D:1 target=0, lun=91;
map dev 2797 to dir 4D:1 target=0, lun=92;
map dev 2797 to dir 13D:1 target=0, lun=92;
map dev 279F to dir 4D:1 target=0, lun=93;
map dev 279F to dir 13D:1 target=0, lun=93;

2)map luns.
# symconfigure -sid 3896 -f map_luns preview
Execute a symconfigure operation for symmetrix '000290103896' (y/[n]) ? y
A Configuration Change operation is in progress. Please wait...
    Establishing a configuration change session...............Established.
    Processing symmetrix 000290103896
    Performing Access checks..................................Allowed.
    Checking Device Reservations..............................Allowed.
    Submitting configuration changes..........................Submitted
    Locking devices...........................................Locked.
    Validating configuration changes..........................Validated.
    Closing configuration change request......................Closed.
    Terminating the configuration change session..............Done.
The configuration change session has completed successfully.


# symconfigure -sid 3896 -f map_luns prepare
Execute a symconfigure operation for symmetrix '000290103896' (y/[n]) ? y
A Configuration Change operation is in progress. Please wait...
    Establishing a configuration change session...............Established.
    Processing symmetrix 000290103896
    Performing Access checks..................................Allowed.
    Checking Device Reservations..............................Allowed.
    Submitting configuration changes..........................Submitted
    Locking devices...........................................Locked.
    Validating configuration changes..........................Validated.
    Initiating PREPARE of configuration changes...............Prepared.
    Closing configuration change request......................Closed.
    Terminating the configuration change session..............Done.
The configuration change session has completed successfully.


# symconfigure -sid 3896 -f map_luns commit
Execute a symconfigure operation for symmetrix '000290103896' (y/[n]) ? y
A Configuration Change operation is in progress. Please wait...
    Establishing a configuration change session...............Established.
    Processing symmetrix 000290103896
    Performing Access checks..................................Allowed.
    Checking Device Reservations..............................Allowed.
    Submitting configuration changes..........................Submitted
    Locking devices...........................................Locked.
    Validating configuration changes..........................Validated.
    Initiating PREPARE of configuration changes...............Prepared.
    Initiating COMMIT of configuration changes................Queued.
    COMMIT requesting required resources......................Obtained.
    Step 002 of 014 steps.....................................Executing.
    Step 002 of 014 steps.....................................Executing.
    Step 002 of 014 steps.....................................Executing.
    Step 009 of 014 steps.....................................Executing.
    Step 011 of 014 steps.....................................Executing.
    Step 011 of 014 steps.....................................Executing.
    Step 011 of 014 steps.....................................Executing.
    Polling...................................................Timed out.
    Polling...................................................Timed out.
    Local:  COMMIT............................................Done.

MASKING:-
requirements:-
1)select luns to mask.
2)select mapped port no.
3)select Which host to map.

    Terminating the configuration change session..............Done.
The configuration change session has successfully completed.

==>create file
# cat mask_luns
26DF,26E7,26EF,26F7,26FF,2787,278F,2797,279F
#vi mask_new_luns.sh
symmask -sid 3896 -wwn  2100001b320294df -dir 4D -p 1 add devs `cat /scripts/mapping/19-DEC-2012/raid5/mask_luns`
symmask -sid 3896 -wwn 2101001b322294df  -dir 13D -p 1 add devs `cat /scripts/mapping/19-DEC-2012/raid5/mask_luns`
symmask -sid 3896 refresh

# sh -x mask_new_luns.sh
+ cat /scripts/mapping/19-DEC-2012/raid5/mask_luns
+ symmask -sid 3896 -wwn 2100001b320294df -dir 4D -p 1 add devs 26DF,26E7,26EF,26F7,26FF,2787,278F,2797,279F
+ cat /scripts/mapping/19-DEC-2012/raid5/mask_luns
+ symmask -sid 3896 -wwn 2101001b322294df -dir 13D -p 1 add devs 26DF,26E7,26EF,26F7,26FF,2787,278F,2797,279F
The following devices are already assigned in at least one entry:
26DF 26E7 26EF 26F7 26FF 2787 278F 2797 279F
Would you like to continue (y/[n])?y
+ symmask -sid 3896 refresh
Refresh Symmetrix FA/SE directors with contents of SymMask database 000290103896 (y/[n]) ? y
Symmetrix FA/SE directors updated with contents of SymMask Database 000290103896


UNMASKING:-
requirements:-
1)select luns to unmask
2)select director & it's port
3)select Host HBA.
#cat old_luns
432F,4337,433F,4347,434F,449F,44A7,44AF,44B7
# more unmask_old_luns.sh
symmask -sid 3896 -wwn  2100001b320294df -dir 4D -p 1 remove devs `cat /scripts/mapping/19-DEC-2012/raid1/old_luns`
symmask -sid 3896 -wwn 2101001b322294df  -dir 13D -p 1 remove devs `cat /scripts/mapping/19-DEC-2012/raid1/old_luns`
symmask -sid 3896 refresh

# sh -x unmask_old_luns.sh
+ cat /scripts/mapping/19-DEC-2012/raid1/old_luns
+ symmask -sid 3896 -wwn 2100001b320294df -dir 4D -p 1 remove devs 432F,4337,433F,4347,434F,449F,44A7,44AF,44B7
+ cat /scripts/mapping/19-DEC-2012/raid1/old_luns
+ symmask -sid 3896 -wwn 2101001b322294df -dir 13D -p 1 remove devs 432F,4337,433F,4347,434F,449F,44A7,44AF,44B7
+ symmask -sid 3896 refresh
Refresh Symmetrix FA/SE directors with contents of SymMask database 000290103896 (y/[n]) ? y
Symmetrix FA/SE directors updated with contents of SymMask Database 000290103896
# symmask -sid 3896 refresh
Refresh Symmetrix FA/SE directors with contents of SymMask database 000290103896 (y/[n]) ? y
Symmetrix FA/SE directors updated with contents of SymMask Database 000290103896

UNMAPPING:-
Requirements:-
1)select luns
2)select director ports
3)write disable luns
#cat unmapluns
432F
4337
433F
4347
434F
449F
44A7
44AF
44B7
 # for i in `cat unmapluns`
 > do
 > echo $i
 > symdev -sid 3896 write_disable $i
 > done
432F
Write Disable device '432F' on
ALL Directors, ALL Ports (y/[n]) ? y
Write Disable operation successfully completed for the device.
4337
Write Disable device '4337' on
ALL Directors, ALL Ports (y/[n]) ? y
Write Disable operation successfully completed for the device.
433F
Write Disable device '433F' on
ALL Directors, ALL Ports (y/[n]) ? y
Write Disable operation successfully completed for the device.
4347
Write Disable device '4347' on
ALL Directors, ALL Ports (y/[n]) ? y
Write Disable operation successfully completed for the device.
434F
Write Disable device '434F' on
ALL Directors, ALL Ports (y/[n]) ? y
Write Disable operation successfully completed for the device.
449F
Write Disable device '449F' on
ALL Directors, ALL Ports (y/[n]) ? y
Write Disable operation successfully completed for the device.
44A7
Write Disable device '44A7' on
ALL Directors, ALL Ports (y/[n]) ? y
Write Disable operation successfully completed for the device.
44AF
Write Disable device '44AF' on
ALL Directors, ALL Ports (y/[n]) ? y
Write Disable operation successfully completed for the device.
44B7
Write Disable device '44B7' on
ALL Directors, ALL Ports (y/[n]) ? y
Write Disable operation successfully completed for the device.



==>create file which include devs
# cat unmap_old.sh
"unmap_old.sh" [New file]
unmap dev 432F from dir 4D:1;
unmap dev 432F from dir 13D:1;
unmap dev 4337 from dir 4D:1;
unmap dev 4337 from dir 13D:1;
unmap dev 433F from dir 4D:1;
unmap dev 433F from dir 13D:1;
unmap dev 4347 from dir 4D:1;
unmap dev 4347 from dir 13D:1;
unmap dev 434F from dir 4D:1;
unmap dev 434F from dir 13D:1;
unmap dev 449F from dir 4D:1;
unmap dev 449F from dir 13D:1;
unmap dev 44A7 from dir 4D:1;
unmap dev 44A7 from dir 13D:1;
unmap dev 44AF from dir 4D:1;
unmap dev 44AF from dir 13D:1;
unmap dev 44B7 from dir 4D:1;
unmap dev 44B7 from dir 13D:1;

# symconfigure -sid 3896 -f unmap_old preview
Execute a symconfigure operation for symmetrix '000290103896' (y/[n]) ? y
A Configuration Change operation is in progress. Please wait...
    Establishing a configuration change session...............Established.
    Processing symmetrix 000290103896
    Performing Access checks..................................Allowed.
    Checking Device Reservations..............................Allowed.
    Submitting configuration changes..........................Submitted
    Locking devices...........................................Locked.
    Validating configuration changes..........................Validated.
    Closing configuration change request......................Closed.
    Terminating the configuration change session..............Done.
The configuration change session has completed successfully.
# symconfigure -sid 3896 -f unmap_old prepare
Execute a symconfigure operation for symmetrix '000290103896' (y/[n]) ? y
A Configuration Change operation is in progress. Please wait...
    Establishing a configuration change session...............Established.
    Processing symmetrix 000290103896
    Performing Access checks..................................Allowed.
    Checking Device Reservations..............................Allowed.
    Submitting configuration changes..........................Submitted
    Locking devices...........................................Locked.
    Validating configuration changes..........................Validated.
    Initiating PREPARE of configuration changes...............Prepared.
    Closing configuration change request......................Closed.
    Terminating the configuration change session..............Done.
The configuration change session has completed successfully.
# symconfigure -sid 3896 -f unmap_old commit
Execute a symconfigure operation for symmetrix '000290103896' (y/[n]) ? y
A Configuration Change operation is in progress. Please wait...
    Establishing a configuration change session...............Established.
    Processing symmetrix 000290103896
    Performing Access checks..................................Allowed.
    Checking Device Reservations..............................Allowed.
    Submitting configuration changes..........................Submitted
    Locking devices...........................................Locked.
    Validating configuration changes..........................Validated.
    Initiating PREPARE of configuration changes...............Prepared.
    Initiating COMMIT of configuration changes................Queued.
    COMMIT requesting required resources......................Obtained.
    Step 002 of 014 steps.....................................Executing.
    Step 002 of 014 steps.....................................Executing.
    Step 002 of 014 steps.....................................Executing.
    Step 009 of 014 steps.....................................Executing.
    Step 011 of 014 steps.....................................Executing.
    Step 011 of 014 steps.....................................Executing.
    Step 011 of 014 steps.....................................Executing.
    Polling...................................................Timed out.
    Polling...................................................Timed out.
    Local:  COMMIT............................................Done.
    Terminating the configuration change session..............Done.
The configuration change session has successfully completed.

No comments:

Post a Comment