Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

4251

June 13th, 2007 13:00

Is there a way to re-create clone session after restore

I have looked at timefinder docs and have not been able to find a way to re-create clone session that has been restored without first terminating it and recreating it from scratch ..which requires full sync again. For example i have DEV001 that has been restored from CLN001 ..so when i run symclone query devices state is "Restored". Now i want to re-create my clone session where DEV001 is copied back to CLN001 ..but i don't want to do a full sync again. If i try to do symclone create and activate it says that device state is in the wrong state. I tried to split the two devices but still no luck.

Thanks

13 Posts

August 3rd, 2007 15:00

try this.

1. symclone -g devgrp restore -tgt
2. symclone -g devgrp split -tgt
3. symclone -g devgrp establish

leave out -full on the establish command so it defaults to incremental.

1 Rookie

 • 

20.4K Posts

June 14th, 2007 16:00

well ..i got my answer from support. Unfortunately there is no way to incrementally re-create clone session. Once clone has been restored to it's source device, you have to terminate the session in order to create a new session. Once you terminate the session DMX stops tracking changed tracks and you have to do a full sync again. He recommended that i use BCV for what i am trying to do , but with BCV's i would have to wait for full sync to finish before i can use them where clones are available immediatly.

13 Posts

August 3rd, 2007 15:00

i believe you can resume the clone session incrementally after a restore. make sure to split the clone before you resume.

1 Rookie

 • 

20.4K Posts

August 3rd, 2007 15:00

unfortunately there is no way to re-create clone session after restore, i tried many different combination including split ...they only way is to terminate after restore, but then it's a create/activate ..so full synch again.

1 Rookie

 • 

20.4K Posts

August 3rd, 2007 16:00

i did try that ..it says device is not in correct state.

13 Posts

August 3rd, 2007 16:00

it works for me. see below output

abbott# symclone -g test_dg restore -tgt

Execute 'Incremental Restore' operation for device group
'test_dg' (y/ ) ? y

'Incremental Restore' operation execution is in progress for
device group 'test_dg'. Please wait...

'Incremental Restore' operation successfully initiated for device group
'test_dg'.


abbott# symclone query -g test_dg -multi


Device Group (DG) Name: test_dg
DG's Type : RDF2
DG's Symmetrix ID : 000187910271


Source Device Target Device State Copy
--------------------------------- ---------------------------- ------------ ----
Protected Modified Modified
Logical Sym Tracks Tracks Logical Sym Tracks CGDP SRC <=> TGT (%)
--------------------------------- ---------------------------- ------------ ----
DEV027 0027 0 0 TGT03B 003B 0 XXX. Restored 100
0 0 N/A 003C 0 X.X. Copied 100

Total -------- -------- --------
Track(s) 0 0 0
MB(s) 0.0 0.0 0.0

abbott# symclone -g test_dg split -tgt

Execute 'Clone Split' operation for device group
'test_dg' (y/ ) ? y

'Clone Split' operation execution is in progress for
device group 'test_dg'. Please wait...

'Clone Split' operation successfully initiated for device group
'test_dg'.

abbott# symclone query -g test_dg -multi


Device Group (DG) Name: test_dg
DG's Type : RDF2
DG's Symmetrix ID : 000187910271


Source Device Target Device State Copy
--------------------------------- ---------------------------- ------------ ----
Protected Modified Modified
Logical Sym Tracks Tracks Logical Sym Tracks CGDP SRC <=> TGT (%)
--------------------------------- ---------------------------- ------------ ----
DEV027 0027 0 0 TGT03B 003B 0 XXX. Split 0
0 0 N/A 003C 0 X.X. Copied 100

Total -------- -------- --------
Track(s) 0 0 0
MB(s) 0.0 0.0 0.0

abbott# symclone -g test_dg establish -tgt

Execute 'Clone Incremental Establish' operation for device group
'test_dg' (y/ ) ? y

'Clone Incremental Establish' operation execution is in progress for
device group 'test_dg'. Please wait...

'Clone Incremental Establish' operation successfully initiated for device group
'test_dg'.

abbott# symclone query -g test_dg -multi


Device Group (DG) Name: test_dg
DG's Type : RDF2
DG's Symmetrix ID : 000187910271


Source Device Target Device State Copy
--------------------------------- ---------------------------- ------------ ----
Protected Modified Modified
Logical Sym Tracks Tracks Logical Sym Tracks CGDP SRC <=> TGT (%)
--------------------------------- ---------------------------- ------------ ----
DEV027 0027 0 0 TGT03B 003B 0 XXX. Copied 100
0 0 N/A 003C 0 X.X. Copied 100

Total -------- -------- --------
Track(s) 0 0 0
MB(s) 0.0 0.0 0.0

1 Rookie

 • 

20.4K Posts

August 3rd, 2007 17:00

thats exactly what i need. this is stange i am doing exactly the same thing you are doing except i am not using establish ..i first create my session and then i activate it. whats the difference ?

1 Rookie

 • 

20.4K Posts

August 4th, 2007 14:00

jyCG,

thank you very much for posting your examples. So i decided to try using establish without activate and it worked exactly how i wanted it to. First of all i nevered used -tgt option when adding STD devices to device group, this is very helpfull as now i don't have to specify each device when i operate on device group. Ok .. so first i added my target device like this:

symld -g testvg add dev 08B2 CLN001 -tgt -sid XXX


next i had to run establish (where before i had to use two separate commands ..i used to first do: symclone -g testvg create -copy -diff DEV001 sym ld CLN001 and then symclone -g testvg activate DEV001 sym ld CLN001. Now all i had to do was this:

$ symclone -g testvg establish -tgt  -full
 
Execute 'Clone Full Establish' operation for device group
'testvg' (y/) ? y
 
'Clone Full Establish' operation execution is in progress for
device group 'testvg'. Please wait...
 
'Clone Full Establish' operation successfully executed for device group
'testvg'


when this completed the state was :

$ symclone -g testvg query
 
 
Device Group (DG) Name: testvg
DG's Type             : REGULAR
DG's Symmetrix ID     : 000XXXxXXXXXX
 
 
         Source Device                   Target Device            State     Copy
--------------------------------- ---------------------------- ------------ ----
               Protected Modified                Modified
Logical   Sym  Tracks    Tracks   Logical   Sym  Tracks   CGDP SRC <=> TGT  (%)
--------------------------------- ---------------------------- ------------ ----
DEV001    08B3         0        0 CLN001    08B2        0 XXX. Copied       100
 
Total           -------- --------                --------
  Track(s)             0        0                       0
  MB(s)              0.0      0.0                     0.0
 
 
Legend:
 
(C): X = The background copy setting is active for this pair.
     . = The background copy setting is not active for this pair.
(G): X = The Target device is associated with this group.
     . = The Target device is not associated with this group.
(D): X = The Clone session is a differential copy session.
     . = The Clone session is not a differential copy session.
(P): X = The pre-copy operation has completed one cycle
     . = The pre-copy operation has not completed one cycle


at this point i decided to do a re-create (incremental establish)..before i had to run symclone -g testvg recreate DEV001 sym ld CLN001, but this time i just ran:

$ symclone -g testvg establish -tgt
 
Execute 'Clone Incremental Establish' operation for device group
'testvg' (y/) ? y
 
'Clone Incremental Establish' operation execution is in progress for
device group 'testvg'. Please wait...
 
'Clone Incremental Establish' operation successfully initiated for device group
'testvg'.


Now i decided to try incremental restore:

$ symclone -g testvg restore -tgt
 
Execute 'Incremental Restore' operation for device group
'testvg' (y/) ? y
 
'Incremental Restore' operation execution is in progress for
device group 'testvg'. Please wait...
 
'Incremental Restore' operation successfully initiated for device group
'testvg'.


after that completed the status was:

$ symclone -g testvg query
 
 
Device Group (DG) Name: testvg
DG's Type             : REGULAR
DG's Symmetrix ID     : 000XXXXXXXX
 
 
         Source Device                   Target Device            State     Copy
--------------------------------- ---------------------------- ------------ ----
               Protected Modified                Modified
Logical   Sym  Tracks    Tracks   Logical   Sym  Tracks   CGDP SRC <=> TGT  (%)
--------------------------------- ---------------------------- ------------ ----
DEV001    08B3         0        0 CLN001    08B2        0 XXX. Restored     100
 
Total           -------- --------                --------
  Track(s)             0        0                       0
  MB(s)              0.0      0.0                     0.0
 
 
Legend:
 
(C): X = The background copy setting is active for this pair.
     . = The background copy setting is not active for this pair.
(G): X = The Target device is associated with this group.
     . = The Target device is not associated with this group.
(D): X = The Clone session is a differential copy session.
     . = The Clone session is not a differential copy session.
(P): X = The pre-copy operation has completed one cycle
     . = The pre-copy operation has not completed one cycle


Next thing i had to split:

$ symclone -g testvg split -tgt
 
Execute 'Clone Split' operation for device group
'testvg' (y/) ? y
 
'Clone Split' operation execution is in progress for
device group 'testvg'. Please wait...
 
'Clone Split' operation successfully initiated for device group
'testvg'.


and then establish, which performed an incremental establish (exactly was i was looking for)

$ symclone -g testvg establish -tgt
 
Execute 'Clone Incremental Establish' operation for device group
'testvg' (y/) ? y
 
'Clone Incremental Establish' operation execution is in progress for
device group 'testvg'. Please wait...
 
'Clone Incremental Establish' operation successfully initiated for device group
'testvg'.



a few seconds later the state was back to Copied. This is working exactly like i wanted, so how is this process different from using create/activate instead of establish ?

Thanks jyCG ..hopefully this will help somebody else.

2.8K Posts

August 6th, 2007 00:00

You can recreate "incrementally" only if you created the session with the -diff option. The "establish" is a create with -diff and -copy enabled :-)

1 Rookie

 • 

20.4K Posts

August 6th, 2007 03:00

i've been able to recreate without issues to do a regular re-sync ..it's being able to recreate after a restore ..that's what's been not working ..even though i do use -copy -diff when i create my sessions. I like using establish anyway ..one less command in my scripts :). Stefano ..when you are bored one day ..can you try this process on your array and see if you get the same thing:

1) create session by using symclone -g testdg create -copy -diff DEV001 sym ld DEV002
2)activate session by using symclone -g testdg activate DEV001 sym ld DEV002
3) restore from DEV002 by using symclone -g testdg restore DEV001 sym ld DEV002
4) split session by using symclone -g testdg split DEV001 sym ld DEV002

and now the part that's been bugging me for a month now :) ..try to do a recreate .

5) symld -g testdg recreate DEV001 sym ld DEV002

I am curious if you get the same error message i get "Device is not in correct state"

2.8K Posts

August 6th, 2007 05:00

Dynamix .. I was bored .. and here 's the results ;-)

star2_bc/root> symdg -type regular create testdg
star2_bc/root> symld -sid 142 -g testdg add dev 1086
star2_bc/root> symld -sid 142 -g testdg add dev 1085
star2_bc/root> symclone -g testdg -diff -copy create DEV001 sym ld DEV002

Execute 'Create' operation for device 'DEV001'
in device group 'testdg' (y/ ) ? y

'Create' operation execution is in progress for device 'DEV001'
paired with target device 'DEV002' in
device group 'testdg'. Please wait...

'Create' operation successfully executed for device 'DEV001'
in group 'testdg' paired with target device 'DEV002'.

star2_bc/root> symclone -g testdg activate DEV001 sym ld DEV002

Execute 'Activate' operation for device 'DEV001'
in device group 'testdg' (y/ ) ? y

'Activate' operation execution is in progress for device 'DEV001'
paired with target device 'DEV002' in
device group 'testdg'. Please wait...

'Activate' operation successfully executed for device 'DEV001'
in group 'testdg' paired with target device 'DEV002'.

star2_bc/root> symclone -g testdg query DEV001 sym ld DEV002 -i 30


Device Group (DG) Name: testdg
DG's Type : REGULAR
DG's Symmetrix ID : xxxxxxxxxxxx


Source Device Target Device State Copy
--------------------------------- ---------------------------- ------------ ----
Protected Modified Modified
Logical Sym Tracks Tracks Logical Sym Tracks CGDP SRC <=> TGT (%)
--------------------------------- ---------------------------- ------------ ----
DEV001 1086 247433 0 DEV002 1085 0 XXX. CopyInProg 17

Total -------- -------- --------
Track(s) 247433 0 0
MB(s) 7732.3 0.0 0.0


Legend:

(C): X = The background copy setting is active for this pair.
. = The background copy setting is not active for this pair.
(G): X = The Target device is associated with this group.
. = The Target device is not associated with this group.
(D): X = The Clone session is a differential copy session.
. = The Clone session is not a differential copy session.
(P): X = The pre-copy operation has completed one cycle
. = The pre-copy operation has not completed one cycle

......

Device Group (DG) Name: testdg
DG's Type : REGULAR
DG's Symmetrix ID : xxxxxxxxxxxx


Source Device Target Device State Copy
--------------------------------- ---------------------------- ------------ ----
Protected Modified Modified
Logical Sym Tracks Tracks Logical Sym Tracks CGDP SRC <=> TGT (%)
--------------------------------- ---------------------------- ------------ ----
DEV001 1086 0 0 DEV002 1085 0 XXX. Copied 100

Total -------- -------- --------
Track(s) 0 0 0
MB(s) 0.0 0.0 0.0


Legend:

(C): X = The background copy setting is active for this pair.
. = The background copy setting is not active for this pair.
(G): X = The Target device is associated with this group.
. = The Target device is not associated with this group.
(D): X = The Clone session is a differential copy session.
. = The Clone session is not a differential copy session.
(P): X = The pre-copy operation has completed one cycle
. = The pre-copy operation has not completed one cycle


^C
star2_bc/root> symclone -g testdg restore DEV001 sym ld DEV002

Execute 'Incremental Restore' operation for device 'DEV001'
in device group 'testdg' (y/ ) ? y

'Incremental Restore' operation execution is in progress for device 'DEV001'
paired with target device 'DEV002' in
device group 'testdg'. Please wait...

'Incremental Restore' operation successfully initiated for device 'DEV001'
in group 'testdg' paired with target device 'DEV002'.

star2_bc/root> symclone -g testdg query DEV001 sym ld DEV002 -i 30


Device Group (DG) Name: testdg
DG's Type : REGULAR
DG's Symmetrix ID : xxxxxxxxxxxx


Source Device Target Device State Copy
--------------------------------- ---------------------------- ------------ ----
Protected Modified Modified
Logical Sym Tracks Tracks Logical Sym Tracks CGDP SRC <=> TGT (%)
--------------------------------- ---------------------------- ------------ ----
DEV001 1086 0 0 DEV002 1085 0 XXX. Restored 100

Total -------- -------- --------
Track(s) 0 0 0
MB(s) 0.0 0.0 0.0


Legend:

(C): X = The background copy setting is active for this pair.
. = The background copy setting is not active for this pair.
(G): X = The Target device is associated with this group.
. = The Target device is not associated with this group.
(D): X = The Clone session is a differential copy session.
. = The Clone session is not a differential copy session.
(P): X = The pre-copy operation has completed one cycle
. = The pre-copy operation has not completed one cycle


^C
star2_bc/root> symclone -g testdg split DEV001 sym ld DEV002

Execute 'Clone Split' operation for device 'DEV001'
in device group 'testdg' (y/ ) ? y

'Clone Split' operation execution is in progress for device 'DEV001'
paired with target device 'DEV002' in
device group 'testdg'. Please wait...

'Clone Split' operation successfully initiated for device 'DEV001'
in group 'testdg' paired with target device 'DEV002'.

star2_bc/root> symclone -g testdg recreate DEV001 sym ld DEV002

Execute 'Recreate' operation for device 'DEV001'
in device group 'testdg' (y/ ) ? y

'Recreate' operation execution is in progress for device 'DEV001'
paired with target device 'DEV002' in
device group 'testdg'. Please wait...

'Recreate' operation successfully initiated for device 'DEV001'
in group 'testdg' paired with target device 'DEV002'.

star2_bc/root> symclone -g testdg query DEV001 sym ld DEV002


Device Group (DG) Name: testdg
DG's Type : REGULAR
DG's Symmetrix ID : xxxxxxxxxxxx


Source Device Target Device State Copy
--------------------------------- ---------------------------- ------------ ----
Protected Modified Modified
Logical Sym Tracks Tracks Logical Sym Tracks CGDP SRC <=> TGT (%)
--------------------------------- ---------------------------- ------------ ----
DEV001 1086 0 0 DEV002 1085 0 XXX. Recreated 100

Total -------- -------- --------
Track(s) 0 0 0
MB(s) 0.0 0.0 0.0


Legend:

(C): X = The background copy setting is active for this pair.
. = The background copy setting is not active for this pair.
(G): X = The Target device is associated with this group.
. = The Target device is not associated with this group.
(D): X = The Clone session is a differential copy session.
. = The Clone session is not a differential copy session.
(P): X = The pre-copy operation has completed one cycle
. = The pre-copy operation has not completed one cycle


star2_bc/root> symclone -g testdg activate DEV001 sym ld DEV002

Execute 'Activate' operation for device 'DEV001'
in device group 'testdg' (y/ ) ? y

'Activate' operation execution is in progress for device 'DEV001'
paired with target device 'DEV002' in
device group 'testdg'. Please wait...

'Activate' operation successfully executed for device 'DEV001'
in group 'testdg' paired with target device 'DEV002'.

star2_bc/root> symclone -g testdg query DEV001 sym ld DEV002


Device Group (DG) Name: testdg
DG's Type : REGULAR
DG's Symmetrix ID : xxxxxxxxxxxx


Source Device Target Device State Copy
--------------------------------- ---------------------------- ------------ ----
Protected Modified Modified
Logical Sym Tracks Tracks Logical Sym Tracks CGDP SRC <=> TGT (%)
--------------------------------- ---------------------------- ------------ ----
DEV001 1086 0 0 DEV002 1085 0 XXX. Copied 100

Total -------- -------- --------
Track(s) 0 0 0
MB(s) 0.0 0.0 0.0


Legend:

(C): X = The background copy setting is active for this pair.
. = The background copy setting is not active for this pair.
(G): X = The Target device is associated with this group.
. = The Target device is not associated with this group.
(D): X = The Clone session is a differential copy session.
. = The Clone session is not a differential copy session.
(P): X = The pre-copy operation has completed one cycle
. = The pre-copy operation has not completed one cycle


star2_bc/root>
star2_bc/root> symcli


Symmetrix Command Line Interface (SYMCLI) Version V6.4.1.0 (Edit Level: 827)
built with SYMAPI Version V6.4.1.0 (Edit Level: 827)

1 Rookie

 • 

20.4K Posts

August 6th, 2007 05:00

Stefano,

thank you for doing this ..let me go through this process again ..i must be doing something stupid :)

February 6th, 2013 15:00

I have cloned Dev001 to TGT001 and now i want to restore data from TGT001 to a new device. how can i acheive it ?

1 Rookie

 • 

20.4K Posts

February 6th, 2013 15:00

yes, you can restore to alternate device.

February 7th, 2013 14:00

How ?

Do I need to add new device to same group and then start restore ?

No Events found!

Top