Chapter 5. Managing GFS
31
In this example, a second
lock_dlm
file system is made, which can be used in cluster
alpha
. The file-system name is
gfs2
. The file system contains eight journals and is created
on
/dev/vg01/lvol1
.
gfs_mkfs -p lock_dlm -t alpha:gfs2 -j 8 /dev/vg01/lvol1
5.1.3. Complete Options
Table 5-1 describes the
gfs_mkfs
command options (flags and parameters).
Flag
Parameter
Description
-b
BlockSize
Sets the file-system block size to
BlockSize
.
Default block size is 4096 bytes.
-D
Enables debugging output.
-h
Help. Displays available options.
-J
MegaBytes
Specifies the size of the journal in megabytes.
Default journal size is 128 megabytes. The
minimum size is 32 megabytes.
-j
Number
Specifies the number of journals to be created
by the
gfs_mkfs
command. One journal is
required for each node that mounts the file
system.
Note:
More journals than are needed can be
specified at creation time to allow for future
expansion.
-p
LockProtoName
Specifies the name of the locking protocol to
use. Recognized cluster-locking protocols
include:
lock_dlm
— The standard locking module.
lock_gulm
— The locking module
compatible with earlier versions of GFS.
lock_nolock
— May be used when GFS is
acting as a local file system (one node only).
-O
Prevents the
gfs_mkfs
command from asking
for confirmation before writing the file system.
-q
Quiet. Do not display anything.
Summary of Contents for GFS 6.1 -
Page 1: ...Red Hat GFS 6 1 Administrator s Guide ...
Page 6: ......
Page 14: ...viii Introduction ...
Page 24: ...10 Chapter 1 GFS Overview ...
Page 28: ...14 Chapter 2 System Requirements ...
Page 40: ...26 Chapter 3 Installing GFS ...
Page 72: ...58 Chapter 5 Managing GFS ...
Page 80: ...66 Appendix A Upgrading GFS ...
Page 84: ......