Managing Dynamic SRDF Pairs Using SYMCLI

 

Topic

Managing SRDF

Selections

Select SRDF management tool: Managing SRDF using Solutions Enabler SYMCLI

Select SRDF using SYMCLI task: Managing Dynamic SRDF

Select a Dynnamic SRDF task: Manage (create, split, delete) dynamic SRDF pairs

 

 

Contents

Managing SRDF dynamic pairs. 4

About this procedure. 4

Task 1:  Display existing device groups. 4

Task 2:  Create a device file and device pairs. 4

Task 3:  Establish the device pairs. 6

Task 4:  Set the mode for the device group. 10

Task 5:  Split the device pairs in the device group. 10

Task 6:  Delete the device pairs. 11

 


 

Managing SRDF dynamic pairs

About this procedure

·    This procedure was created using Solutions Enabler version 7.5.

·    This procedure is based on content in the EMC Solutions Enabler Symmetrix SRDF Family CLI Version 7.6 Product Guide.

You can download the guide from EMC Online Support (registration required): https://support.EMC.com.

Task 1:     Display existing device groups

Type the symdev –sid SID list –dynamic –r1 –r2 command to display the R1 and R2 devices with dynamic capability.

In the following example, the Config column shows these devices were not configured as SRDF devices.

<R1Host#> symdev -sid 321 list -dynamic -r1 -r2

 

Symmetrix ID: 000192600321

 

        Device Name           Directors                  Device               

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

                                                                           Cap

Sym  Physical               SA :P DA :IT  Config        Attribute    Sts   (MB)

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

 

0060 /dev/rhdisk27          10E:0 10A:D0  2-Way Mir     Grp'd        RW    4314

0061 /dev/rhdisk28          10E:0 09C:C0  2-Way Mir     Grp'd        RW    4314

0062 /dev/rhdisk29          10E:0 10B:C0  2-Way Mir     Grp'd        RW    4314

0063 /dev/rhdisk30          10E:0 09D:D0  2-Way Mir     Grp'd        RW    4314

0064 /dev/rhdisk31          10E:0 09A:C2  2-Way Mir     Grp'd        RW    4314

0065 /dev/rhdisk32          10E:0 10C:D2  2-Way Mir     Grp'd        RW    4314

0066 /dev/rhdisk33          10E:0 09B:D2  2-Way Mir     Grp'd        RW    4314

0067 /dev/rhdisk34          10E:0 10D:C2  2-Way Mir     Grp'd        RW    4314

 

Task 2:     Create a device file and device pairs

   1. [   ]    Use a text editor (NotePad, vi) to create a device file containing two columns, R1 devices in one column, R2 devices in the other column.

·        Add a separate line for each device pair.

·        All devices for one side of the SRDF pair must be in the first column, and all devices for the other side of the SRDF pair must be in the second column. It does not matter which side (R1 or R2) is in which column, because the –type option of the symrdf createpair command determines which columns is R1 or R2.

·        All devices for an SRDF side must be in the same column. That is, all R1 devices must be in either the left or right column, and all R2 devices must be in the other column.

 

IMPORTANT:   Do not use mapped remote devices as R2s without first checking that they are not in use by a remote host.

In the following example, the vi text editor is used to create a device file named “devices”. Each R1 device in the first column has a corresponding R2 device in the second column.

<R1Host#> vi devices

0060 0060

0061 0061

0062 0062

0063 0063

.

.

.

.

07EF 07EF

0800 0800

0801 0801

0802 0802

0803 0803

 

   2. [   ]    Type the symrdf –sid SID –rdfg SRDFGroupNum –file Filename createpair –invalidate r2 ‑nowd –type rdf1 rdf_mode Mode –g GroupName command to establish the dynamic pairs as specified in the device file.

In the following example, the createpair command:

·        -sid SID specifies the R1 side Symmetrix. Devices listed in the left column of the device file will be the R1 devices in the new pairs.

·        -rdfg SRDFGroupNum species that communication is between Symmetrix 321 and remote Symmetrix 256.

·        -file FileName species the device file containing the devices to be paired.

·        –invalidate r2 invalidates all tracks on the R2 devices in preparation for a subsequent establish operation.

·        -nowd bypasses the check to ensure the target of the operation is not writable by the host.

·        -type Type specifies that the local devices are R1 when creating SRDF device pairs.

·        -rdf_mode Mode sets the mode to adaptive copy disk, which can transfer large amounts of data transfer without slowing performance.

·        –g GroupName creates a device group named drdf and adds the dynamic SRDF pairs to the group.

 

<R1Host#> symrdf -sid 321 -rdfg 128 -file devices createpair -invalidate r2 -nowd -type rdf1 -rdf_mode acp_disk -g drdf

 

An RDF 'Create Pair' operation execution is in progress for device

file 'devices'. Please wait...

 

    Create RDF Pair in (0321,128)....................................Started.

    Create RDF Pair in (0321,128)....................................Done.

    Mark target device(s) in (0321,128) for full copy from source....Started.

    Devices: 0060-0067, 07E0-07EF in (0321,128)..................... Marked.

    Devices: 0800-0803 in (0321,128)................................ Marked.

    Mark target device(s) in (0321,128) for full copy from source....Done.

 

The RDF 'Create Pair' operation successfully executed for device

file 'devices'.

 

   3. [   ]    Type the symrdf –g GroupName query command to display the status of the dynamic SRDF pairs in the device group drdf.

All pairs are in the Suspended state.

<R1Host#> symrdf -g drdf query

 

Device Group (DG) Name             : drdf

DG's Type                          : RDF1

DG's Symmetrix ID                  : 000192600321    (Microcode Version: 5875)

Remote Symmetrix ID                : 000192600256    (Microcode Version: 5875)

RDF (RA) Group Number              : 128 (7F)

 

 

       Source (R1) View                 Target (R2) View     MODES          

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

             ST                  LI      ST                                    

Standard      A                   N       A                                  

Logical       T  R1 Inv   R2 Inv  K       T  R1 Inv   R2 Inv       RDF Pair   

Device  Dev   E  Tracks   Tracks  S Dev   E  Tracks   Tracks MDAE  STATE      

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

 

DEV001  0060 RW       0    69030 NR 0060 WD       0        0 C.D.  Suspended  

DEV002  0061 RW       0    69030 NR 0061 WD       0        0 C.D.  Suspended  

DEV003  0062 RW       0    69030 NR 0062 WD       0        0 C.D.  Suspended  

.

.

.

.

DEV026  0801 RW       0    69030 NR 0801 WD       0        0 C.D.  Suspended  

DEV027  0802 RW       0    69030 NR 0802 WD       0        0 C.D.  Suspended  

DEV028  0803 RW       0    69030 NR 0803 WD       0        0 C.D.  Suspended  

 

Total          -------- --------           -------- --------

  Track(s)            0  1932840                  0        0

  MB(s)               0   120802                  0        0

 

Task 3:     Establish the device pairs

                       

   1. [   ]    Type the symrdf –g GroupName establish command to initiate copying R1 data to R2 devices.

Note:  The –invalidate r2 option used in the createpair command invalidated the R2 devices. The establish –full command also performs an invalidate operation. If you used the invalidate option in the createpair command, the invalidate step is not repeated, even if you use the –full option when establishing the pairs. If you re-establish or restore the dynamic SRDF pairs, the –full option does affect how the copy occurs (either incremental or full copy). Output in the following example says “Incremental Establish” because the –full option was omitted. However, because all tracks on the R2 devices were previously invalidated, the result is a full copy of all R1 tracks to the R2 tracks.

<R1Host#> symrdf -g drdf establish -noprompt

 

An RDF 'Incremental Establish' operation execution is

in progress for device group 'drdf'. Please wait...

 

    Suspend RDF link(s).......................................Done.

    Resume RDF link(s)........................................Started.

    Resume RDF link(s)........................................Done.

 

The RDF 'Incremental Establish' operation successfully initiated for

device group 'drdf'.

 

   2. [   ]    Type the symrdf –g GroupName query command to display the status of the dynamic SRDF pairs.

The pairs are currently in the process of synchronizing (SyncInProg):

<R1Host#> symrdf -g drdf query

 

Device Group (DG) Name             : drdf

DG's Type                          : RDF1

DG's Symmetrix ID                  : 000192600321    (Microcode Version: 5875)

Remote Symmetrix ID                : 000192600256    (Microcode Version: 5875)

RDF (RA) Group Number              : 128 (7F)

 

 

       Source (R1) View                 Target (R2) View     MODES          

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

             ST                  LI      ST                                   

Standard      A                   N       A                                  

Logical       T  R1 Inv   R2 Inv  K       T  R1 Inv   R2 Inv       RDF Pair   

Device  Dev   E  Tracks   Tracks  S Dev   E  Tracks   Tracks MDAE  STATE      

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

 

DEV001  0060 RW       0    68643 RW 0060 WD       0        0 C.D.  SyncInProg  

DEV002  0061 RW       0    69030 RW 0061 WD       0        0 C.D.  SyncInProg 

DEV003  0062 RW       0    67515 RW 0062 WD       0        0 C.D.  SyncInProg 

.

.

.

DEV026  0801 RW       0    67965 RW 0801 WD       0        0 C.D.  SyncInProg 

DEV027  0802 RW       0    68289 RW 0802 WD       0        0 C.D.  SyncInProg 

DEV028  0803 RW       0    68205 RW 0803 WD       0        0 C.D.  SyncInProg 

 

Total          -------- --------           -------- --------

  Track(s)            0  1896840                  0        0

  MB(s)               0   118552                  0        0

 

   3. [   ]    Type the symrdf –g GroupName verify –synchronized –summary –i Seconds command to display status of the dynamic SRDF pairs in the device group as they reach Synchronized state.

In the following example, status is displayed as a table (-summary) every 15 seconds.

<R1Host#> symrdf -g drdf verify -synchronized -summary -i 15

 

Device Group (DG) Name : drdf

 

  RDF Pair State                Count

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

  Consistent                        0

  Synchronized                      0

  SyncInProg                       28

  Suspended                         0

  Split                             0

  Failed Over                       0

  R1 Updated                        0

  R1 UpdInProg                      0

  TransIdle                         0

  Partitioned                       0

  Invalid                           0

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

  Total                            28

 

  RDF Mode                      Count

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

  Adaptive Copy Disk                28

  Adaptive Copy Write Pending       0

  Asynchronous                      0

  Semi-Synchronous                  0

   Synchronous                      20

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

  Total                            28

 

                                 Track(s)    MB(s)

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

  Total Source R1 Invalid                0        0

  Total Source R2 Invalid          1802979   112686

 

  Total Target R1 Invalid                0        0

  Total Target R2 Invalid                0        0

 

None of the devices in the group 'drdf' are in 'Synchronized' state.

 

 

Device Group (DG) Name : drdf

 

  RDF Pair State                Count

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

  Consistent                        0

  Synchronized                     17

  SyncInProg                       11

  Suspended                         0

  Split                             0

  Failed Over                       0

  R1 Updated                        0

  R1 UpdInProg                      0

  TransIdle                         0

  Partitioned                       0

  Invalid                           0

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

  Total                            28

 

  RDF Mode                      Count

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

  Adaptive Copy Disk                28

  Adaptive Copy Write Pending       0

  Asynchronous                      0

  Semi-Synchronous                  0

   Synchronous                      20

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

  Total                            28

 

                                 Track(s)    MB(s)

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

  Total Source R1 Invalid                0      0.0

  Total Source R2 Invalid            76884   4805.2

 

  Total Target R1 Invalid                0      0.0

  Total Target R2 Invalid                0      0.0

 

  Synchronization rate         :    158.8 MB/S

  Estimated time to completion : 00:00:21

 

Not All devices in the group 'drdf' are in 'Synchronized' state.

 

Device Group (DG) Name : drdf

 

  RDF Pair State                Count

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

  Consistent                        0

  Synchronized                     28

  SyncInProg                        0

  Suspended                         0

  Split                             0

  Failed Over                       0

  R1 Updated                        0

  R1 UpdInProg                      0

  TransIdle                         0

  Partitioned                       0

  Invalid                           0

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

  Total                            28

 

  RDF Mode                      Count

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

  Adaptive Copy Disk                28

  Adaptive Copy Write Pending       0

  Asynchronous                      0

  Semi-Synchronous                  0

   Synchronous                      20

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

  Total                            28

 

                                 Track(s)    MB(s)

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

  Total Source R1 Invalid                0      0.0

  Total Source R2 Invalid                0      0.0

 

  Total Target R1 Invalid                0      0.0

  Total Target R2 Invalid                0      0.0

 

All devices in the group 'drdf' are in 'Synchronized' state.

 

   4. [   ]    Type the symrdf –g GroupName query command to confirm that all devices in the device group are in the Synchronized state:

<R1Host#> symrdf -g drdf query

 

Device Group (DG) Name             : drdf

DG's Type                          : RDF1

DG's Symmetrix ID                  : 000192600321    (Microcode Version: 5875)

Remote Symmetrix ID                : 000192600256    (Microcode Version: 5875)

RDF (RA) Group Number              : 128 (7F)

 

 

       Source (R1) View                 Target (R2) View     MODES          

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

             ST                  LI      ST                                   

Standard      A                   N       A                                  

Logical       T  R1 Inv   R2 Inv  K       T  R1 Inv   R2 Inv       RDF Pair   

Device  Dev   E  Tracks   Tracks  S Dev   E  Tracks   Tracks MDAE  STATE      

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

 

DEV001  0060 RW       0        0 RW 0060 WD       0        0 C.D.  Synchronized

DEV002  0061 RW       0        0 RW 0061 WD       0        0 C.D.  Synchronized

DEV003  0062 RW       0        0 RW 0062 WD       0        0 C.D.  Synchronized

DEV004  0063 RW       0        0 RW 0063 WD       0        0 C.D.  Synchronized

.

.

.

.

.

DEV026  0801 RW       0        0 RW 0801 WD       0        0 C.D.  Synchronized

DEV027  0802 RW       0        0 RW 0802 WD       0        0 C.D.  Synchronized

DEV028  0803 RW       0        0 RW 0803 WD       0        0 C.D.  Synchronized

 

Total          -------- --------           -------- --------

  Track(s)            0        0                  0        0

  MB(s)             0.0      0.0                0.0      0.0

 

Task 4:     Set the mode for the device group

Type the symrdf –g GroupName set mode Mode command to set the replication mode for the device group.

To set the replication mode for device group drdf to synchronous:

<R1Host#> symrdf -g drdf set mode sync -noprompt

 

An RDF Set 'Synchronous Mode' operation execution is in

progress for device group 'drdf'. Please wait...

 

The RDF Set 'Synchronous Mode' operation successfully executed

for device group 'drdf'.

 

Task 5:     Split the device pairs in the device group

                       

   1. [   ]    Type the symrdf –g GroupName split command to split the dynamic SRDF pairs in the device group:

<R1Host#> symrdf -g drdf split -noprompt

 

An RDF 'Split' operation execution is

in progress for device group 'drdf'. Please wait...

 

    Suspend RDF link(s).......................................Done.

    Read/Write Enable device(s) on RA at target (R2)..........Done.

 

The RDF 'Split' operation successfully executed for

device group 'drdf'.

 

   2. [   ]    Type the symrdf –g GroupName query command to confirm the SRDF pairs are in the Split state and the links are not ready (NR):

<R1Host#> symrdf -g drdf query

 

Device Group (DG) Name             : drdf

DG's Type                          : RDF1

DG's Symmetrix ID                  : 000192600321    (Microcode Version: 5875)

Remote Symmetrix ID                : 000192600256    (Microcode Version: 5875)

RDF (RA) Group Number              : 128 (7F)

 

       Source (R1) View                 Target (R2) View     MODES          

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

             ST                  LI      ST                                    

Standard      A                   N       A                                  

Logical       T  R1 Inv   R2 Inv  K       T  R1 Inv   R2 Inv       RDF Pair   

Device  Dev   E  Tracks   Tracks  S Dev   E  Tracks   Tracks MDAE  STATE      

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

 

DEV001  0060 RW       0        0 NR 0060 RW       0        0 S...  Split      

DEV002  0061 RW       0        0 NR 0061 RW       0        0 S...  Split      

DEV003  0062 RW       0        0 NR 0062 RW       0        0 S...  Split      

.

.

.

.

DEV026  0801 RW       0        0 NR 0801 RW       0        0 S...  Split      

DEV027  0802 RW       0        0 NR 0802 RW       0        0 S...  Split      

DEV028  0803 RW       0        0 NR 0803 RW       0        0 S...  Split      

 

Total          -------- --------           -------- --------

  Track(s)            0        0                  0        0

  MB(s)             0.0      0.0                0.0      0.0

 

Task 6:     Delete the device pairs

                       

   1. [   ]    When the link state reaches not ready (NR), you can type symrdf –g GroupName deletepair command to:

·        Cancel the dynamic SRDF pairings defined in the device group, and

·        Delete this pairing information from the host’s SYMAPI database file.

 

The deletepair operation:

·        Changes the type of the device group from RDF1 to REGULAR, and

·        Changes R1 devices in the device group to standard devices.

 

<R1Host#> symrdf -g drdf deletepair -noprompt

 

An RDF 'Delete Pair' operation execution is

in progress for device group 'drdf'. Please wait...

 

    Delete RDF Pair...........................................Started.

    Delete RDF Pair...........................................Done.

 

The RDF 'Delete Pair' operation successfully executed for

device group 'drdf'.

 

   2. [   ]    Type the symrdf –g GroupName query command to confirm that the device group does not have any associated SRDF devices:

<R1Host#> symrdf -g drdf query

 

Device Group 'drdf' has no associated RDF devices that match the criteria specified.

 

The symdg list ld command shows the DG’s Type for drdf is now REGULAR:

<R1Host#> symdg -g drdf list ld

 

Device Group (DG) Name: drdf

DG's Type             : REGULAR

DG's Symmetrix ID     : 000192600321

 

 

        Standard Device Name           Directors              Device          

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

                                                                           Cap

Logical     Physical          Sym    SA :P DA :IT  Config        Att Sts   (MB)

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

 

DEV001      /dev/rhdisk27     0060   10E:0 10A:D0  2-Way Mir         RW    4314

DEV002      /dev/rhdisk28     0061   10E:0 09C:C0  2-Way Mir         RW    4314

DEV003      /dev/rhdisk29     0062   10E:0 10B:C0  2-Way Mir         RW    4314

DEV004      /dev/rhdisk30     0063   10E:0 09D:D0  2-Way Mir         RW    4314

 

.

.

.

.

DEV026      /dev/rhdisk216    0801   10E:0  NA:NA  TDEV              RW    4314

DEV027      /dev/rhdisk217    0802   10E:0  NA:NA  TDEV              RW    4314

DEV028      /dev/rhdisk218    0803   10E:0  NA:NA  TDEV              RW    4314