Recovers a dynamic view database
Product | Command Type |
|---|---|
ClearCase | cleartool subcommand |
Attache | command |
Platform |
|---|
UNIX |
Windows |
Recover files associated with deleted VOB or deleted directory:
Synchronize a view with one or more VOBs, moving stranded objects to a known location:
The recoverview command repairs a view database and the associated private storage area of a dynamic view (a snapshot view has no private storage in the same sense as does a dynamic view). Typically, you use this command after a system crash or similar mishap. You may also want to use this command to regain access to stranded view-private files. (See RECOVERING VIEW-PRIVATE FILES: VIEW LOST+FOUND DIRECTORY.)
When necessary, recoverview is invoked by a dynamic view's associated view_server process. Enter this command yourself if messages in the view log (view_log) suggest view database corruption (for example, INTERNAL VIEW DB ERROR).
recoverview uses reformatview;that is, recovery involves a dump/load of the view database. recoverview deletes the old, invalid view database, which reformatview has renamed to db.dumped.
Depending on the state of the view database, this process may cause certain information to be lost. After a view is recovered, consult the view log to investigate possible data loss.
NOTE TO UNIX USERS: The set-UID bit is always lost on files that the view owner does not own.
See the reformatview reference page for more information.
A file in view-private storage is normally accessed through a VOB pathname. That is, the file appears to be located in the VOB, but is actually stored in the view. But this view-VOB correspondence can be disrupted:
A VOB can become temporarily unavailable-for example, by being unmounted.
A VOB can become permanently unavailable, by being deleted.
A particular VOB directory can become unavailable permanently, by being deleted with an rmelem command.
In all these cases, view-private files that are accessed through the unavailable VOB structure become stranded; the files cannot be used for normal ClearCase operations, because there are no VOB pathnames through which they can be accessed. You can resynchronize your view with the available VOBs with the -vob and -dir options. This recovers stranded files by moving them into the view's lost-and-found area (lost+found). Recovered files remain inaccessible to normal ClearCase operations; you can access them through the view storage directory, using standard operating system utilities and commands.
SYNCHRONIZING A VIEW WITH ONE OR MORE VOBS. The following option synchronizes the dynamic view with one or more VOBs. With this option, recoverview moves all stranded files to the lost and found subdirectory. A typical time to synchronize is after performing a relocate operation.
FORCING RECOVERY. Default: recoverview displays a Recovery not needed warning message and exits immediately if the view database does not need to be recovered.
SPECIFYING THE VIEW. Default: None.
RECOVERING VIEW-PRIVATE STORAGE. The following options take ClearCase-internal identifiers for a VOB or a VOB directory (vob-identifier and dir-identifier) as arguments. The lsprivate command uses these identifiers when listing an inaccessible VOB or VOB directory.
CAUTION: If the VOB or directory is still accessible, using these options is probably incorrect; it will unsynchronize the view and VOB, not synchronize them.
The UNIX examples in this section are written for use in csh. If you use another shell, you may need to use different quoting and escaping conventions.
The Windows examples that include wildcards or quoting are written for use in cleartool interactive mode. If you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.
In cleartool single-command mode, cmd-context represents the UNIX shell or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt. In Attache, cmd-context represents the workspace prompt.
NOTE: In the UNIX examples that follow, arguments and output that show multicomponent VOB tags are not applicable to ClearCase LT, which recognizes only single-component VOB tags. In this manual, a multicomponent VOB tag is by convention a two-component VOB tag of the form /vobs/vob-tag-leaf-for example, /vobs/src. A single-component VOB tag consists of a leaf only-for example, /src. In all other respects, the examples are valid for ClearCase LT.
NOTE: recoverview writes status messages to the view_log file; it does not print status messages on the standard output device.
Synchronize the dynamic view jackson_fix with all VOBs in which it has created view-private files.
cmd-context recoverview -synchronize -tag jackson_fix
Synchronize a dynamic view whose storage directory is /usr/home/jackson/ccviews/std.vws with the /vobs/dvt VOB.
cmd-context recoverview -synchronize -vob /vobs/dvt \
/usr/home/jackson/ccviews/std.vws
For dynamic view cp_bugfix, recover view-private files from a deleted VOB.
cmd-context lsprivate -tag cp_bugfix
...
cleartool: Warning: VOB is unavailable -- using name:
"<Unavailable-VOB-1>".
If it has been deleted use 'recoverview -vob <uuid>'
VOB UUID is 1127d379.428211cd.b3fa.08:00:69:06:af:65
...
cmd-context recoverview -vob 1127d379.428211cd.b3fa.08:00:69:06:af:65 -tag cp_bugfix
|
Feedback on the documentation in this site? We welcome any comments!
Copyright © 2001 by Rational Software Corporation. All rights reserved. |