recoverview

Recovers a dynamic view database

APPLICABILITY


Product

Command Type

ClearCase


cleartool subcommand


Attache


command


Platform

UNIX


Windows

SYNOPSIS

recoverview [ -f·orce ] { -vob vob-identifier | -dir dir-identifier }

{ -tag view-tag | view-storage-dir-pname }
recoverview -syn·chronize [ -vob pname-in-vob ]

{ -tag view-tag | view-storage-dir-pname }

DESCRIPTION

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.)

Automatic Recovery

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).

Possible Data Loss

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.

RECOVERING VIEW-PRIVATE FILES: VIEW LOST+FOUND DIRECTORY

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:

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.

RESTRICTIONS

None.

OPTIONS AND ARGUMENTS

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.

-syn·chronize [ -vob pname-in-vob ]

Synchronizes the view with all VOBs in which the view has created view-private files. With -vob, synchronizes the view only with the VOB specified by pname-in-vob.

FORCING RECOVERY.  Default: recoverview displays a Recovery not needed warning message and exits immediately if the view database does not need to be recovered.

-f·orce

Performs a view database recovery, whether or not it's needed. Suppresses the warning message in the situation described above.

SPECIFYING THE VIEW.  Default: None.

-tag view-tag

The view-tag of any registered dynamic view.
view-storage-dir-pname

The pathname of a dynamic view storage directory. Use the lsview command to list a view's storage directory.
CAUTION: Make sure that the current working directory is not the same as, or anywhere below view-storage-dir-pname.

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.

-vob vob-identifier

Moves all view-private files that correspond to the specified VOB to the lost+found directory.
-dir dir-identifier

Moves all view-private files that correspond to the specified directory element to the lost+found 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.

EXAMPLES

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.

SEE ALSO

reformatview