
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: /dev/vg01/lvol0
Blocksize: 4096
Filesystem Size: 136380192
Journals: 8
Resource Groups: 2082
Locking Protocol: lock_dlm
Lock Table: alpha:mydata1
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: /dev/vg01/lvol0
Blocksize: 4096
Filesystem Size: 136380192
Journals: 8
Resource Groups: 2082
Locking Protocol: lock_dlm
Lock Table: alpha:mydata1
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.
Examples
11
Comentários a estes Manuais