Uses the snapshot volumes in a snapshot set created by the vxsnap create command to restore data, for example, after an original volume has become corrupted.
You can restore the data either to the point in time that the snapshot set was last refreshed or to the point of failure.
Before using this command, make sure that the source volumes and the snapshot volumes are not in use.
Use the [-a] attribute to dismount and mount the database automatically or use exchange to dismount and mount the database before and after the restore operation respectively.
For a VCS cluster setup, specifying the -a option offlines the VCS resource database before a restore operation and onlines the resource after restore operation.
The vxsnap restore command has the following syntax:
vxsnap -x <filename>[-f][-b][-r] [-a] restore restoreType=<PIT|POF>writer=<writername>[subComponent=<subCompo nentName>][RSG=<Yes|No>]
The vxsnap restore command has the following attributes:
The following are examples of the vxsnap restore command:
Restore to the Point in Time
vxsnap -x snapdata.xml restore restoreType=PIT writer="Microsoft Exchange Writer"
This command uses the information in the snapdata.xml file to restore all the volumes in the snapshot set identified in that file to the point in time the snapshot set was created or last refreshed.
Roll-Forward Recovery to the Point of Failure
vxsnap -x snapdata.xml restore restoreType=POF writer="Microsoft Exchange Writer"
This command uses the information about the database specified in the snapdata.xml file to snapback the database volumes and then use current transaction logs to roll forward to the point of failure.