After creating a clone of your database, you can refresh mirror volumes with primary volumes by using the steps outlined in Figure: Resynchronizing Mirror Volumes.
To resynchronize mirror volumes with primary volumes
$ /opt/VRTS/bin/vxsfadm -s flashsnap \ -a db2 -o umount -c dailyconfig Shutting down clone database... Done Retrieving snapshot information ... Done Unmounting snapshot volumes ... Done Deporting snapshot diskgroups ... Done
This command stops the clone database gracefully and unmounts the file systems. The unmounted database can be restarted by using the clone operation.
You can use the -o clone option to restart a clone database after it is unmounted.
$ /opt/VRTS/bin/vxsfadm -s flashsnap \ -a db2 -o clone -c dailyconfig Retrieving snapshot information ... Done Importing snapshot diskgroups ... Done Mounting snapshot volumes ... Done Activating clone database clone1 ... Done
This command mounts the snapshot file systems and restarts the cloned database.
$ /opt/VRTS/bin/vxsfadm -s flashsnap \ -a db2 -o resync -c dailyconfig resync started at Tue Mar 20 00:46:29 2012. Importing snapshot diskgroups ... Done Joining snapshot diskgroups to original diskgroups ... Done Reattaching snapshot volumes to original volumes ... Done resync ended at Tue Mar 20 00:46:57 2012.
This command resynchronizes all mirror volumes that were broken during snapshot state with primary volumes. After the resync operation is complete and mirror volumes are in the SNAPDONE state, you can take fresh snapshots.
You can use the vxprint command to view the state of the volumes.