You can use the vxsfadm command to perform end operations without performing the intermediate operations. For example, you need to perform the steps outlined in Figure: Creating a Clone - Basic Workflow .
However, you can use vxsfadm to go directly from Validate to Clone for cloning a database on the secondary host. Figure: Creating a Clone - Without Intermediate Operations outlines the steps for doing this operation.
To clone a database on the secondary host
$ vxsfadm -s flashsnap \ -a db2 -o clone --db2instance db2inst1 \ --db2database proddb --flashsnap_name dailysnap \ --secondary_host host2 --app_mode online \ --clone_path /tmp/testclonepath --clone_name clone1 Retrieving snapshot information ... Done Importing snapshot diskgroups ... Done Mounting snapshot volumes ... Done Relocating/ Renaming clone database clone1 ... Done Initializing clone database clone1 ... Done Activating clone database clone1 ... Done
In a 2-host setup with the primary host host1 and the secondary host host2, this command creates a clone database on host2.
The database name of clone database is clone1 and it is mounted in the /tmp/testclonepath
directory. The DB2INSTANCE and the uid of the db2insatnce user should be same on both the hosts. Default values are assigned to all of the other parameters.