Clone
This section gives examples of the following system functionality:
Create and Manage Clones
This example of replication calls demonstrates how to create independent copies of your data using clone technology, for more detail on working with TimeFinder Clone please see Dell Solutions Enabler 10.0.0 TimeFinder/ Clone CLI User Guide available on https://support.dell.com.
1"""docs/source/programmers_guide_src/code/clone.py."""
2
3import PyU4V
4
5# Initialise PyU4V connection to Unisphere
6conn = PyU4V.U4VConn()
7
8# Create a Clone Copy of a Storage group, The Target Storage Group will be
9# created with all required volumes for the clone copy if it does not exist
10# already.
11# Using the Establish & Terminate Boolean value in the example removes the
12# clone session leaving the source and target devices indepenent of
13# each other, the default value of false will allow you to create
14# differential copies, updating the data on target storage group volumes.
15
16conn.clone.create_clone(
17 storage_group_id="clonesrc", target_storage_group_id="clonetgt",
18 establish_terminate=True)
19
20# Close the session
21conn.close_session()
1conn.clone.split_clone(
2 storage_group_id="clonesrc", target_storage_group_id="clonetgt")
3
4# Close the session
5conn.close_session()