Restores a VOB from backup media.
ClearCase (administrative command), Attache (administrative command)
The vob_restore command restore a damaged VOB. It prompts for all required input and displays explanatory text at each step. If you quit vob_restore before it completes, you can use the -restart option to resume VOB restoration at the point where you stopped it.
NOTE: We strongly recommended that you do not retrieve VOB storage from backup until prompted to do so by vob_restore. If you get the VOB storage directory from backup media before running vob_restore, you must either unregister the VOB before retrieving the backup or stop ClearCase before retrieval and restart it afterward. If you wait until prompted, vob_restore performs the necessary steps, safeguarding the integrity of your restored VOB.
If the VOB to be restored is backed up using the scenario described in vob_snapshot, the most comprehensive recovery operation requires you to do the following:
In this case, vob_restore does all of the following:
If the damaged VOB is not currently being processed by vob_snapshot, do not supply a snapshot directory when prompted for one. A VOB database was backed up as part of the VOB storage directory backup, and you will restore the entire VOB as a single unit.
In this case, if the VOB was backed up while unlocked, vob_restore forces a potentially time-consuming db_check operation on the VOB database.
If the VOB storage directory is irretrievably missing or damaged, or if you do not have sufficient disk space for two copies of the VOB storage directory, you can copy the VOB storage backup directly to the VOB's registered storage location. Do not supply a temporary storage location when prompted for one.
Permissions Checking: You must have the appropriate permissions to stop and start ClearCase (typically, you must be administrator or a member of the Administrators group) to execute this command.
Locks: If the VOB is still accessible, lock it to prevent any further changes. vob_restore leaves the VOB locked when it completes.
If you do not specify all required command line arguments, vob_restore prompts for input.
SPECIFYING THE VOB. Default: None. You must supply a VOB-tag. vob_restore prompts for all additional information.
SPECIFYING A RESTART FILE. Default: None. If you omit this option, vob_restore does not attempt to find a restart-state file that may have resulted from an earlier, aborted vob_restore invocation on the same VOB-tag.
This sample recover procedure merges a VOB database snapshot and a VOB storage directory backup to restore the damaged VOB \vob_src.
cleartool lock -c "vob recover required" vob:\vob_src
cleartool lsvob \vob_src
\vob_src \\io\vobstore\vob_src.vbs
ccase-home-dir\etc\vob_restore \vob_src
vob_restore prompts for all necessary input and displays explanatory text.
cleartool mktag -vob -tag \vob_src \\io\vobstore\vob_src.vbs
cleartool register -vob \\io\vobstore\vob_src.vbs
NOTE: In this example, as is recommended, the restored data is not retrieved from backup media before running vob_restore.
cd c:\Program Files\Rational\ClearCase\etc
vob_restore \vob_src
checkvob, vob_snapshot, vob_snapshot_setup
|
Feedback on the documentation in this site? We welcome any comments!
Copyright © 1999 by Rational Software Corporation. All rights reserved. |