Clone session using a device group

Below are the steps to create and delete a Clone copy session using a Device Group( DG ).

1

Create a Regular Device Group.

symdg create TestDg -type regular

2

Add the devices to device group.

Add the standard devices AAA( source ) and AAB( Target )to the DG.Assume this will add as DEV001 and DEV002.

symld -sid 1234 -g TestDg add dev AAA
symld -sid 1234 -g TestDg add dev AAB

3

Create Clone Session

symclone -g TestDg create DEV001 sym ld DEV002

The above command will create a clone session and also make the target device in NotReady( NR ) state.You can also add the -precopy option to start a background copy from source to target device, prior to the activation.

symclone -g TestDg create DEV001 sym ld DEV002 -precopy

4

Activate the session

symclone -g TestDg activate DEV001 sym ld DEV002

The above command will start the copy operation from sorce device to target.And also make the target device to Read/Write,thus accessable to the host.

5

Check the status of copy operation.

symclone -g TestDg query

Once the the source device is fully copied from source to target , the state of the pair will change from 'CopyInProg' to 'Copied'.

6

Break the session

symclone -g TestDg terminate DEV001 sym ld DEV002

This will terminate the clone copy session , deletes the pairing information from the storage array and removes any hold on target device.You have to 'Terminate' while the pair in 'Copied' state to get a fully valid data.