Chapter 5. Managing GFS
57
Variable
Description
@gid
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‘
Table 5-5. CDPN
Variable
Values
5.13.2. Example
In this example, there are three nodes with hostnames
n01
,
n02
and
n03
. Applications
on each node uses directory
/gfs/log/
, but the administrator wants these directories
to be separate for each node. To do this, no actual log directory is created; instead, an
@hostname
CDPN link is created with the name
log
. Individual directories
/gfs/n01/
,
/gfs/n02/
, and
/gfs/n03/
are created that will be the actual directories used when each
node references
/gfs/log/
.
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/
fileC
Содержание GFS 6.1 -
Страница 1: ...Red Hat GFS 6 1 Administrator s Guide ...
Страница 6: ......
Страница 14: ...viii Introduction ...
Страница 24: ...10 Chapter 1 GFS Overview ...
Страница 28: ...14 Chapter 2 System Requirements ...
Страница 40: ...26 Chapter 3 Installing GFS ...
Страница 72: ...58 Chapter 5 Managing GFS ...
Страница 80: ...66 Appendix A Upgrading GFS ...
Страница 84: ......