20.1 View Storage Maintenance

View storage maintenance includes two principal tasks:

Encourage users to review, remove, and clean up their own views periodically; for shared views, the cleanup task may fall to you. See Cleaning Up a View Manually.

Getting Information on View Contents

The ClearCase Administration Console displays information on disk space used in views:

Several cleartool subcommands also display information on disk space used in views:

The ClearCase scheduler runs several jobs that gather data on view disk space use:

For more information on the ClearCase scheduler, see Chapter 28, Managing Scheduled Jobs.

From an administrator's standpoint, limiting the growth of a dynamic view storage directory typically involves one issue: removing redundant derived object (DO) data containers. When a DO is first built by clearmake, omake, or clearaudit, its data container is placed in the private storage area of the user's view. The first time a DO is winked in during a clearmake or omake build, the data container is copied to a VOB's derived object storage pool. (Moving it may disrupt user processes that are currently accessing the DO.) This leaves a redundant copy of the data container in view-private storage. (When you wink in a derived object with the winkin or view_scrubber -p command, the data container in the view is removed after it is promoted to the VOB storage pool.)

Typically, you need not do anything about these redundant copies:

Unless disk storage is extremely scarce, you may conclude that it is not worth the effort to clean up redundant data containers in view-private storage. Accordingly, ClearCase does not include any automated procedures for removing them.

Scrubbing View-Private Storage

If you decide that redundant DO data containers must be removed from a view's private storage area, use the view_scrubber utility. You can also use this utility to migrate the data containers of unshared or nonshareable DOs to VOB storage.

The following example shows how some DOs can be built and then transferred immediately to VOB storage:

clearmake hello
<build messages>
ccase-home-dir\bin\view_scrubber -p hello hello.o util.o
Promoted derived object "hello"
Scrubbed view-resident data container for "hello"
Promoted derived object "hello.o"
Scrubbed view-resident data container for "hello.o"
Promoted derived object "util.o"
Scrubbed view-resident data container for "util.o"

See the view_scrubber reference page for more information.