3.5.1 Matrix Server Administration Guide

Chapter 7: Configure PSFS Filesystems 127
Copyright © 1999-2007 PolyServe, Inc. All rights reserved.
Examples
Locate a Target by Its Hostname
This example uses three servers: serv1, serv2, and serv3. Each server must
have specific configuration files in the /oracle/etc directory. You can use a
CDSL to simplify accessing these server-specific files.
1. Create a subdirectory for each server in /oracle, which is a PSFS
filesystem. Then create an /etc subdirectory in each server directory.
You now have the following directories in the /oracle PSFS filesystem:
/oracle/serv1/etc
/oracle/serv2/etc
/oracle/serv3/etc
2. Populate the directories with the data from the /oracle/etc directory:
cp -r /oracle/etc/* /oracle/serv1/etc/
cp -r /oracle/etc/* /oracle/serv2/etc/
cp -r /oracle/etc/* /oracle/serv3/etc/
3. Edit the files in the server-specific /etc directories as appropriate.
4. Create the CDSL:
ln -s {HOSTNAME}/etc /oracle/etc
The ls -l output looks like this on each server:
ls -l /oracle/etc
lrwxrwxrwx 1 root root 14 Jun 16 16:40 /oracle/etc ->
{HOSTNAME}/etc
If you are logged in on serv1 and access the /oracle/etc symbolic link, the
HOSTNAME keyword resolves to /oracle/serv1/etc. Similarly, if you are on
serv2, the /oracle/etc symbolic link points to /oracle/serv2/etc, and on serv3
it points to /oracle/serv3/etc.
Locate a Target by Its Machine Type
This example uses two servers, serv1 and serv2, that have different
machine types. (The uname -m command returns a different value for
each type.) We need separate /oracle/bin and /oracle/sbin directories for
each machine type. You can use CDSLs to simplify accessing these
machine-specific directories.