You can distribute the Rational® Synergy
storage root directories anywhere across local file systems of networks
using NFS. The most common and useful method for distributing the
directories is to move the cache subdirectory to a separate file system.
You move the cache directory and set up a symbolic link. You must
copy all files under the cache directory to a subdirectory readable
and writable by userccm_root. Verify that this
directory exists. If it does not exist, create it.
Procedure
- Ensure that there are no users on the database.
- Set user to ccm_root.
$ su - ccm_root
Password: *****
- Shut down the database.
$ ccmdb
shutdown database_path
- Pack the database.
$ ccmdb pack database_path
- Change directory to st_root.
$
cd database_path/st_root
- Copy all files.
Copy
all files under the cache directory to a subdirectory readable and
writable by user ccm_root. In the following command,
this directory is called new_cache. (If a directory
readable and writable by user ccm_root does not
exist, you must create one.)
$ find cache
-print | cpio -pdma /extra/new_cache
- Remove the cache subdirectory.
$ rm -rf cache
- Create a link to the new cache subdirectory.
$ ln -s /extra/new_cache/cache cache
- After the files are copied (see 6), all cache files
are owned by ccm_root. To make Rational Synergy update working files so
that they have the correct ownership, delete the file that lists the
users whose ownerships have already been updated.
$ rm -f database_path/db/file_acs_update_list
- Exit from user ccm_root.
This procedure physically relocates the entire cache subdirectory.
Attention: Alternatively, you can move any or
all subdirectories under st_root (for example, workarea,
archive) to separate locations. You also can relocate the
individual hashed subdirectories of the cache. For example, each of
the cache/source/#nn directories can be a link to
a different location.
The ccmdb
pack and ccmdb backup commands for Oracle
databases do not follow symbolic links. So, do not back up cache or
archive files moved using the technique described in this procedure.
You must use an alternative backup process
for Oracle databases where you have distributed the cache or archive
across file systems. See Database dump method and Database backup.
If you need assistance, contact IBM® Rational Software
Support.