Articles in this section

How to rewind a specific set using a temp DC

Context

There currently isn’t a way to rewind a set through our rewind command. This KB covers a workaround that is most helpful for when there aren’t any current writes coming into the set(s) you want to rewind.

 

NOTE: if the set(s) you want to rewind is taking writes, you may want to try to use XDR Filter Expressions to rewind the set(s).


Method

Create a temporary DC dynamically on the source that ships to the destination. 

6.0+

asadm -e "enable; manage config xdr create dc temp"

asadm -e "enable; manage config xdr dc temp add node 10.0.0.2:3000"

Pre 6.0

asinfo -v "set-config:context=xdr;dc=temp;action=create"

asinfo -v "set-config:context=xdr;dc=temp;node-address-port=10.0.0.2:3000;action=add"

 

Set ship-only-specified-sets to true

asinfo -v "set-config:context=xdr;dc=temp;namespace=namespaceName;ship-only-specified-sets=true"

 

Set ship-set to the set(s) you want to rewind dynamically.

asinfo -v "set-config:context=xdr;dc=temp;namespace=namespaceName;ship-set=setName1"

 

Do the rewind; the rewind command should associate the namespace. If you want to rewind from a certain time instead of from the beginning of time, adjust rewind=<time in seconds>.

asinfo -v "set-config:context=xdr;dc=temp;namespace=namespaceName;action=add;rewind=all"

 

Disassociate the namespace from the temporary DC

6.0+

asadm -e "enable; manage config xdr dc temp remove namespace namespaceName"

Pre 6.0

asinfo -v "set-config:context=xdr;dc=temp;namespace=namespaceName;action=remove"

 

Please see XDR static and dynamic configuration for more configuration examples.


Applies To Earliest Version

5.0

Applies To Latest Version

Current Version
Was this article helpful?
0 out of 0 found this helpful