Red Hat ENTERPRISE LINUX 5 - GLOBAL FILE SYSTEM 2 Manual page 21

Hide thumbs Also See for ENTERPRISE LINUX 5 - GLOBAL FILE SYSTEM 2:
Table of Contents

Advertisement

BlockDevice
Specifies a logical or physical volume.
Examples
In these examples, lock_dlm is the locking protocol that the file system uses, since this is a clustered
file system. The cluster name is alpha, and the file system name is mydata1. The file system
contains eight journals and is created on /dev/vg01/lvol0.
mkfs.gfs2 -p lock_dlm -t alpha:mydata1 -j 8 /dev/vg01/lvol0
mkfs -t gfs2 -p lock_dlm -t alpha:mydata1 -j 8 /dev/vg01/lvol0
In these examples, a second lock_dlm file system is made, which can be used in cluster alpha. The
file system name is mydata2. The file system contains eight journals and is created on /dev/vg01/
lvol1.
mkfs.gfs2 -p lock_dlm -t alpha:mydata2 -j 8 /dev/vg01/lvol1
mkfs -t gfs2 -p lock_dlm -t alpha:mydata2 -j 8 /dev/vg01/lvol1
Complete Options
Table 3.1, "Command Options: mkfs.gfs2"
parameters).
Flag
Parameter
-c
Megabytes
-D
-h
-J
MegaBytes
-j
Number
-O
describes the mkfs.gfs2 command options (flags and
Description
Sets the initial size of each journal's quota change file
to Megabytes.
Enables debugging output.
Help. Displays available options.
Specifies the size of the journal in megabytes. Default
journal size is 128 megabytes. The minimum size is
8 megabytes. Larger journals improve performance,
although they use more memory than smaller journals.
Specifies the number of journals to be created by the
mkfs.gfs2 command. One journal is required for
each node that mounts the file system. If this option is
not specified, one journal will be created. For GFS2 file
systems, you can add additional journals at a later time
without growing the file system.
Prevents the mkfs.gfs2 command from asking for
confirmation before writing the file system.
Examples
11

Advertisement

Table of Contents
loading

This manual is also suitable for:

Global file system 2

Table of Contents