Professional Documents
Culture Documents
This blog talks about setting up basic SRDF related functionality on the
Symmetrix / DMX machines using EMC Solutions Enabler Symcli.
For this setup, lets have two different host, our local host will be R1
(Source) volumes and our remote host will be R2 (Target) volumes.
A mix of R1 and R2 volumes can reside on the same symmetrix, in short you
can configure SRDF between two Symmetrix machines to act as if one was
local and other was remote and vice versa.
Step 1
Create SYMCLI Device Groups. Each group can have one or more Symmetrix
devices specified in it.
SYMCLI device group information (name of the group, type, members, and
any associations) are maintained in the SYMAPI database.
In the following we will create a device group that includes two SRDF
volumes.
SRDF operations can be performed from the local host that has access to the source volumes or
the remote host that has access to the target volumes. Therefore, both hosts should have device
groups defined.
Complete the following steps on both the local and remote hosts.
a) Identify the SRDF source and target volumes available to your assigned hosts. Execute the
following commands on both the local and remote hosts.
# symrdf list pd (execute on both local and remote hosts)
or
# syminq
b) To view all the RDF volumes configured in the Symmetrix use the following
# symrdf list dev
c) Display a synopsis of the symdg command and reference it in the
following steps.
# symdg h
d) List all device groups that are currently defined.
# symdg list
e) On the local host, create a device group of the type of RDF1. On the remote host, create a
device group of the type RDF2.
# symdg type RDF1 create newsrcdg (on local host)
# symdg type RDF2 create newtgtdg (on remote host)
f) Verify that your device group was added to the SYMAPI database on both the local and remote
hosts.
# symdg list
g) Add your two devices to your device group using the symld command. Again use (h) for a
synopsis of the command syntax.
On local host:
# symld h
# symld g newsrcdg add dev ###
or
# symld g newsrcdg add pd Physicaldrive#
On remote host:
# symld g newtgtdg add dev ###
or
Create a partition on each disk, format the partition and assign a filesystem
to the partition. Add data on the R1 volumes defined in the newsrcdg device
group.
Step 7
Suspend RDF Link and add data to filesystem. In this step we will suspend
the SRDF link, add data to the filesystem and check for invalid tracks.
a) Check that the R1 and R2 volumes are fully synchronized.
# symrdf query
b) Suspend the link between the source and target volumes.
# symrdf suspend
c) Check link status.
# symrdf query
d) Add data to the filesystems.
e) Check for invalid tracks using the following command:
# symrdf query
f) Invalid tracks can also be displayed using the symdev show command.
Execute the following command on one of the devices in your device group.
Look at the Mirror set information.
On the local host:
# symdev show ###
g) From the local host, resume the link and monitor invalid tracks.
# symrdf resume
# symrdf query
In the next upcoming blogs, we will setup some flags for SRDF and
Director types, etc.
Happy SRDFing!!!!!
SRDF Commands
December 2nd, 2008 Devang Panchigar Leave a comment Go to comments
The following are SRDF Commands and what they are used for.
Composite SRDF commands
1. Failover:
1. Actions:
1. Write disables (WD) R1
2. Sets link to Not Ready (NR)
3. Write enables R2
2. Command:
symrdf -g ${group} failover
2. Update: Helps to speed up the failback operation by copying invalid tracks before write
disabling any disks.
1. Actions:
1. Leaves service state as is.
2. Merges the tracks
3. Copies invalid tracks
2. Command:
symrdf -g ${group} update
3. Failback:
1. Actions:
1. Write disables R2
2. Suspends RDF link
3. Merges the disk tracks.
4. Resumes the link
5. Write enables R1
6. Copies the changed data
2. Command:
symrdf -g ${group} failback
4. Split: Leaves both R1 & R2 in write enabled state.
1. Actions:
1. Suspends the rdf link.
2. Write enables R2
2. Command:
With Synchronous mode, the remote symm must have I/O in cache before the application
receives the acknowledgement. Depending on distance where these Symmetrix machines are
located, this may have a significant impact on performance. This form of SRDF is suggested to
be implemented in a campus environment.
If you want to ensure that the data is replicated real time without dirty tracks from one
symmetrix to the other, you might want to enable Domino effect. With Domino effect, your R1
devices will become not ready if the R2 devices cant be reached.
Semi-synchronous mode
With Semi-synchronous mode, the I/O between the R1 and R2 devices are
always out of sync. The application receives the acknowledgement from the
first write I/O to the local cache. The second I/O isnt acknowledged until the
first is in the remote cache. This form of SRDF is faster than the previous
mentioned Synchronous mode.
Adaptive Copy-Write Pending
With Adaptive Copy-Write Pending, all the R2 volumes are copied over
without the delay of acknowledgement from the application. With this mode,
we can setup a skew parameter that will allow max number of dirty tracks.
Once that number is reached, the system switches to a preconfigured mode
like the semi-synchronous mode until the remote data is all synced. Once
this is hit, SRDF is switched back to Adaptive Copy-Write Pending mode.
2. Commands:
symmir -g ${group} establish Differential reestablish from standard device to BCV
symmir -g ${group} -full restore Full restore of all tracks on BCV to standard device.
symmir -g ${group} restore Differential restore of BCV data to standard device.
The Timefinder Strategies are as follows
1. Maintain BCV mirrors with the standard device; break the mirrors when you want to backup,
test, or develop on a copy of the original.
This is probably the most common way of running Timefinder. The advantage is that the split
operation will happen almost instantly as the mirrors are fully synced all the time. The
disadvantage is that anything towards that happens to the standard device will be reflected in the
BCV mirror.
2. Maintain the BCV as a split device to keep an online backup of the original data.