Sets or displays VOB database snapshot parameters
ClearCase (administrative command), Attache (administrative command)
Use vob_snapshot_setup to control VOB database snapshot activity on each ClearCase VOB host. By default, the ClearCase scheduler runs vob_snapshot periodically. When vob_snapshot runs on a VOB host, it checks each locally stored VOB for the existence of a multipart string attribute that specifies snapshot parameters. A VOB's database is copied by vob_snapshot only if this attribute has been applied to the VOB with vob_snapshot_setup.
Use vob_snapshot_setup lsvob to list the local VOBs currently processed by vob_snapshot and, with -long, to display the snapshot parameters for each VOB in the list.
Use vob_snapshot_setup modparam to add a VOB to the database snapshot list, or to change snapshot parameters for a VOB already on the list. (You cannot modify individual parameters with modparam, but must replace them all.)
Use vob_snapshot_setup rmparam to remove a VOB from the snapshot list.
See also vob_snapshot and vob_restore.
WARNING: If you are using a homegrown or third-party type manager, code that implements the get_cont_info method must be added to the type manager, or elements managed by the type manager cannot be processed by checkvob at vob_restore time.
An administrator uses vob_snapshot_setup modparam to apply the following snapshot parameters to each VOB or replica for which database snapshots are to be taken:
| Parameter | Legal Values | Default Value |
|---|---|---|
-snap_to | existing, writable directory pathname | no default |
-dbcheck | yes | no | no |
These parameters are combined to form a single ClearCase string attribute of type vob_snapshot_parameters, which vob_snapshot_setup attaches to the VOB.
Here is how these parameters may appear in a vob_snapshot_setup lsvob -long listing:
VobTag: \vob_src
...
Dbcheck Enabled: yes
Snap To: \\saturn\bigdisk\snapshot
...
See the -snap_to and -dbcheck options for further details.
The VOB snapshot backup/restore scenario requires additional disk space, both at restore time and during daily operation:
Permissions Checking: No special permissions required.
Locks: A modparam or rmparam operation fails if any of the following objects are locked: VOB, vob_snapshot_parameters attribute type.
Mastership: If the VOB is replicated, it must be self-mastering.
VOB LISTING REPORT FORMAT. Default: vob_snapshot_setup lsvob lists the VOB-tag of each local VOB currently configured for database snapshot.
SPECIFYING THE VOB. Default: None. modparam and rmparam operations require a VOB-tag argument.
SETTING SNAPSHOT PARAMETERS. Default: With modparam, you must specify a VOB-tag; if you specify no other options or arguments, modparam prompts for all necessary input and displays explanatory text. If you specify both a VOB-tag and a snapshot target directory, modparam does not prompt for additional parameters: vob_snapshot does not run the db_check operation.
cd c:\Program Files\Rational\ClearCase\etc
vob_snapshot_setup lsvob
\vob_src
\vob_lib
cd c:\Program Files\Rational\ClearCase\etc
vob_snapshot_setup lsvob -long
VobTag: \vob_src
Replica Name: original
Replica Uuid: 4a6bbe5d88d511cfa9b400018073db6f
Family Uuid: 4a6bbe5988d511cfa9b400018073db6f
Dbcheck Enabled: yes
Snap To: \\saturn\bigdisk\snapshot
Deferred Deletes: Enabled
VobTag: \vob_lib
Replica Name: original
Replica Uuid: 5fec90f48db911cfab9800018073db6f
Family Uuid: 5fec90f08db911cfab9800018073db6f
Dbcheck Enabled: no
Snap To: \\saturn\bigdisk\snapshot
Deferred Deletes: Enabled
cd c:\Program Files\Rational\ClearCase\etc
vob_snapshot_setup modparam -dbcheck yes
-snap_to \\saturn\bigdisk\snaps\vob_src \vob_src
vob_snapshot_setup modparam /vob/src\vob_src
Supply a directory to contain the snapshot data for this vob. The directory must exist and be writable.
(Full pathname: there is no default) \\saturn\bigdisk\snaps\vob_src
Do you want a data base check to be performed on this vob after all snapshot operations on this host are completed?
Valid responses are (yes,no)
The default is no: yes
cd c:\Program Files\Rational\ClearCase\etc
vob_snapshot_setup rmparam \vob_src
ccase-home-dir\var\log\snap_log
HKEY_LOCAL_MACHINE\SOFTWARE\Atria\ClearCase\CurrentVersion\snapshot
checkvob, schedule, vob_restore, vob_snapshot
|
Feedback on the documentation in this site? We welcome any comments!
Copyright © 1999 by Rational Software Corporation. All rights reserved. |