Sei sulla pagina 1di 55

Advanced Replication and Disaster

Recovery in a Linux on System z


Environment

Gail Riley
EMC
March 15, 2010
9165
Objectives

After completing this session, you will be able to:


• Discuss the basic considerations when implementing
replication
• Understand the basic tasks needed to configure Local and
Remote Replication on a Symmetrix
• Describe the processes for accessing a Local and Remote
replica in a Linux on System z environment

2
Replication – Business Recovery Tools

• TimeFinder – Local Replication


• Provides multiple point-in-time copies of data to distribute business tasks
• This allows for simultaneous action of previously sequential business tasks Linux
• An example of this is the ability to backup a point-in-time copy of critical Linux
data while production operations continue on the source data
• Forms of Local Replication include stand alone point-in-time
copies and capacity savings point-in-time views
• SRDF – Remote Replication
• Allows the movement of data between storage systems in the same room,
to different buildings located across town, or thousands of miles apart
• Offers various disaster recovery levels
• Enables the following operations: Linux Linux
• Disaster recovery, Disaster restart testing
• Recovery from planned outages, Remote backup
• Data center migration, Data replication and mobility

3
Disaster Recovery versus Disaster
Restart
• Most business critical applications have some level of data interdependencies
• Disaster recovery
• Restoring previous copy of data and applying logs to that copy to bring it to
a known point of consistency
• Generally implies the use of backup technology
• Data copied to tape and then shipped off-site
• Requires manual intervention during the restore and recovery processes
• Disaster restart
• Process of restarting mirrored consistent copies of data and applications
• Allows restart of all participating DBMS to a common point of consistency
utilizing automated application of recovery logs during DBMS initialization
• The restart time is comparable to the length of time required for the
application to restart after a power failure

4
Forms of Local Replication

• Full Volume Copy - Clone


• Data is copied from the Source Device to a Target Device of equal
size and emulation Source Target

• Pointer Based Replication - Snap


• The Target Device is a virtual device housing a collection of pointer
between the Source and a reserve area for a point-in-time view
Source Target

5
TimeFinder – Local Replication
• Clone
• Provides up to 16 concurrent, instant Point-in-
Time:
• Copies of a Volume or Dataset
LPAR
• Immediately accessible after activation Source MVS OS/390
• The CLONE is completed in the background in the Host
Symmetrix
• Target device can be larger than Source Target
LPAR
• Snap
• SNAP’S create logical point-in-time “snapshots”
of a source volume
• Requires only a fraction of the source volume’s Production
Production View
View
capacity (based on percentage of writes)
• Multiple Snapshots can be created from a
source volume and are available immediately
• Snapshots support read / write processing
• Supports mainframe and open systems host Save
Area Snapshot
Snapshot
environments
View
View
Cache-Based
Pointer Map
6
Forms of Remote Replication

• Data Distribution -
• Data is copied from one storage system to another without
maintaining a consistent recoverable copy
• Source ≠ Target
• Synchronous Replication
• Identical copies of data across storage systems where writes are
committed across to remote systems/sites first which increases
execution time
• Source = Target
• Asynchronous Replication
• Data is a point-in-time consistent copy but writes happen locally
and are sent across to remote systems/sites at a predetermined
time
• Source ≅ Target

7
Symmetrix Remote Data Facility:
Two Site solutions
SRDF/Synchronous Source Target
y No data exposure
y Some performance impact R1 Limited Distance R2

y Limited distance

SRDF/Asynchronous Source Target


y Predictable RPO
y No performance impact R1
Unlimited Distance R2

y Unlimited distance
y Only two copies of data required

SRDF/AR
Source Target
y Data Movement solution
y No performance impact
R1 Unlimited Distance R2
y Unlimited distance

8
Creating a TimeFinder Consistent Copy

• Different options depending on application and host requirements


• Server
• Pause I/O at the Server Level to provide a Consistent Point-in-Time Copy
• Application
• Stop the application and unmount the file system prior to
activate or split Linux
• Database hot backup mode Linux

• Database freeze/thaw
• Symmetrix based
• Enginuity Consistency Assist (ECA) holds IO at the
Symmetrix until all Splits/Activate complete

9
SRDF/Consistency Groups Overview

• Preserves dependent-write consistency of devices


• Ensures application dependent write consistency of the application data
remotely mirrored by SRDF operations in the event of a rolling disaster
• Across multiple Symmetrix systems and/or multiple SRDF groups within a
Symmetrix system
• A composite group comprised of SRDF
R1 or R2 devices logically
suspended
• Configured to act in unison to maintain the
integrity of a database or application distributed
across Symmetrix systems
• Included with SRDF/S and SRDF/A
• SRDF/S using Enginuity Consistency Assist (ECA) Fault event
• SRDF/A using Multi Session Consistency (MSC)

Ensures dependent-write consistency of the data


remotely mirrored by SRDF
10
Linux on System z Replication Devices

• The Symmetrix replicates disk drives


• FBA
• SCSI disk drives configured as zfcp devices
• CKD
• Dedicated to guest virtual machine

11
SRDF Lab Configuration

Primary Recovery
LPAR z11 Site Site LPAR x14
z/VM z/VM
Linux Linux
Fibre Channel
or
GigE Switch
R1 R2
CKD 7F CKD
8F
10F
9F

Primary Site Recovery Site


192601700 192601715
V-Max V-Max

Source Symmetrix Remote Symmetrix


Symmetrix SID 1700 Symmetrix SID 1715
RDF Group 4,10 Remote RDF Group 4,10
Composite Group zL1_rdfcg Composite Group zL1_rdfcg
Name Name
Remote Director 8F, 9F Remote Director 7F,10F
12
Replication Management

Open Systems
• Open Systems host over an IP
Network – SMC
• Solutions Enabler (SE) or SE
• Symmetrix Management
Console IP Network

• z/OS
• Resource Pak Client

• EMC z/OS Storage


Manager (EzSM) Guest Guest
z/VM LPAR
z/OS LPAR for
Linux as a–
Management via
guest virtual
z/OS LPAR EzSM
machine
running SE

13
EMC Replication Management Options

• Solutions Enabler – 7.1


• On Linux – SUSE 10/11 and Red Hat 5.4
• Open Systems hosts – Windows, Linux, UNIX
• Mainframe Enabler
• z/OS
• Symmetrix Management Console (SMC)
• Windows, Linux (x86), UNIX
• EMC z/OS Storage Manager (EzSM)
• ISPF like Panel Menu Interface
• EMC products for TPF
• TimeFinder Controls for TPF
• SRDF Controls for TPF
• ResourcePak for TPF

14
Replication Control for Linux on System z
from
Windows
Symmetrix Management Console
Replication Management: Web Interface

• Symmetrix Management Console (SMC)


• Web interface to interface directly with Storage System
• Used for general storage management and Local and
Remote Replication operations
• Provides Management at the Storage Subsystem Level

16
Local Replication Operations with SMC

• TimeFinder operations are invoked by selecting a DG or CG and using


the Replication option
• TimeFinder
TimeFinder Operations in SMC
• Mirror (DMX-4 and below)
• Clone
• Snap
• SAVE Device Pool Management

17
TimeFinder/Clone Associate Pairs

18
TimeFinder/Clone Create Session

• Clone Actions
• Create
• Activate
• Terminate
• Establish (Full/Incremental)
• Restore (Full/Incremental)
• Recreate
19
TimeFinder/Clone Activate Session

20
Building SRDF Configuration with SMC
• Use SRDF Replication Wizard

21
Identify Configuration

• Select between two site configurations

22
Identify Source Site

• Select the Source Symmetrix and R1 Devices

23
Select Target Symmetrix and Create
Group

24
Verify Symmetrix Device Pairs

• Verify R1 to R2 as the R2 will be overwritten and any data


on it lost

25
Automatically Create a Device Group

• Device Group is required to perform SRDF operations

26
Summary of SRDF Process

• Confirm SRDF configuration before execution

27
SRDF Operations Supported by SMC

• SRDF Control
• Perform Disaster Recover or
Concurrent operations on
SRDF Devices
• SRDF Settings
• Set the replication operation SRDF - SMC
mode for SRDF devices Replication
• SRDF Configuration
• Manage SRDF Groups
• Manipulate SRDF Pairs

28
SRDF Settings - Setting SRDF Mode

29
SRDF Control - Failover, Failback

30
Replication Control from z/OS
Mainframe Enabler for z/OS
Replication Management: z/OS

• Mainframe Enabler for z/OS


• EMC ResourcePak Base for z/OS (Symmetrix Control Facility)
• EMC Consistency Groups for z/OS
• SRDF Host Component for z/OS
• EMC TimeFinder/Clone Mainframe SNAP Facility
• EMC TimeFinder/Mirror for z/OS
• EMC TimeFinder Utility
• EMC z/OS Storage Manager (EzSM)
• EMC products for TPF
• TimeFinder Controls for TPF
• SRDF Controls for TPF
• ResourcePak for TPF
• Provides Management at the Host and Storage Subsystem Level
• Allows for application level control at the z/OS LPAR

32
Mainframe Enabler for z/OS

• The Enabler for EMC’s z/OS


TimeFinder and SRDF Business
Mainframe Enabler Symmetrix
Continuance solutions Components (e.g. TF
Control
SRDF HC)
• Symmetrix Control Facility Or ISV Developed Facility
Products • EMCSAI
(SCF) address space • SNAPAPI
• Automation
• Persistent EMC Subsystem for • Meta Data
SymmAPI functions:
• Gathering and maintaining
device information z/OS
• Performing automation IOS
functions
• Multi LPAR coordination via
Symmetrix
• Provides a “Central Point of
Control”

33
SRDF Host Component for z/OS

• Host based utility for monitoring and managing of


TimeFinder and SRDF solutions
#SQ GLOBAL
• Runs as a started task #SQ LINK,0100,E
• Multiple user interfaces #SQ RDFGRP,0100
#SQ VOL,SCFG(CE01S02GNS)
• z/OS operator commands
• Batch Interface to ease automation
• ISPF like interface for ad-hoc usage
• REXX support for common procedures
• EMCSPE: Stored Procedure Executive, with common
scripts

34
Replication Control from
Linux for System z

Solutions Enabler for Linux on System z


SRDF Lab Configuration

LPAR z11 LPAR x14


Primary Recovery
Site Site

Fibre Channel
or
GigE Switch
R1 R2
CKD 7F CKD
8F
10F
9F

Primary Site Recovery Site


192601700 192601715
V-Max V-Max

Source Symmetrix Remote Symmetrix


Symmetrix SID 1700 Symmetrix SID 1715
RDF Group 4,10 Remote RDF Group 4,10
Composite Group zL1_rdfcg Composite Group zL1_rdfcg
Name Name
Remote Director 8F, 9F Remote Director 7F,10F
36
CKD Lab Environment – Primary Site

LN150148 LN150150
Red Hat 5.x SLES
EMC EMC
Solutions Solutions
Enabler Enabler FICON

CHPID 82
CHPID 83

z/VM 5.4 LPAR

Symmetrix Guest Local


z/VM Remote
Logical Dev Clone
IODEVICE SLV (R2)
Volumes (R1) Addr SLV

00e7 2147 0100 00AA 00e7 6g:0


SYMM
9g:0 V-Max
serial
128a- 128a- 022A- number
1196-119D - 1700
1291 1291 0231 1700

37
CKD Lab Environment – Recovery Site

DR150148 DR150150
Red Hat 5.x SLES
EMC EMC
Solutions Solutions
Enabler Enabler FICON

CHPID 88
CHPID 89

z/VM 5.4 LPAR

Symmetrix Guest Local


z/VM Remote
Logical Dev Clone
IODEVICE SLV
Volumes (R2) Addr SLV

00e7 23FA 0100 00EA - 7g:0


SYMM
8g:0 V-Max
serial
26F0- 128A- 0290- number
1715
022A - 0231 -
26F7 1291 0297 1715

38
Replication Management: Linux on
System z

• Solutions Enabler – 7.1


• Linux on System z SLES 10/11 and Redhat 5.4
• Open Systems hosts – Windows, Linux, UNIX

• Provides Management at the Host and Storage Subsystem


Level
• Allows for application level control at the Linux on System z
Server

39
List Linux Virtual Machines Devices
• Use vmcp to query the virtual machine devices
• Make sure virtual addresses are consistent across sites

## vmcp
vmcp qq vv all
all
……………………
……………………
DASD
DASD 0100
0100 ONON DASD
DASD 2147
2147 R/W
R/W 0X0100
0X0100 SUBCHANNEL
SUBCHANNEL == 000C
000C
…………………
…………………
DASD
DASD 128A
128A ONON DASD
DASD 128A
128A R/W
R/W 0X128A
0X128A SUBCHANNEL
SUBCHANNEL == 000E
000E
DASD 128B ON DASD
DASD 128B ON DASD 128B
128B R/W
R/W 0X128B
0X128B SUBCHANNEL
SUBCHANNEL == 000F
000F
DASD
DASD 128C
128C ONON DASD
DASD 128C
128C R/W
R/W 0X128C
0X128C SUBCHANNEL
SUBCHANNEL == 0010
0010
DASD
DASD 128D
128D ONON DASD
DASD 128D
128D R/W
R/W 0X128D
0X128D SUBCHANNEL
SUBCHANNEL == 0011
0011
DASD
DASD 128E
128E ONON DASD
DASD 128E
128E R/W
R/W 0X128E
0X128E SUBCHANNEL
SUBCHANNEL == 0013
0013
DASD
DASD 128F
128F ONON DASD
DASD 128F
128F R/W
R/W 0X128F
0X128F SUBCHANNEL
SUBCHANNEL == 0014
0014
DASD 1290 ON DASD
DASD 1290 ON DASD 1290
1290 R/W
R/W 0X1290
0X1290 SUBCHANNEL
SUBCHANNEL == 0015
0015
DASD
DASD 1291
1291 ONON DASD
DASD 1291
1291 R/W
R/W 0X1291
0X1291 SUBCHANNEL
SUBCHANNEL == 0016
0016

40
List Symmetrix Devices
• Verify Symmetrix Devices are available on each
Symmetrix
## symdev
symdev list
list -range
-range 1196:119d
1196:119d -sid
-sid 1700
1700

Symmetrix
Symmetrix ID:
ID: 000192601700
000192601700

Device
Device Name
Name Directors
Directors Device
Device
-----------------------
----------------------- ------------- ------------------------------------
------------- ------------------------------------
Cap
Cap
Sym
Sym Physical
Physical SA
SA :P
:P DA
DA :IT
:IT Config
Config Attribute
Attribute Sts
Sts (MB)
(MB)
-----------------------
----------------------- -------------
------------- --------------------------------------
--------------------------------------
1196
1196 Not
Not Visible
Visible ***:*
***:* 06B:D7
06B:D7 RDF1+Mir
RDF1+Mir Grp'd
Grp'd RW
RW 902
902
1197 Not Visible
1197 Not Visible ***:* 09B:D2
***:* 09B:D2 RDF1+Mir
RDF1+Mir Grp'd
Grp'd RW
RW 902
902
1198
1198 Not
Not Visible
Visible ***:*
***:* 05C:C0
05C:C0 RDF1+Mir
RDF1+Mir Grp'd
Grp'd RW
RW 902
902
1199
1199 Not
Not Visible
Visible ***:*
***:* 09A:C0
09A:C0 RDF1+Mir
RDF1+Mir Grp'd
Grp'd RW
RW 902
902
119A
119A Not
Not Visible
Visible ***:*
***:* 06D:C0
06D:C0 RDF1+Mir
RDF1+Mir Grp'd
Grp'd RW
RW 902
902
119B
119B Not
Not Visible
Visible ***:*
***:* 09D:C1
09D:C1 RDF1+Mir
RDF1+Mir Grp'd
Grp'd RW
RW 902
902
119C
119C Not
Not Visible
Visible ***:*
***:* 05A:D7
05A:D7 RDF1+Mir
RDF1+Mir Grp'd
Grp'd RW
RW 902
902
119D Not Visible
119D Not Visible ***:* 10C:C1
***:* 10C:C1 RDF1+Mir
RDF1+Mir Grp'd
Grp'd RW
RW 902
902

41
TimeFinder/Clone Operations
• Create device group
• Add source device and associate target to device group
## symdg
symdg create
create -type
-type rdf1
rdf1 zL_cl_dg1
zL_cl_dg1
## symld
symld -g
-g zL_cl_dg1 add dev 00e7
zL_cl_dg1 add dev 00e7
## symld
symld -g
-g zL_cl_dg1
zL_cl_dg1 add
add dev
dev 00aa
00aa -tgt
-tgt
## symdg
symdg show zL_cl_dg1
show zL_cl_dg1

Group
Group Name:
Name: zL_cl_dg1
zL_cl_dg1

Group
Group Type
Type :: RDF1
RDF1 (RDFA)
(RDFA)
Standard (STD) Devices (1):
Standard (STD) Devices (1):
{{
--------------------------------------------------------------------
--------------------------------------------------------------------
Sym
Sym Cap
Cap
LdevName
LdevName PdevName
PdevName Dev
Dev Att.
Att. Sts
Sts (MB)
(MB)
--------------------------------------------------------------------
--------------------------------------------------------------------
DEV001
DEV001 N/A
N/A 00E7
00E7 RW
RW 8120
8120
}}

TGT
TGT Devices
Devices Locally-associated
Locally-associated (1):
(1):
{{
--------------------------------------------------------------------
--------------------------------------------------------------------
Sym
Sym Cap
Cap
LdevName
LdevName PdevName
PdevName Dev Att. Sts
Dev Att. Sts (MB)
(MB)
--------------------------------------------------------------------
--------------------------------------------------------------------
TGT001
TGT001 N/A
N/A 00AA
00AA RW
RW 8120
8120

42
TimeFinder/Clone Operations
• Creating a session builds relationship between the source and target
• No data is immediately copied unless the –precopy flag is specified
• Use the –differential
• If the Clone will be repeatedly refreshed (recreate)
• If Clone might be used for incremental restore back to the source

## symclone
symclone -g
-g zL_cl_dg1
zL_cl_dg1 create
create -tgt
-tgt -precopy
-precopy -differential
-differential

Execute
Execute 'Create'
'Create' operation
operation for
for device
device group
group
'zL_cl_dg1'
'zL_cl_dg1' (y/[n])
(y/[n]) ?? yy

'Create'
'Create' operation
operation execution
execution is
is in
in progress
progress for
for
device
device group
group 'zL_cl_dg1'.
'zL_cl_dg1'. Please
Please wait...
wait...

'Create'
'Create' operation
operation successfully
successfully executed
executed for
for device
device group
group
'zL_cl_dg1'.
'zL_cl_dg1'.

43
TimeFinder/Clone Operations
• Session created
• Review PreCopy status
## symclone
symclone -g
-g zL_cl_dg1
zL_cl_dg1 query
query

Device
Device Group
Group (DG)
(DG) Name:
Name: zL_cl_dg1
zL_cl_dg1
DG's Type
DG's Type : RDF1
: RDF1
DG's
DG's Symmetrix
Symmetrix ID
ID :: 000192601700
000192601700

Source
Source Device
Device Target
Target Device
Device State
State Copy
Copy
---------------------------------
--------------------------------- ----------------------------
---------------------------- ------------
------------ ----
----
Protected
Protected Modified
Modified Modified
Modified
Logical
Logical Sym
Sym Tracks
Tracks Tracks
Tracks Logical
Logical Sym
Sym Tracks
Tracks CGDP
CGDP SRC
SRC <=>
<=> TGT
TGT (%)
(%)
---------------------------------
--------------------------------- ----------------------------
---------------------------- ------------ ----
------------ ----
DEV001
DEV001 00E7
00E7 102936
102936 00 TGT001
TGT001 00AA
00AA 00 XXX.
XXX. PreCopy
PreCopy 31
31

Total
Total --------
-------- --------
-------- --------
--------
Track(s)
Track(s) 102936
102936 00 00
MB(s)
MB(s) 5562.6
5562.6 0.0
0.0 0.0
0.0

Legend:
Legend:
(C):
(C): XX == The
The background
background copy
copy setting
setting is
is active
active for
for this
this pair.
pair.
.. == The
The background
background copy
copy setting
setting is
is not
not active
active for
for this
this pair.
pair.
(G): X = The Target device is associated with this
(G): X = The Target device is associated with this group.group.
.. == The
The Target
Target device
device is
is not
not associated
associated with
with this
this group.
group.
……………………………………….
……………………………………….

44
TimeFinder/Clone Operations
• activate a session makes a Target R/W accessible to host
• Establishes point-in-time copy
• Three copy options:
• Copy on Access (default)
• Copy on Write (-nocopy when session created)
• Full background copy (-copy)

## symclone
symclone -g
-g zL_cl_dg1
zL_cl_dg1 activate
activate -tgt
-tgt

Execute
Execute 'Activate'
'Activate' operation
operation for
for device
device group
group
'zL_cl_dg1'
'zL_cl_dg1' (y/[n])
(y/[n]) ?? yy

'Activate'
'Activate' operation
operation execution
execution is
is in
in progress
progress for
for
device
device group
group 'zL_cl_dg1'.
'zL_cl_dg1'. Please
Please wait...
wait...

'Activate'
'Activate' operation
operation successfully
successfully executed
executed for
for device
device group
group
'zL_cl_dg1'.
'zL_cl_dg1'.

45
TimeFinder/Clone Create – Protected Tracks
• All tracks marked as protected
## symclone
symclone -g
-g zL_cl_dg1
zL_cl_dg1 create
create -tgt
-tgt
Execute
Execute 'Create' operation for
'Create' operation for device
device group
group
'zL_cl_dg1'
'zL_cl_dg1' (y/[n])
(y/[n]) ?? yy

'Create'
'Create' operation
operation execution
execution is
is in
in progress
progress for
for
device group 'zL_cl_dg1'. Please wait...
device group 'zL_cl_dg1'. Please wait...

'Create'
'Create' operation
operation successfully
successfully executed
executed for
for device
device group
group
'zL_cl_dg1'.
'zL_cl_dg1'.
## symclone
symclone -g
-g zL_cl_dg1
zL_cl_dg1 query
query

Device
Device Group
Group (DG)
(DG) Name:
Name: zL_cl_dg1
zL_cl_dg1
DG's
DG's Type
Type :: RDF1
RDF1
DG's Symmetrix ID
DG's Symmetrix ID : 000192601700
: 000192601700

Source
Source Device
Device Target
Target Device
Device State
State Copy
Copy
---------------------------------
--------------------------------- ----------------------------
---------------------------- ------------
------------ ----
----
Protected
Protected Modified
Modified Modified
Modified
Logical
Logical Sym
Sym Tracks
Tracks Tracks
Tracks Logical
Logical Sym
Sym Tracks
Tracks CGDP
CGDP SRC
SRC <=>
<=> TGT
TGT (%)
(%)
---------------------------------
--------------------------------- ----------------------------
---------------------------- ------------ ----
------------ ----
DEV001
DEV001 00E7
00E7 150255
150255 00 TGT001
TGT001 00AA
00AA 00 XXX.
XXX. Created
Created 00

Total
Total --------
-------- --------
-------- --------
--------
Track(s)
Track(s) 150255
150255 00 00
MB(s)
MB(s) 8119.6
8119.6 0.0
0.0 0.0
0.0

46
TimeFinder/Clone Operations
• Recreate Clone session
• Establishes new point-in-time copy after activation
• Only the changed tracks since last activation are copied
• Session must have been created with –copy or –precopy and –differential option

## symclone
symclone -g
-g zL_cl_dg1
zL_cl_dg1 recreate
recreate -tgt
-tgt

Execute
Execute 'Recreate'
'Recreate' operation
operation for
for device
device group
group
'zL_cl_dg1'
'zL_cl_dg1' (y/[n])
(y/[n]) ?? yy

'Recreate'
'Recreate' operation
operation execution
execution is
is in
in progress
progress for
for
device
device group
group 'zL_cl_dg1'.
'zL_cl_dg1'. Please
Please wait...
wait...

'Recreate'
'Recreate' operation
operation successfully
successfully initiated
initiated for
for device
device group
group
'zL_cl_dg1'.
'zL_cl_dg1'.

[root@ln150148
[root@ln150148 ~]#
~]# symclone
symclone -g
-g zL_cl_dg1
zL_cl_dg1 activate
activate -tgt
-tgt

Execute
Execute 'Activate'
'Activate' operation
operation for
for device
device group
group
'zL_cl_dg1' (y/[n]) ?
'zL_cl_dg1' (y/[n]) ? yy

'Activate'
'Activate' operation
operation execution
execution is
is in
in progress
progress for
for
device group 'zL_cl_dg1'. Please wait...
device group 'zL_cl_dg1'. Please wait...

'Activate'
'Activate' operation
operation successfully
successfully executed
executed for
for device
device group
group

47
TimeFinder/Clone Operations
• Terminate deletes the pairing information
• If not in a COPIED state, target will not be a
complete copy and thus unusable

## symclone
symclone -g
-g zL_cl_dg1
zL_cl_dg1 terminate
terminate -tgt
-tgt

Execute
Execute 'Terminate'
'Terminate' operation
operation for
for device
device group
group
'zL_cl_dg1'
'zL_cl_dg1' (y/[n])
(y/[n]) ?? yy

'Terminate'
'Terminate' operation
operation execution
execution is
is in
in progress
progress for
for
device
device group
group 'zL_cl_dg1'.
'zL_cl_dg1'. Please
Please wait...
wait...

'Terminate'
'Terminate' operation
operation successfully
successfully executed
executed for
for device
device group
group
'zL_cl_dg1'.
'zL_cl_dg1'.

48
Creating Dynamic SRDF Groups

## symrdf
symrdf -v
-v addgrp
addgrp -label
-label rdf-10
rdf-10 -rdfg
-rdfg 10
10 -sid
-sid 1700
1700 -dir
-dir 8F
8F -remote_rdfg
-remote_rdfg
10
10 -remote_sid
-remote_sid 1715
1715 -remote_dir
-remote_dir 7F
7F –noprompt
–noprompt

## symcfg
symcfg list
list -ra
-ra 8f
8f -sid
-sid 1700
1700

Symmetrix
Symmetrix ID:
ID: 000192601700
000192601700

SS YY MM MM EE TT RR II XX RR DD FF DD II RR EE CC TT OO RR SS

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

RF-8F
RF-8F 08F
08F 88
88 88 RDF-R1
RDF-R1 -- 000192601715
000192601715 44 (03)
(03) 44 (03)
(03) Online
Online
-- 000192601715
000192601715 10
10 (09)
(09) 10
10 (09)
(09)
-- 000192601715
000192601715 11 (0A) 11 (0A)
11 (0A) 11 (0A)

49
RDF Group Details
## symcfg
symcfg -rdfg
-rdfg all
all list
list -sid
-sid 1700
1700

Symmetrix
Symmetrix ID
ID :: 000192601700
000192601700

SS YY MM MM EE TT RR II XX RR DD FF GG RR OO UU PP SS

Local
Local Remote
Remote Group
Group RDFA
RDFA Info
Info
--------------
-------------- ---------------------
--------------------- -----------------------
----------------------- -----------------
-----------------
LL
LL Flags
Flags Dir
Dir Flags
Flags Cycle
Cycle
RA-Grp
RA-Grp (sec)
(sec) RA-Grp
RA-Grp SymmID
SymmID TT Name
Name LPDS
LPDS Cfg
Cfg CSRM
CSRM time
time Pri
Pri
--------------
-------------- --------------------- -----------------------
--------------------- ----------------------- ----- -----
----- ----- ------
44 (( 3)
3) 10
10 44 (( 3)
3) 000192601715
000192601715 DD RDF-4
RDF-4 XX..
XX.. F-S
F-S -IS-
-IS- 30
30 33
33
10
10 (( 9)
9) 10
10 10
10 (( 9)
9) 000192601715
000192601715 DD RDF-10
RDF-10 .X..
.X.. F-S
F-S -IS-
-IS- 30
30 33
33
11 (
11 ( A)A) 10
10 11 ( A) 000192601715 D RDFG_11
11 ( A) 000192601715 D RDFG_11 .X.. F-S
.X.. F-S .AS-
.AS- 30
30 33
33

Legend:
Legend:
?? :: Unknown
Unknown
Group
Group (T)ype
(T)ype :: SS == Static,
Static, DD == Dynamic
Dynamic
Director
Director (C)onfig
(C)onfig :: F-S
F-S = Fibre-Switched, F-H
= Fibre-Switched, F-H == Fibre-Hub
Fibre-Hub
GG == GIGE,
GIGE, EE == ESCON,
ESCON, TT == T3,
T3, -- == N/A
N/A
Group Flags
Group Flags ::
Prevent
Prevent Auto
Auto (L)ink
(L)ink Recovery
Recovery :: XX == Enabled,
Enabled, .. == Disabled
Disabled
Prevent RAs Online Upon (P)ower On: X = Enabled, .
Prevent RAs Online Upon (P)ower On: X = Enabled, . = Disabled = Disabled
Link
Link (D)omino
(D)omino :: XX == Enabled,
Enabled, .. == Disabled
Disabled
(S)TAR
(S)TAR mode
mode :: NN == Normal,
Normal, RR == Recovery,
Recovery, .. == OFF
OFF
RDFA Flags
RDFA Flags ::
(C)onsistency
(C)onsistency :: XX == Enabled,
Enabled, .. == Disabled,
Disabled, -- == N/A
N/A
…………………………………….
…………………………………….

50
Create SRDF Pair Example

## symrdf
symrdf –file
–file pair.txt
pair.txt –sid
–sid 1700
1700 –rdfg
–rdfg 44 –type
–type r1
r1 –establish
–establish createpair
createpair

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

Create
Create RDF
RDF Pair
Pair in
in (0398,04)....................................Done.
(0398,04)....................................Done.
Mark
Mark target
target device(s)
device(s) in
in (0398,04)
(0398,04) for
for full
full copy
copy from
from source....Started.
source....Started.
Device:
Device: 0330
0330 ..................................................
.................................................. Marked.
Marked.
Mark
Mark target
target device(s)
device(s) in
in (0398,04)
(0398,04) for
for full
full copy
copy from
from source....Done.
source....Done.
Merge
Merge track
track tables
tables between
between source
source and
and target
target in
in (0398,01).......Started.
(0398,01).......Started.
Device:
Device: 01D0
01D0 ..................................................
.................................................. Merged.
Merged.
Merge
Merge track
track tables
tables between
between source
source and
and target
target in
in (0398,01).......Done.
(0398,01).......Done.
Resume
Resume RDF
RDF link(s)
link(s) for
for device(s)
device(s) in
in (0398,04)...................Started.
(0398,04)...................Started.
Resume
Resume RDF
RDF link(s)
link(s) for
for device(s)
device(s) in
in (0398,04)...................Done.
(0398,04)...................Done.

The
The RDF
RDF 'Create
'Create Pair'
Pair' operation
operation successfully
successfully executed
executed for
for device
device
file
file ‘pair'.
‘pair'.

51
Linux Replica Device Considerations
• Both Local and Remote Replication have device access considerations
• Dedicated CKD or FCP/FBA devices are supported
• Use device-by-path, not device-id for device setup
• Replicated devices have the same virtual addresses at both sites
• SCSI LUN mapping is the same at both sites for both Symmetrix

• Other considerations
• Identify/minimize hardcoded application dependencies
• Network – IP, hostname, etc.
• Update network, DNS as appropriate
• Automate the process wherever possible

52
Solutions Enabler Considerations
• Gatekeeper devices are required for Solutions Enabler communication to the
Symmetrix
• Use Group Name Services (GNS)
• If booting off a Symmetrix device, at backup site, run symcfg discover to
refresh Symmetrix connectivity

• If Linux is running under z/VM with CKD


• Solutions Enabler with only CKD devices requires gatekeeper devices be
setup as rdev unsupported devclass DASD because CP prevents certain
calls
• These devices will be seen as CGK from Solutions Enabler
• Devices must be referenced by Symmetrix Device Name
• Create special CKD gatekeeper devices at backup site also
• PAV is not supported with rdev unsupported devices so ensure gatekeeper
devices are across multiple paths

53
Solutions Enabler Considerations

• If Linux is running under z/VM – FCP/FBA


• Assign SCSI gatekeeper devices
• Devices can be referenced by Symmetrix Logical Device
name
• Create gatekeeper devices accessible on backup site virtual
machine
• If booting off Symmetrix, at backup site, run symcfg discover
to refresh Symmetrix connectivity

• If Linux is running native in a LPAR


• There are no special considerations for Solutions Enabler

54
Summary
• Planning is key to successful replication
• Local replication is very flexible
• SNAP
• CLONE
• Remote Replication has several options depending on RPO/RTO
• Sync
• Async
• Data Mobility
• Management of the Symmetrix and replication can by done by
• Linux on System z
• z/OS
• Open Systems – Linux, Unix, Windows

55

Potrebbero piacerti anche