1
2mkfs.gfs2(8) System Manager's Manual mkfs.gfs2(8)
3
4
5
7 mkfs.gfs2 - Make a GFS2 filesystem
8
9
11 mkfs.gfs2 [OPTION]... DEVICE
12
13
15 mkfs.gfs2 is used to create a Global File System.
16
17
19 -c MegaBytes
20 Initial size of each journal's quota change file
21
22 -D Enable debugging output.
23
24 -h Print out a help message describing available options,
25 then exit.
26
27 -J MegaBytes
28 The size of the journals in Megabytes. The default journal size
29 is 32 megabytes. The minimum size is 8 megabytes.
30
31 -j Number
32 The number of journals for gfs2_mkfs to create. You need at
33 least one journal per machine that will mount the filesystem.
34 If this option is not specified, one journal will be created.
35
36 -O This option prevents gfs2_mkfs from asking for confirmation
37 before writing the filesystem.
38
39 -p LockProtoName
40 LockProtoName is the name of the locking protocol to use.
41 Acceptable locking protocols are lock_dlm or if you are using
42 GFS2 as a local filesystem (1 node only), you can specify the
43 lock_nolock protocol. If this option is not specified,
44 lock_nolock protocol will be assumed.
45
46 -q Be quiet. Don't print anything.
47
48 -r MegaBytes
49 gfs2_mkfs will try to make Resource Groups about this big. Min‐
50 imum RG size is 32 MB. Maximum RG size is 2048 MB. A large RG
51 size may increase performance on very large file systems. If
52 not specified, mkfs.gfs2 will choose the RG size based on the
53 size of the file system: average size file systems will have 256
54 MB RGs, and bigger file systems will have bigger RGs for better
55 performance.
56
57 -t LockTableName
58 The lock table field appropriate to the lock module you're
59 using. It is clustername:fsname. Clustername must match that
60 in cluster.conf; only members of this cluster are permitted to
61 use this file system. Fsname is a unique file system name used
62 to distinguish this GFS2 file system from others created (1 to
63 16 characters). Lock_nolock doesn't use this field.
64
65 -u MegaBytes
66 Initial size of each journal's unlinked tag file
67
68 -V Print program version information, then exit.
69
70
72 gfs2_mkfs -t mycluster:mygfs2 -p lock_dlm -j 2 /dev/vg0/mygfs2
73 This will make a Global File System on the block device
74 "/dev/vg0/mygfs2". It will belong to "mycluster" and register
75 itself as wanting locking for "mygfs2". It will use DLM for
76 locking and make two journals.
77
78 gfs2_mkfs -t mycluster:mygfs2 -p lock_nolock -j 3 /dev/vg0/mygfs2
79 This will make a Global File System on the block device
80 "/dev/vg0/mygfs2". It will belong to "mycluster" and but have
81 no cluster locking. It will have three journals.
82
83
84
85 mkfs.gfs2(8)