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

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

Advertisement

NumberJournals
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. (More journals than are needed can be
specified at creation time to allow for future expansion.)
BlockDevice
Specifies a 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.
[root@ask-07 ~]#
gfs_mkfs -p lock_dlm -t alpha:mydata1 -j 8 /dev/vg01/lvol0
This will destroy any data on /dev/vg01/lvol0.
Are you sure you want to proceed? [y/n] y
Device:
Blocksize:
Filesystem Size:
Journals:
Resource Groups:
Locking Protocol:
Lock Table:
Syncing...
All Done
[root@ask-07 ~]#
mkfs -t gfs -p lock_dlm -t alpha:mydata1 -j 8 /dev/vg01/lvol0
This will destroy any data on /dev/vg01/lvol0.
Are you sure you want to proceed? [y/n] y
Device:
Blocksize:
Filesystem Size:
Journals:
Resource Groups:
Locking Protocol:
Lock Table:
Syncing...
All Done
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.
gfs_mkfs -p lock_dlm -t alpha:mydata2 -j 8 /dev/vg01/lvol1
mkfs -t gfs -p lock_dlm -t alpha:mydata2 -j 8 /dev/vg01/lvol1
/dev/vg01/lvol0
4096
136380192
8
2082
lock_dlm
alpha:mydata1
/dev/vg01/lvol0
4096
136380192
8
2082
lock_dlm
alpha:mydata1
Examples
11

Advertisement

Table of Contents
loading

This manual is also suitable for:

Global file system

Table of Contents