IBM Support

Steps to remove all Derived Objects from a VOB

Question & Answer


Question

Is there a list of steps on how to remove all DOs (derived objects) from an IBM® Rational® ClearCase® VOB on Microsoft® Windows®, UNIX® and Linux®?

Answer

CAUTION: This procedure will destroy all config records and derived objects in the VOB. These objects cannot be recovered unless the entire VOB is restored from backup.


To remove all Derived Objects and the associated config records, follow this procedure:

  1. Lock the VOB, unmount the VOB and backup the db. All this must be done before running any of the following steps.
  2. With the VOB still locked, run the following command:
    ClearCase 2003.06.xx and before:
    # /opt/rational/clearcase/etc/dumpers/db_dumper.54 -mkreplica <full path to db directory>

    ClearCase 7.0 and later:
    # /opt/rational/clearcase/etc/dumpers/db_dumper.54 -mkreplica <full path to db directory> <full path to db directory>

    This command will create 3 files:
    pass1_dump_file
    pass2_dump_file
    string_dump_file
  3. Rename the VOB's "db" directory to "db.old" and create a new empty directory called "db" in it's place.
  4. Cd into the "db.old" directory and run this command:
    # /opt/rational/clearcase/etc/db_loader <full path to newly created db directory>
  5. The procedure is done. Remount and unlock the VOB.
    The db.old directory can be removed at anytime. It contains the old database and is no longer referenced by the VOB. Only the new database in the new "db" directory will be used.
    Refer to technote 1172574 for information about manually reformatting a VOB


ADDITIONAL NOTE:

The reformatvob command is also calling db_dumper and db_loader, but it does not handle all possible (document and undocumented) options.

So, you need to do the manual dump/load with the -mkreplica options to remove all DO's.

[{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Clearmake - Clearaudit - Omake","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF015","label":"IRIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0;7.0.1;8.0;8.0.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21146287