Sei sulla pagina 1di 7

SRDF

Requirements:
Two dynamic devices one in each storage sub system.

Specifications

Local Remote

STD - R1 R2
0001 0002
RDFG - 1 1
RA Directors -
Sid - 277 694

Step1: Create standard devices in both the Storage Sub Systems.


Step2: Convert standard devices to dynamic devices (R1, R2) in both the sub Storage
Sub Systems.
Step3: Create RDF groups
Step4: Create RDF pair
Step5: Create Device Groups of types R1 & R2.
Step 1_Imp Notes: As you are acquainted with creation, mapping and masking. We
continue with conversion of standard devices to dynamic devices.

Step 2: Convert standard devices to dynamic devices (R1, R2).


Specification:
Hosts with odd numbers (1, 3, 5, 7, 9, 11) are connected to 277 which acts as
source (local (R1)).
Hosts with even numbers (2, 4, 6, 8, 10,12) are connected to 694 Which acts as
target (remote(R2)).

Local (R1) sid 277:


Create a command file
Sun1# vi dynamic
Set dev 0001 attribute=dyn_rdf;
wq!

Run Configuration
Sun1# symconfigure –sid 277 –v –f dynamic commit -nop

Update symapi_db.bin
Sun1# symcfg discover

To check the dynamic device


Sun1# symdev list –dynamic

Remote (R2) sid 694:


Create a command file
Sun2# vi dynamic
Set dev 0002 attribute=dyn_rdf ;
wq!
Run Configuration
Sun2# symconfigure –sid 694 –v –f dynamic commit -nop

Update sym_api.db
Sun2# symcfg discover

To check the dynamic device


Sun2# symdev list -dynamic

Step3: Create RDF Group on Local Storage Sub System which will be automatically
updated to Remote Storage Sub System.

List the RA directors of the Local storage sub system as well as Remote.
Sun1# symcfg list -ra all
Sun1# symrdf –sid 277 addgrp -rdfg 1 -label sun1rdf -dir 16c,1c remote_sid
694 remote_rdfg 1 remote_dir 16c,1c

Step4: Create RDF Pair on Local Storage Sub System which will be automatically
updated to Remote Storage Sub System.

Create a command file


Sun1# vi rdf_pair
0001 0002
wq!
Sun1# symrdf –sid 277 –f rdf_pair -rdfg1 createpair -establish -type r1

Assign r1 device 0001 to sun1


Sun1# symmask - sid 277 add dev 0001 -awn sun1/port0 -p 0 -dir 1c
Sun1# symmask - sid 277 add dev 0001 -awn sun1/port0 -p 0 -dir 2c
Sun1# symmask - sid 277 add dev 0001 -awn sun1/port0 -p 0 -dir 15c
Sun1# symmask - sid 277 add dev 0001 -awn sun1/port0 -p 0 -dir 16c

Refresh the database


Sun1# symmask refresh

Update symapi_db.bin
Sun1# symcfg discover

List the device


Sun1# symmaskdb list database
Sun1# syminq

Assign r2 device 0002 to sun2


Sun2# symmask - sid 277 add dev 0002 -awn sun2/port0 -p 0 -dir 1c
Sun2# symmask - sid 277 add dev 0002 -awn sun2/port0 -p 0 -dir 2c
Sun2# symmask - sid 277 add dev 0002 -awn sun2/port0 -p 0 -dir 15c
Sun2# symmask - sid 277 add dev 0002 -awn sun2/port0 -p 0 -dir 16c
Refresh the database
Sun2# symmask refresh

Update symapi_db.bin
Sun2# symcfg discover

List the device


Sun2# symmaskdb list database
Sun2# syminq

Step5: Create Device Groups of types R1 in local storage sub system & R2 for
Remote storage sub system.

Creation of R1 device group


Sun1# symdg create symrdf1 -type r1

List the device group


Sun1# symdg list

Add r1 device to the group


Sun1# symld -g symrdf1 add dev 0001

To view the devices added to r1 group


Sun1# symdg show symrdf1 | more

Creation of R2 device group


Sun2# symdg create symrdf2 -type r2

List the device group


Sun2# symdg list

Add r2 device to the group


Sun2# symld -g symrdf2 add dev 0002

To view the devices added to r2 group


Sun2# symdg show symrdf2 | more

Change the logical Device names of R1 & R2 devices.


Sun1# symld -g symrdf1 rename DEV0001 to loc01
Sun2# symld -g symrdf2 rename DEV0001 to rem01

Update sym_api.db
Sun1# symcfg discover
Sun 2# symcfg discover

Set default device group on Local and Remote hosts


Sun1# SYMCLI_DG = symrdf1
Sun1# export SYMCLI_DG

Sun2# SYMCLI_DG = symrdf2


Sun2# export SYMCLI_DG
Check the status of RDF relation
Sun1# symrdf query

Change the modes to semi synchronous


Sun1# symrdf set mode semi loc01

Check the status


Sun1# symrdf query

Change the modes to synchronous


Sun1# symrdf set mode sync loc01

Check the status


Sun1# symrdf query

Change the modes to adaptive copy mode


Sun1# symrdf set mode acp_disk

Check the status


Sun1# symrdf query

Change the modes to adaptive copy mode off


Sun1# symrdf set mode acp_off

Check the status


Sun1# symrdf query

Configure the controller


Sun1# vxdmpadm listctlr
Check the status of the controller

1. If disabled enable it.


Sun1# vxdmpadm enable ctlr c3

2. Find the device and label it


a. Format
b. Label
c. Quit
Imp Notes: Identify the device and enter the device no. and label it.

3. Scan for the disk


Sun1# vxdisk scandisks

4. List the disks


Sun1# vxdisk list

5. Initialize the disk, in our example the enclosure name given to our device is
emc_01.
Sun1# vxdisk setup –i emc_01
6. Now create Volume Manager Disk (vmdisk) by creating disk group.
Sun1# vxdg init sun1dg disk1 = emc_01
7. Create a volume on meta devices
Sun1# vxassist –g sun1dg make vol01 100m

8. List the disk groups


Sun1# vxdisk –o alldgs list

9. List the volume


Sun1# vxprint –h

10. Create file system on the volume


Sun1# newfs /dev/vx/rdsk/sun1dg /vol01

11. Create a mount point


Sun1# mkdir /localrdf

12. Mount the volume


Sun1# mount /dev/vx/dsk/sun1dg/vol01/localrdf
Sun1# cd /localrdf

13. Add the data


Sun1# cp –r /etc/r* .

14. Verify the data


Sun1# ls

Check the status


Sun1# symrdf query

Suspend the RDF link


Sun1# symrdf suspend

Check the status


Sun1# symrdf query

Add the data on R1 device


Sun1# cp –r /etc/t* .

Verify the data


Sun1# ls

Check the status if any invalid tracks are developed


Sun1# symrdf query / symdev show loc01

Resume the RDF Link


Sun1# symrdf resume

Check the status of R1 & R2 devices


Sun1# symrdf query
Imp Notes: R1 device should have rewrite (RW) access and R2 device
should show write disable (WD)

FAILOVER

In disaster situations, the R1 storage subsystem failover the control to R2 storage


subsystem.

Steps involved:

On Local host (R1)


Unmount the volume
Sun1#cd
Sun1#umount /localrdf

Deport the volume


Sun1#vxdg deport sun1dg

On remote host (R2)

Failover from Local to Remote


Sun2#symrdf failover

Check the status of R1 and R2 volume


Sun2#symrdf query

Note: Here the status of production volume is Write Disable and backup becomes
Read/Write enable

Scan for the disks


Sun2#vxdisk scandisks

Display the list of online dgs


Sun2#vxdisk list

Import the volume


Sun2#vxdg import sun1dg

Create a mount point


Sun2#mkdir /remoterdf

Mount the volume


Sun2#mount /dev/vx/dsk/sun1dg/vol1 /remoterdf
Sun2#cd /remoterdf
Sun2# ls

On the remote host the data will been seen, the operation is successful

Add a few files for reference


Sun2#cp –r /etc/k*.

Check the status and see if any invalid tracks are accumulated
Sun2#symrdf query
Needed to Unmount from the remote host
Sun2#cd
Sun2#umount /remoterdf

Deport the volume


Sun2#vxdg –C deport sun1dg

Fail back to local host or (R1)


Sun2#symrdf failback

Check the status and see if any invalid tracks are accumulated
Sun2#symrdf query

On the local host (R1)

Mount the volume


Sun1# mount /dev/vx/dsk/sun1dg/vol01/localrdf
Sun1# cd /localrdf
Sun1# ls

On the remote host the data will been seen, the operation is successful

Potrebbero piacerti anche