162
Appendix C. Basic GFS Examples
gnbdsrv#
gnbd_export -e cca -d /dev/sda1 -c
gnbdsrv#
gnbd_export -e gfs01 -d /dev/sda2 -c
gnbdsrv#
gnbd_export -e gfs02 -d /dev/sdb1 -c
Caution
The GNBD server should not attempt to use the cached devices it exports — either directly or
by importing them. Doing so can cause cache coherency problems.
2. Import GNBD devices on all GFS nodes and the lock server node.
Use
gnbd_import
to import the GNBD devices from the GNBD server (
gnbdsrv
):
n01#
gnbd_import -i gnbdsrv
n02#
gnbd_import -i gnbdsrv
n03#
gnbd_import -i gnbdsrv
lcksrv#
gnbd_import -i gnbdsrv
3. Create pool configurations for the two file systems.
Create pool configuration files for each file system’s pool:
pool_gfs01
for the first file system,
and
pool_gfs02
for the second file system. The two files should look like the following:
poolname pool_gfs01
subpools 1
subpool 0 0 1
pooldevice 0 0 /dev/gnbd/gfs01
poolname pool_gfs02
subpools 1
subpool 0 0 1
pooldevice 0 0 /dev/gnbd/gfs02
4. Create a pool configuration for the CCS data.
Create a pool configuration file for the pool that will be used for CCS data. The pool does not
need to be very large. The name of the pool will be
alpha_cca
. (The name of the cluster,
alpha
, followed by
_cca
). The file should look like the following:
poolname alpha_cca
subpools 1
subpool 0 0 1
pooldevice 0 0 /dev/gnbd/cca
5. Create the pools using the
pool_tool
command.
Note
This operation must take place on a GNBD client node.
Use the
pool_tool
command to create all the pools as follows:
n01#
pool_tool -c pool_gfs01.cf pool_gfs02.cf alpha_cca.cf
Pool label written successfully from pool_gfs01.cf
Pool label written successfully from pool_gfs02.cf
Pool label written successfully from alpha_cca.cf
6. Activate the pools on all nodes.
Summary of Contents for GFS 6.0 -
Page 1: ...Red Hat GFS 6 0 Administrator s Guide...
Page 8: ......
Page 88: ...74 Chapter 6 Creating the Cluster Configuration System Files...
Page 98: ...84 Chapter 7 Using the Cluster Configuration System...
Page 102: ...88 Chapter 8 Using Clustering and Locking Systems...
Page 128: ...114 Chapter 9 Managing GFS...
Page 134: ...120 Chapter 10 Using the Fencing System...
Page 144: ...130 Chapter 12 Using GFS init d Scripts...
Page 148: ...134 Appendix A Using Red Hat GFS with Red Hat Cluster Suite...
Page 184: ...170 Appendix C Basic GFS Examples...
Page 190: ......