Red Hat GLOBAL FILE SYSTEM 4.5 Manual page 54

Hide thumbs Also See for GLOBAL FILE SYSTEM 4.5:
Table of Contents

Advertisement

Chapter 4. Managing GFS
Variable
@mach
@os
@sys
@uid
@gid
Table 4.5. CDPN
Variable
Example
In this example, there are three nodes with hostnames
node uses directory
/gfs/log/
each node. To do this, no actual log directory is created; instead, an
created with the name
created that will be the actual directories used when each node references
n01# cd /gfs
n01# mkdir n01 n02 n03
n01# ln -s @hostname log
n01# ls -l /gfs
lrwxrwxrwx 1 root root 9 Apr 25 14:04 log -> @hostname/
drwxr-xr-x 2 root root 3864 Apr 25 14:05 n01/
drwxr-xr-x 2 root root 3864 Apr 25 14:06 n02/
drwxr-xr-x 2 root root 3864 Apr 25 14:06 n03/
n01# touch /gfs/log/fileA
n02# touch /gfs/log/fileB
n03# touch /gfs/log/fileC
n01# ls /gfs/log/
fileA
n02# ls /gfs/log/
fileB
n03# ls /gfs/log/
42
Description
This variable resolves to a real file or directory name with the
machine-type string produced by the output of the following
command:
echo `uname -m`
This variable resolves to a real file or directory named with the
operating-system name string produced by the output of the
following command:
This variable resolves to a real file or directory named with the
combined machine type and OS release strings produced by the
output of the following command:
This variable resolves to a real file or directory named with the
user ID string produced by the output of the following command:
echo `id -u`
This variable resolves to a real file or directory named with the
group ID string produced by the output of the following command:
echo `id -g`
Values
, but the administrator wants these directories to be separate for
. Individual directories
log
echo `uname -s`
echo `uname -m`_`uname -s`
,
and
n01
n02
n03
@hostname
,
/gfs/n01/
/gfs/n02/
. Applications on each
CDPN link is
, and
are
/gfs/n03/
.
/gfs/log/

Advertisement

Table of Contents
loading

Table of Contents