168
Appendix B. Basic GFS Examples
3. Activate the pools.
Note
This step must be performed every time a node is rebooted. If it is not, the pool devices will not
be accessible.
Activate the pools using the
pool_assemble -a
command as follows:
n01#
pool_assemble -a
pool_gfs01 assembled
pool_gfs02 assembled
4. Create the CCS Archive.
a. Create a directory called
/root/alpha
on node
n01
as follows:
n01#
mkdir /root/alpha
n01#
cd /root/alpha
b. The GFS license file should have been downloaded with the GFS RPMs. Rename the
license file to
license.ccs
and move it into the CCS directory:
n01#
mv license.ccs /root/alpha
c. Create the CCS Archive on the CCA Device.
Note
This step only needs to be done once. It should
not
be performed every time the cluster
is restarted.
Use the
ccs_tool
command to create the archive from the CCS configuration files:
n01#
ccs_tool create /root/alpha /root/alpha_cca
Initializing device for first time use... done.
5. Start the CCS daemon (
ccsd
).
Note
This step must be performed each time the node is rebooted.
The CCA device must be specified when starting
ccsd
.
n01#
ccsd -d /dev/pool/alpha_cca
6. Create the GFS file systems.
Create the first file system on
pool_gfs01
and the second on
pool_gfs02
. The names of the
two file systems are
gfs01
and
gfs02
, respectively, as shown in the example:
n01#
gfs_mkfs -p lock_gulm -t alpha:gfs01 -j 1 /dev/pool/pool_gfs01
Device: /dev/pool/pool_gfs01
Blocksize: 4096
Filesystem Size:1963216
Journals: 1
Resource Groups:30
Locking Protocol:lock_nolock
Lock Table:
Syncing...
Summary of Contents for GFS 5.2.1 -
Page 1: ...Red Hat GFS 5 2 1 Administrator s Guide...
Page 8: ......
Page 14: ...vi Introduction...
Page 24: ...10 Chapter 1 GFS Overview...
Page 36: ...22 Chapter 4 Initial Configuration...
Page 84: ...70 Chapter 6 Creating the Cluster Configuration System Files...
Page 96: ...82 Chapter 8 Using Clustering and Locking Systems...
Page 126: ...112 Chapter 10 Using the Fencing System...
Page 132: ...118 Chapter 11 Using GNBD...
Page 144: ...130 Appendix A Upgrading GFS...
Page 184: ...170 Appendix B Basic GFS Examples...
Page 190: ......
Page 192: ...178...