Example: Assigning all files in a directory to a new pool

About this task

The following example shows how to create a new, remote source storage pool for a VOB on Linux or on the UNIX system, and reassign all current and future elements in a particular directory to this new pool.

Procedure

  1. Create the new storage pool.
    Specify a global pathname for the remote pool. The pathname must be valid for all hosts that access the VOB.

    cd /vobs/bgr

    cleartool mkpool –source –ln /net/ccsvr02/vvault_pools/bgrsrc2 bgrsrc2

    Comments for "bgrsrc2":
    remote source storage pool
    .

    Created pool "bgrsrc2".

  2. Reassign existing file elements to the new pool.
    This example reassigns all the file elements in a particular subdirectory.

    cd libbgr

    cleartool find . –type f –exec 'cleartool chpool –force bgrsrc2

    $CLEARCASE_PN '
    Changed pool for "./Makefile" to "bgrsrc2".
    Changed pool for "./getcwd.c" to "bgrsrc2".
      .
      .
    Changed pool for "./strut.c" to "bgrsrc2".

  3. Reassign the directory element to the new pool.
    This step ensures that all newly created file and directory elements in this directory use the new pool.

    cleartool chpool bgrsrc2 .
    Changed pool for "." to "bgrsrc2".