Friday 31 August 2012

Lun Allocation from VMAX Storage


Today i got a chance to allocate some storage luns from VMAX Symmetrix storage Array to a Solaris SPARC host. VMAX storage systems are the best Enterprise level storages and the most popular flagships products of EMC. These Storage Systems replaced the DMX arrays which once ruled the world of storage, another old EMC product. They are fast, reliable and gives a better performance

Allocating Luns from VMAX has a different method and its not like that in DMX. Here comes something new called Port-group, storage-group, initiator-group and a masking view

Initiator Group : Its a group which consists of
                                Host HBA wwn                                                                                                      
Port Group : Its a group which consists of  
                                front end ports of the array
Storage Group : Its a group which consists of all the luns that need to be assigned to                         host
Masking view : Its a view created with a port-group, Initiator group and storage group
            When we want to allocate luns to host, we create a masking view for it..
        Entire host-storage communication takes place through this masking view

Below i have mentioned on creation and deletion of Port Group,Storage Group, Initiator Group & Masking view.

*********************************************************************************


INITIATOR GROUP CREATION
***************************
The initiator group name i am going to create is ig_libg162 which consists of 2 HBA wwn no.


1) Check if the host WWN no. is visible in the Symmetrix at the ports that is zoned from the
    switch end. Here i have zoned it to ports 7e:1 and 8g:1

 bash-3.2# symaccess list logins -dirport 7e:1 -sid 016

Symmetrix ID            : 000194901016

Director Identification : FA-7E
Director Port           : 1

                                                            User-generated                      Logged On
Identifier                    Type          Node Name               Port Name               FCID   In     Fabric
----------------         -----          --------------------------------- ------ ------ ------
50000972081a3519  Fibre          NULL                       NULL                    6f1b00   No     Yes
50000972c00fe19d   Fibre          NULL                       NULL                    6e0600   No     Yes
2100001b320f5448   Fibre          NULL                      NULL                     612a13 Yes    Yes
210000e08b9472a0   Fibre        210000e08b9472a0 210000e08b9472a0 6d0500  Yes    Yes
2101001b322f5448   Fibre          NULL                      NULL                     612813 Yes    Yes
210100e08bb472a0   Fibre         NULL                       NULL                     6d0400 Yes    Yes
21fd006069e21a14    Fibre          NULL                      NULL                     fffc6e     No     Yes

*************************************************************

2) Select the particular WWN no. required and create the initiator Groups with the command given
    below. Check if the initiator group is created and the required wwn no. got added or not.


bash-3.2# symaccess -sid 016 create -name ig_libj162 -type initiator -wwn 210000e08b9472a0
bash-3.2# symaccess -sid 016 show ig_libj162 -type initiator

Symmetrix ID          : 000194901016

Initiator Group Name  : ig_libj162
Last updated at       : 02:11:07 PM on Fri Aug 31,2012

   Host Initiators
     {
       WWN  : 210000e08b9472a0 [alias: 210000e08b9472a0/210000e08b9472a0]
     }

   Masking View Names
     {
       None
     }

   Parent Initiator Groups
     {
       None
     }

***************************************************
3) Add the next wwn no. of the host using the command given below and check if it got added or
    not.



bash-3.2# symaccess -sid 016 -name ig_libj162 -type initiator -wwn  210100e08bb472a0 add
bash-3.2# symaccess -sid 016 show ig_libj162 -type initiator

Symmetrix ID          : 000194901016

Initiator Group Name  : ig_libj162
Last updated at       : 02:13:12 PM on Fri Aug 31,2012

   Host Initiators
     {
       WWN  : 210000e08b9472a0 [alias: 210000e08b9472a0/210000e08b9472a0]
       WWN  : 210100e08bb472a0 [alias: 210100e08bb472a0/210100e08bb472a0]
     }

   Masking View Names
     {
       None
     }

   Parent Initiator Groups
     {
       None
     }
*********************************************************************************
DELETING INITIATOR GROUP 
*****************************
We should first remove the HBA wwn no. first one by one and then we should delete the entire Initiator Group


bash-3.2# symaccess -sid 016 -name ig_libj162 -wwn  210000e08b9472a0 remove -type initiator

bash-3.2# symaccess -sid 016 show ig_libj162 -type initiator

Symmetrix ID          : 000194901016

Initiator Group Name  : ig_libj162
Last updated at       : 01:11:40 PM on Fri Aug 31,2012

   Host Initiators
     {
       None
     }

   Masking View Names
     {
       None
     }

   Parent Initiator Groups
     {
       None
     }

bash-3.2# symaccess -sid 016 delete -name ig_libj162 -type initiator

Delete Initiator group 'ig_libj162' (y/[n])? y

*********************************************************************************

CREATING PORT GROUP
************************
Here i am going to create a port group with Symmetrix Front End ports 7e:1 and 8g:1

1) first check which all ports are used and what all are the port names given

bash-3.2# symcfg -sid 016 list -fa all

Symmetrix ID: 000194901016

           S Y M M E T R I X    F I B R E   D I R E C T O R S

    Dir         Port        WWN                 ACLX     Volume Set   Pnt to Pnt
                                                            Enabled   Addressing

    FA-7E   0    50000972C00FE118   Yes           No               Yes
    FA-7E   1    50000972C00FE119   Yes           No               Yes
    FA-8E   0    50000972C00FE11C  Yes           No                Yes
    FA-8E   1    50000972C00FE11D  Yes           No                Yes
    FA-7F   0    50000972C00FE158   Yes           No                Yes
    FA-7F   1    50000972C00FE159   Yes           No                Yes
    FA-8F   0    50000972C00FE15C  Yes           No                Yes
    FA-8F   1    50000972C00FE15D  Yes           No                Yes
    FA-8G   0    50000972C00FE19C  Yes          No                Yes
    FA-8G   1    50000972C00FE19D  Yes          No               Yes

******************************************
2) Create port group using the command mentioned below and check if the port got added or not.

bash-3.2# symaccess -sid 016 create -name pg_7e1_8g1 -type port -dirport 7e:1
bash-3.2# symaccess list -sid 016 -type port

Symmetrix ID          : 000194901016


Port Group Name
--------------------------------
pg_7e0_8e0
pg_7e1_8g1

bash-3.2# symaccess -sid 016 show pg_7e1_8g1 -type port

Symmetrix ID          : 000194901016

Port Group Name       : pg_7e1_8g1
Last updated at       : 02:40:21 PM on Fri Aug 31,2012

   Director Identification
     {
       FA-7E:1
     }

   Masking View Names
     {
       None
     }




********************************************
3) Add the required ports to this port group depending upon the reliability u need using the
    below command.

bash-3.2# symaccess -sid 016 -name pg_7e1_8g1 -type port -dirport 8g:1 add
bash-3.2# symaccess -sid 016 show pg_7e1_8g1 -type port

Symmetrix ID          : 000194901016

Port Group Name       : pg_7e1_8g1
Last updated at       : 02:44:02 PM on Fri Aug 31,2012

   Director Identification
     {
       FA-7E:1
       FA-8G:1
     }

   Masking View Names
     {
       None
     }
*********************************************************************************
 DELETING PORT GROUP 
************************

We should first remove the front end ports one by one and then we should delete the entire Port Group.


bash-3.2# symaccess -sid 016 -name pg_7e1_8g1 -type port -dirport 7E:1 remove
bash-3.2# symaccess -sid 016 show pg_7e1_8g1 -type port

Symmetrix ID          : 000194901016

Port Group Name       : pg_7e1_8g1
Last updated at       : 02:45:19 PM on Fri Aug 31,2012

   Director Identification
     {
       FA-8G:1
     }

   Masking View Names
     {
       None
     }

bash-3.2# symaccess -sid 016 -name pg_7e1_8g1 -type port -dirport 8g:1 remove
bash-3.2# symaccess -sid 016 show pg_7e1_8g1 -type port

Symmetrix ID          : 000194901016

Port Group Name       : pg_7e1_8g1
Last updated at       : 02:47:12 PM on Fri Aug 31,2012

   Director Identification
     {
       None
     }

   Masking View Names
     {
       None
     }
bash-3.2# symaccess -sid 016 delete -name pg_7e1_8g1 -type port -nop

Delete Port group 'pg_7e1_8g1' (y/[n])? y
*********************************************************************************

CREATING STORAGE GROUP
****************************

Here i am creating a storage group with 25 Luns of 5 Gb size each.

1) Add a storage group using a device as shown with the below command and check if the devices 
    are visible in the storage group

bash-3.2# symaccess -sid 016 create -name sg_libj162 -type storage dev 0087
bash-3.2# symaccess -sid 016 show sg_libj162 -type storage

Symmetrix ID                : 000194901016

Storage Group Name          : sg_libj162
Last updated at             : 02:54:22 PM on Fri Aug 31,2012

   Number of Storage Groups : 0
   Storage Group Names      : None

   Devices                  : 0087

   Masking View Names
     {
       None
     }
***************************************
2) After this u can keep on adding devices to the storage group depending on the requirement using the below command

bash-3.2# symaccess -sid 016 add devs 0088:009F -name sg_libj162 -type storage

bash-3.2# symaccess -sid 016 show sg_libj162 -type storage

Symmetrix ID                : 000194901016

Storage Group Name          : sg_libj162
Last updated at             : 02:57:37 PM on Fri Aug 31,2012

   Number of Storage Groups : 0
   Storage Group Names      : None

   Devices                  : 0087:009F

   Masking View Names
     {
       None
     }

*********************************************************************************

DELETING STORAGE GROUP
****************************

In Similar way like what we did for  port group and initiator group, remove the luns first from the storage group and then delete the storage group

1) bash-3.2# symaccess -sid 016 remove devs 0087:009F -name sg_libj162 -type storage
bash-3.2# symaccess -sid 016 show sg_libj162 -type storage

Symmetrix ID                : 000194901016

Storage Group Name          : sg_libj162
Last updated at             : 02:59:55 PM on Fri Aug 31,2012

   Number of Storage Groups : 0
   Storage Group Names      : None

   Devices                  : None

   Masking View Names
     {
       None
     }

****************************************************************

2) Delete the storage group as shown with the below command

bash-3.2# symaccess -sid 016 delete -name sg_libj162 -type storage

Delete Storage group 'sg_libj162' (y/[n])? y

*********************************************************************************

CREATING MASKING VIEW 
**************************

1) Create the masking view with the proper storage group in which all the luns are added, with 
the port group where all the ports are added and with the initiato group where all the HBA wwn 
no.s of the hosts are added. as shown in the below command

bash-3.2# symaccess -sid 016 create view -name mv_libj162 -storgrp sg_libj162 -portgrp 
pg_7e1_8g1 -initgrp ig_libj162

bash-3.2# symaccess -sid 016 show view mv_libj162

Symmetrix ID                : 000194901016

Masking View Name           : mv_libj162
Last updated at             : 03:05:17 PM on Fri Aug 31,2012

Initiator Group Name        : ig_libj162

   Host Initiators
     {
       WWN  : 210000e08b9472a0 [alias: 210000e08b9472a0/210000e08b9472a0]
       WWN  : 210100e08bb472a0 [alias: 210100e08bb472a0/210100e08bb472a0]
     }

Port Group Name             : pg_7e1_8g1

   Director Identification
     {
       FA-7E:1
       FA-8G:1
     }

Storage Group Name          : sg_libj162

   Number of Storage Groups : 0
   Storage Group Names      : None

Sym                                     Host
Dev     Dir:P  Physical Device Name     Lun   Attr  Cap(MB)
------  -----  -----------------------  ----  ----  -------
0087    07E:1  Not Visible                 0          20481
            08G:1  Not Visible                 0
0088    07E:1  Not Visible                 1          20481
            08G:1  Not Visible                 1
0089    07E:1  Not Visible                 2          20481
            08G:1  Not Visible                 2
008A    07E:1  Not Visible                 3          20481
            08G:1  Not Visible                 3
008B    07E:1  Not Visible                 4          20481
            08G:1  Not Visible                 4
008C    07E:1  Not Visible                 5          20481
            08G:1  Not Visible                 5
008D    07E:1  Not Visible                 6          20481
             08G:1  Not Visible                 6
008E    07E:1  Not Visible                 7          20481
            08G:1  Not Visible                 7
008F    07E:1  Not Visible                 8          20481
           08G:1  Not Visible                 8
0090    07E:1  Not Visible                 9          20481
           08G:1  Not Visible                 9
0091    07E:1  Not Visible                 a          20481
           08G:1  Not Visible                 a
0092    07E:1  Not Visible                 b          20481
           08G:1  Not Visible                 b
0093    07E:1  Not Visible                 c          20481
           08G:1  Not Visible                 c
0094    07E:1  Not Visible                 d          20481
           08G:1  Not Visible                 d
0095    07E:1  Not Visible                 e          20481
           08G:1  Not Visible                 e
0096    07E:1  Not Visible                 f          20481
           08G:1  Not Visible                 f
0097    07E:1  Not Visible                10          20481
            08G:1  Not Visible                10
0098    07E:1  Not Visible                11          20481
            08G:1  Not Visible                11
0099    07E:1  Not Visible                12          20481
           08G:1  Not Visible                12
009A    07E:1  Not Visible                13          20481
           08G:1  Not Visible                13
009B    07E:1  Not Visible                14          20481
           08G:1  Not Visible                14
009C    07E:1  Not Visible                15          20481
           08G:1  Not Visible                15
009D    07E:1  Not Visible                16          20481
            08G:1  Not Visible                16
009E    07E:1  Not Visible                17          20481
           08G:1  Not Visible                17
009F    07E:1  Not Visible                18          20481
            08G:1  Not Visible                18
                                                    -------
Total Capacity                                       512025

*********************************************************************************
DELETING MASKING VIEW
**************************

bash-3.2# symaccess -sid 016 delete view -name mv_libj162

Delete masking view 'mv_libj162' from symmetrix 000194901016 (y/[n])? y