Friday, October 28, 2011

To check environment status of symmetrix box


C:\Program Files\EMC\SYMCLI\bin>symcfg -sid 2258 list -env_data

Symmetrix ID               : 000190102258
Timestamp of Status Data   : 10/28/2011 10:41:10

    System Bay

      Bay Name                                            :    SystemBay
      Number of Fans                                    :    3
      Number of Power Supplies                   :    6
      Number of Standby Power Supplies      :    14

      Summary Status of Contained Modules
        All Fans                                          :    Normal
        All Power Supplies                          :    Normal
        All Standby Power Supplies            :    Normal

    Drive Bays

      Bay Name                                                :    Bay-1A
      Number of Standby of Power Supplies     :    0
      Number of Drive Enclosures                     :    16

      Summary Status of Contained Modules
        All Enclosures                                 :    Normal
        All Link Control Cards                    :    Normal
        All Power Supplies                         :    Normal
        All Standby Power Supplies            :    Normal


C:\Program Files\EMC\SYMCLI\bin>



To check failed disks on Symmetrix


C:\Program Files\EMC\SYMCLI\bin>symdisk -sid 2258 -failed list

Symmetrix ID                 : 00019010XXX8

No devices were found

C:\Program Files\EMC\SYMCLI\bin>


EMC Symmetrix SAN Storage Provisioning


EMC Symmetrix SAN Storage Provisioning – Allocating, Unallocating 

This page details on how to add/remove and zone additional storage from EMC Symmetrix.
Basically, if you are working on EMC Symmetrix DMX series, you have to understand the 17 rules of the FA (Front Adapter), understand the load balance on how much you had currently utilized on the Storage FA assignment.
Adding Storage
1.     Lists all the external locks held in Symmetrix array 1234.
     # symcfg -sid 1234 list -lockn all

2.     List all the available devices (hypers) on the EMC Symmetrix
      # symdev -noport list
     
Backup the VCM database
      # symmaskdb backup

3.     Create a Meta volume
      # cat metafile.cmd
      form meta from dev 5B2 config=striped, stripe_size = 2 cyl;
      add dev 5B3:5B6 to meta 5B2;

4.      preview, prepare and commit the changes
                # symconfigure -f metafile.cmd preview -nop
                # symconfigure -f metafile.cmd prepare -nop
                # symconfigure -f metafile.cmd commit -nop
                Check the configuration
                # symdev show 5B2

      Note: -nop known as no prompt, which will execute the command without asking Yes / No

5.     Map meta volume to front-end directors
                # cat mapfile.cmd
                map dev 5B2 to dir 3d:0 target=0, lun=5;
               map dev 5B2 to dir 14d:0 target=0, lun=5;

6.     Show the device detail
       # symdev -sid 1234 show 5B2 |more

7.     preview, prepare and commit the changes
                # symconfigure -f mapfile.cmd preview -nop
                # symconfigure -f mapfile.cmd prepare -nop
                # symconfigure -f mapfile.cmd commit -nop
                Check the configuration
                # symdev -sa 3d -p 0 -fibre list
                # symdev -sa 14d -p 0  -fibre list

8.     Mask the meta volume
                # symmask -wwn <WWPN> -dir 3d -p 0 add devs 5B2
                # symmask -wwn <WWPN> -dir 14d -p 0 add devs 5B2
               
      Note: the wwn are the WWPN's of the host HBA's which you obtain from the server.
 


9.      update the VCM database
                # symmask –sid 1234 refresh -nop

10.  Display the device assignment by FA.
      # symmaskdb -sid 1234 list assignment –dev 5B2
      Note: You should see this message if your device is newly create and yet allocate to the host. "No device masking database records could  be found for the specified input parameters"

11.  Display the device detail in WWN
      # symmaskdb -sid 1234 list devs -wwn 10000000c9693d53

12.  To rename the wwn of the host to HOSTNAME/PORTNUMBER
                # symmask -sid 1234 -wwn 10000000c9693d53 rename HOSTNAME01/HBA0

13.  To list out the overall capacity of the host
      # symmaskdb -sid 1234 list capacity –host HOSTNAME01

 Removing Storage

1.     Display the devices by the HOST WWN
       # symmaskdb -sid 1195 list devs -wwn 10000000c9693d53

Symmetrix ID        : 000287461234
Originator Port wwn : 10000000c9693d53
User-generated Name : HOSTNAME01/10000000c9693d53

Sym Dev                                               LUN
Name    Dir:P  Physical Device Name     VBUS  TID  SYMM HOST  Attr  Cap(MB)
------  -----  -----------------------  ----  ---  ---- ----  ----  -------
05B2     3d:0    Not Visible                                           0    0     1  N/A  (M)     20478
            14d:0    Not Visible                                           0    0     1  N/A  (M)     20478

2.      Remove the LUN masking configuration
                # symmask -wwn <WWPN> -dir 3d -p 0 remove devs 5B2
                # symmask -wwn <WWPN> -dir 14d -p 0 remove devs 5B2
 
        Note: the wwn are the WWPN's of the host HBA's which you obtain from the server. Update the VCM database
        # symmask refresh –nop

3.     offline the volume 5B2
                # symdev -sid 056 not_ready 5B2 -nop

      Check the configuration
                # symdev show 5B2

4.     Unmap the meta volume from Front-end directors
                # cat unmapfile.cmd
                unmap dev 5B2 from dir 3d:0;
                unmap dev 5B2 from dir 14d:0;

5.     Remove the volume from the VCM database
                # symconfigure -f unmapfile.cmd preview -nop
                # symconfigure -f unmapfile.cmd prepare -nop
                # symconfigure -f unmapfile.cmd commit -nop
                Check the configuration
                # symdev -sa 3d -p 0 -fibre list
                # symdev -sa 14d -p 0 -fibre list

LUN address available on a FA port available for mapping


C:\Program Files\EMC\SYMCLI\bin>symcfg -sid 2258 -dir 8a -p 1 list -address -available

Symmetrix ID: 00019010XXX8

           Director                 Device Name          Attr     Address
    ---------------------- ----------------------------- ---- --------------
    Ident   Symbolic  Port Sym   Physical                     VBUS  TID  LUN
    ------  --------  ---- ----  -----------------------      ----  ---  ---

    FA-8A   08A       1     0046  Not Visible             VCM     0   00  000
                                      0049  Not Visible                           0    00  001
                                      004A  Not Visible                           0   00  002
                                      005B  Not Visible                           0   00  003
                                      005C  Not Visible                           0   00  004
                                      005D  Not Visible                           0   00  005
                                      005E  Not Visible                            0   00  006
                                         -     AVAILABLE                         0   00  007 *
                                      056B  Not Visible              (M)       0   00  00A
                                      0571  Not Visible              (M)        0   00  00B
                                      0577  Not Visible              (M)        0   00  00C
                                        -     AVAILABLE                          0   00  00D *
                                      0994  Not Visible              (M)        0   00  012
                                      0560  Not Visible              (M)        0   00  013
                                        -     AVAILABLE                          0   00  014 *
                                      0C62  Not Visible             (M)        0   00  01C
                                     0CB5  Not Visible             (M)         0   00  01D
                                     0D08  Not Visible             (M)          0   00  01E
                                     0D5B  Not Visible             (M)         0   00  01F
                                     0D67  Not Visible             (M)          0   00  020
                                    0DBC  Not Visible             (M)          0   00  021
                                    09BF  Not Visible             (M)           0   00  022
                                     0BB2  Not Visible             (M)         0   00  023
                                     0930  Not Visible             (M)          0   00  024
                                        -     AVAILABLE                          0   00  025 *
    Total                  ----
    Mapped Devices:          21
    Including Metamembers:  601
    Available Addresses:   3495 (s)


Legend for Available address:

(*): The VBUS, TID, LUN address values represent a gap in the
     address assignments or are the next available address in
     the run

(s): The Available Addresses for a director are shared among
     its ports (shared)

To verify Symmetrix FA Port Connections



C:\Program Files\EMC\SYMCLI\bin>symcfg -fa all list -port -sid 2258

Symmetrix ID: 00019010XXX8

         S Y M M E T R I X    D I R E C T O R    P O R T S


                       Director   Port Status     Connection Status
  Ident  Type          Status    P0  P1  P2  P3    P0  P1  P2  P3

  FA-7A  FibreChannel  Online    ON  ON  N/A N/A    -   -   -   -
                                     -   -              -        -
  FA-8A  FibreChannel  Online    ON  ON  N/A N/A    X   X   -   -
                                     -   -              -        -
  FA-9A  FibreChannel  Online    ON  ON  N/A N/A    X   X   -   -
                                     -   -              -        -
  FA-10A FibreChannel  Online    ON  ON  N/A N/A    -   -   -   -
                                     -   -              -        -
  FA-7B  FibreChannel  Online    ON  ON  N/A N/A    -   -   -   -
                                     -   -              -        -
  FA-8B  FibreChannel  Online    ON  ON  N/A N/A    X   X   -   -
                                     -   -              -        -
  FA-9B  FibreChannel  Online    ON  ON  N/A N/A    X   X   -   -
                                     -   -              -        -
  FA-10B FibreChannel  Online    ON  ON  N/A N/A    -   -   -   -
                                     -   -              -        -
  FA-8C  FibreChannel  Online    ON  ON  N/A N/A    X   X   -   -
                                     -   -              -        -
  FA-9C  FibreChannel  Online    ON  ON  N/A N/A    X   -   -   -
                                     -   -              -        -

Legend for Connection Status:

(X) : Fibre Port is Connected to a Fibre Port (HBA, Switch or RF Director)
(-) : Fibre Port is Not Connected.