The vob_scrubber program deletes old event records, MultiSite oplog entries, or both from a VOB database. This retards VOB growth by logically deleting the items, freeing space in the VOB database for storage of new event records and oplog entries. (Physical deletion requires processing with the reformatvob command.)
The file vista.tjf records updates to the VOB that result from vob_scrubber operations. vista.tjf can grow very large. For information about limiting its size, read about the file db.conf in the config_ccase reference page.
vob_scrubber does not need to run in a view and does not require the VOB it processes to be mounted.
ClearCase creates a metadata item called an event record in a VOB database almost every time it modifies the database. Event records are created to record such events as the checkin of a new version, the attaching of an attribute to an element, or the creation of a new branch type. Each event record consumes 300–400 bytes. Some event records, like those for element and version creation, are valuable indefinitely, but many minor event records are not. For example, the removal of a version label from a collection of versions creates a minor event record for each affected object. Over time, such minor event records occupy more space as they become less useful. (After a month or a year, no one is likely to care who removed the version labels, especially if the label type itself has also been deleted.)
vob_scrubber marks certain event records as logically deleted. As with any metadata removal, the deletion does not physically reduce the amount of disk space used by the VOB database; it merely frees up space in the database, making it available for future use. To actually reduce the size of the database, you must run reformatvob, which discards the logically deleted data as it reconstructs the VOB database. Thus, regular use of vob_scrubber minimizes VOB database growth, but does not recover disk space.
These obsolete event records are always deleted, regardless of scrubbing parameters:
These event records are never deleted:
All other event records are preserved or deleted according to the configuration file specifications described in VOB-specific event-record scrubbing parameters.
In each replicated VOB, cleartool creates oplog (operation log) entries, which store all the information required to repeat the changes in some other replica of the VOB.
Each oplog entry logically includes this information:
Like event records, oplog entries are stored in the VOB database and can be scrubbed.
When you export an update packet from a replicated VOB, MultiSite creates one export_sync record for each target replica. These records are stored in the VOB database and are used by the recoverpacket command to reset a replica's epoch matrix. You can scrub these records, but scrubbing old records limits the date range over which recoverpacket can operate.
If both –noevent and –nooplog are specified, nothing is scrubbed.
If the environment variable CCASE_MAX_OPLOG_TRIM_ENTRIES is set to an integer value between 1 and 100, it controls the maximum number of oplog entries that the vob_scrubber removes in a single transaction, overriding any setting of –trsize when oplog entries are being processed.
A host-wide configuration file controls the operation of vob_scrubber; each VOB can have its own configuration file, which overrides the systemwide settings (UNIX or Linux pathnames are shown, but the Windows paths are the same (except for slash direction):
The event-scrubbing configuration file is a text file. A line that begins with a number sign (#) is a comment. All other lines control how one kind of event is to be scrubbed—how long to keep the most recent one, and how long to keep other events of that kind:
These are the components of an event-scrubbing control line:
The vob_scrubber_params files also control scrubbing of oplog entries and export records. The syntax for these lines follows. (Do not begin these lines with the keyword event.)
If the configuration file includes no control line for a particular operation, all event records created by the operation are kept forever. Therefore, an empty configuration file preserves all event records (except obsolete ones, which are always discarded); see the section, Which event records are deleted. The calculated times are always compared to the logical event creation time (as shown by lshistory), rather than the physical event creation time. These can differ if the event records were created by an exporter, such as clearexport_pvcs.
If the configuration file includes no –oplog control line, the oplog entries are kept forever.
vob_scrubber -lvobs -wait -stop 240