EMC – SRDF – Operational Commands

Print Friendly, PDF & Email

SRDF related operational commands:

How to list RA ports between 2 EMCs

# symcfg -sid 1234 list -RA all [–switched]

Symmetrix ID: 000292601234

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

                                         Remote        Local    Remote
Ident  Symb  Num  Slot  Type       Attr  SymmID        RA Grp   RA Grp  Status

RF-5H   05H  117     5  RDF-BI-DIR   -   000292605678   2 (01)   2 (01) Online
RF-6H   06H  118     6  RDF-BI-DIR   -   000292605678   2 (01)   2 (01) Online
RF-7H   07H  119     7  RDF-BI-DIR   -   000292605678   2 (01)   2 (01) Online
RF-8H   08H  120     8  RDF-BI-DIR   -   000292605678   2 (01)   2 (01) Online
RF-9H   09H  121     9  RDF-BI-DIR   -   000292605678   2 (01)   2 (01) Online
RF-10H  10H  122    10  RDF-BI-DIR   -   000292605678   2 (01)   2 (01) Online
RF-11H  11H  123    11  RDF-BI-DIR   -   000292605678   2 (01)   2 (01) Online
RF-12H  12H  124    12  RDF-BI-DIR   -   000292605678   2 (01)   2 (01) Online

How to delete a RDF pair and bring the devs into standard mode

# symrdf -sid 1234 -rdfg 2 -f srdf_devs deletepair -force

How to create a SRDF Device pair/group

First select the devices you want to be paired and create a file containing those devices (First column should list the devices which are from the sid against which you will be running the command)
# cat srdf_devs
A001 B001
A002 B002
A003 B003

Find out rdfg group id between arrays
# symcfg -sid 1234 -ra all list

Set up the replication pair between local and remote devices
# symrdf -sid 1234 -rdfg 2 –f srdf_devs createpair -invalidate R2 -type R1 –nop
# symrdf -sid 1234 -rdfg 2 –f srdf_devs createpair -invalidate R2 -type R1 –g testdg (if you want to create the dg at the same time)

How to find out which devices are SRDFed (are either R1 or R2)

# symrdf -sid 1234 list

How to find out diskgroups on a given management server

# symdg list

How to add the device to dg

# symld -sid 1234 -g testdg add dev A001

How to check status of SRDF link establishment

# symrdf verify -synchronized -g testdg DEV001

How to check the status of SRDF Status group

# symrdf -g testdg query -i 5 (will check the status every 5 seconds and will give an estimate time left for sync as well as transfer speed)

How to set a device group to asynchronous mode

# symrdf -g testdg set mode acp_disk

How to set a device to asynchronous mode

# symrdf -g testdg set mode acp_disk DEV003

How to set up acp mode for individual disks not added to dg yet

# symrdf -sid 1234 -f srdf_devs -rdfg 2 set mode acp_disk

How to establish replication between local and remote devices not added to dg yet

# symrdf -sid 1234 -f srdf_devs -rdfg 2 establish -full

How to establish SRDF connection for a single device in a device group

# symrdf –g testdg establish -full DEV001 –nop

How to create SRDF device group

# symdg create -type R1 testdg

How to rename a srdf device group

# symdg rename testdg new_testdg

How to move device from one srdf device group to another and rename

# symld -g testdg move DEV003 new_testdg -rename (will move device DEV003 from testdg to new_testdg and rename it to next available device name)
# symld -g testdg moveall -range A001:A004 new_testdg -rename (will move range of devices from testdg to new_testdg and rename them)

How to change the replication mode (asynchronous)

# symrdf -g group set mode sync
# symrdf -g group set domino on
# symrdf -g group set acp_disk skew 1000

-format option in symrdf while creating a new pair

Prior to 5876 and SE7.4, the createpair command will start full synch of data – by moving
tracks from R1 to R2 or the other way around. With 5867/SE7.4, there is a new option “-format”.
It causes all tracks on R1-R2 pair to be cleared – this obviating the need for full sync. Both
the devices on the source and target must be unmapped from all FE ports or made NR in order to
use -format.
# symrdf -sid 1234 -rdfg 2 -f pair_r1_r2 -type r1 -format -establish

How to resume SRDF between arrays?

When one of the arrays is shutdown, replication between the pair gets suspended and has to be
resumed manually using the command
# symrdf resume

How to unmap a R2 device which is part of a device group

If you want to unmap R2 devices from FA port, you will have to first disable the devices and then unmap each device on each FA port one at a time. You can’t unmap the range of devices all at once using the range. So say you have 1 device mapped to 2 FA ports which you want to write disable. Steps will be as below:

Find out DEV00X device name
# symdg -g testdg list (if srdf device group doesn’t exist, create a temporary one using symdg create -type R1 testdg and use symrdf -g DGNAME query)

Write Disable the device on required FA ports
# symld -sid 1234 -g testdg -sa 09C -p 0 write_disable DEV00X
# symld -sid 1234 -g testdg -sa all write_disable DEV00X (or no device name at all will write disable all devices from the device group from all FAs)

Prepare text file containing unmap command
# cat unmap
unmap dev A001 from dir 09C:0;

Unmap using symconfigure prepapre and commit

How to turn R1 into R2 and vice-versa (swap the personality)

# symrdf -g Testdg query
# symrdf -g Testdg failover
# symrdf -g Testdg swap
# symrdf -g Testdg resume

How to create a RA group between the two arrays

# symrdf addgrp -sid 1234 -rdfg 52 -label rdfg52 -dir 7c,8c,9c,10c -remote_sid 5678 -remote_rdfg 52 -remote_dir 8a,9a,8b,9b

How to remove a RA group between the two arrays

# symrdf removegrp -sid 1234 -label rdfg52

How to change the mode from async to sync

# symrdf -g testdg query | grep SyncInProg | wc -l
      10
# symdg show testdg | grep -i tracks
       RDF Adaptive Copy Skew (Tracks)        : 65535
       Number of R1 Invalid Tracks            : 0
       Number of R2 Invalid Tracks            : 386
           Tracks not Committed to the R2 Side: 0
           R1 Side DSE Used Tracks            : 0
           R2 Side DSE Used Tracks            : 0
# symrdf -g testdg set mode sync
 
Execute an RDF Set 'Synchronous Mode' operation for device
group 'testdg' (y/2) ? y
 
An RDF Set 'Synchronous Mode' operation execution is in
progress for device group 'testdg'. Please wait...
 
The RDF Set 'Synchronous Mode' operation successfully executed
for device group 'testdg'.
 
# symrdf -g testdg query | grep SyncInProg | wc -l
       7
# symrdf -g testdg query | grep SyncInProg | wc -l
       0
# symdg show testdg | grep -i tracks
        RDF Adaptive Copy Skew (Tracks)        : 65535
        Number of R1 Invalid Tracks            : 0
        Number of R2 Invalid Tracks            : 0
            Tracks not Committed to the R2 Side: 0
            R1 Side DSE Used Tracks            : 0
            R2 Side DSE Used Tracks            : 0

SRDF commands related errors:

Error received while deleting a RDF pair and bringing the devs into standard mode

===>

# symrdf -sid 1234 -rdfg 2 -file srdf_devs deletepair -force -nop

An RDF 'Delete Pair' operation execution is in progress for device
file 'srdf_devs'. Please wait...

The device is not in a valid RDF state for this operation

===>
It means it first needs to be split or suspended and then deleted.
# symrdf -sid 1234 -rdfg 2 -file srdf_devs split
# symrdf -sid 1234 -rdfg 2 -file srdf_devs deletepair -force -nop

Error while creating SRDF pair

=====>

# symrdf -sid 1234 -rdfg 2 -invalidate R2 createpair -f srdf_devs -type R1 -nop

An RDF 'Create Pair' operation execution is in progress for device
file 'srdf_devs'. Please wait...

A configuration mismatch was detected between your local and remote device(s)

=====>

This is because the local database for each array on respective MA is not up to date. In this case, run symcfg discover on each MA and then try creating the pair.

OR
some/all of the devices are already in SRDF paired status, or they are paired differently than mentioned in the diskgroup or the device file. In this case create 2 text files – each containing list of devices from each array in the first column and “1” (number 1) in the second column. Run symrdf query to get the status against each array from respective management host.

Error while creating SRDF Pair

====>

# symrdf -sid 1234 -rdfg 2 -invalidate R2 createpair -f srdf_devs -type R1 -nop

An RDF 'Create Pair' operation execution is in progress for device
file 'srdf_devs'. Please wait...

The specified RA group is not valid

====>
This is a misleading message. Run symcfg -sid 1234 list -RA all to verify the rdfg group. It is indeed the value you used while creating the pair. The problem is not with the rdfg value. The problem is with the status of devices. Either some or all the devices are in SRDF pairing relationship already. Run symrdf -sid 1234 list to find out the devices that are in srdf relationship.

Error while creating SRDF Pair

====>

# symrdf -sid 1234 -rdfg 2 -f srdf_devs createpair -type r1 -invalidate r2 -nop

An RDF 'Create Pair' operation execution is in progress for device
file 'srdf_devs'. Please wait...

The devices being acted on are a mixture of dynamic and Non dynamic DRDF devices

====>
This message means that either one or more devices listed in srdf_devs file doesn’t have dyn_rdf attribute set. So, set the attribute=dyn_rdf using symconfigure on listed devices and run createpair again.

Error while creating SRDF Pair

====>

# symrdf -sid 1234 -rdfg 2 -f srdf_devs createpair -type r1 -invalidate r2 -nop

An RDF 'Create Pair' operation execution is in progress for device
file 'srdf_devs'. Please wait...

The device configuration is not valid for the dynamic RDF operation to be performed

====>
This message means that some or all of the devices are already paired up. Run query to check their status.

Error while creating SRDF Pair

====>

# symrdf -sid 1234 -rdfg 2 -f srdf_devs createpair -type r1 -invalidate r2 -nop

An RDF 'Create Pair' operation execution is in progress for device
file 'srdf_devs'. Please wait...

The other pair of the R21 is not in a valid RDF mode for this operation. Operation can not be
performed

====>
It means the target devices are already in another rdf relationship. Devices should be standard
to begin with.

Error while running SRDF query

====>

# symrdf -sid 1234 -rdfg 2 -f srdf_devs query

The device name specified could not be found

====>
Try running the command from management host for partner array.

Error while setting devices to sync mode

====>

# symrdf -sid 1234 -rdfg 2 -f srdf_devs set mode sync -nop

RDF Set Operation will not be executed.

====>
It means some of the devices are already in sync mode

Error while suspending async replication

====>

# symrdf -g srdf_devs suspend -force -nop

Unable to acquire the Symmetrix device lock 

====>
symcfg list -lockn all -sid <SID> on both the arrays shows no lock. But because these lock 9 on devices, you can see them with symdev -sid 1234 list -lock, and release them with symdev -sid 1234 -lock 9 release -nop. You MUST run symcfg discover after releasing the lock. Following that, you should be able to suspend the replication and establish again.

Some devices end up in Invalid state in async replication

====>
This might happen when meta devices are being replicated, and some of the member devices end up being in a state different than the meta head. In such situation, suspend the replication, and then re-establish.

sanaswati
No comments yet.

Leave a Reply

*