1 .. SPDX-License-Identifier: GPL-2.0 1 .. SPDX-License-Identifier: GPL-2.0 2 2 3 ==================== !! 3 ================== 4 Global File System 2 !! 4 Global File System 5 ==================== !! 5 ================== 6 6 7 GFS2 is a cluster file system. It allows a clu !! 7 https://fedorahosted.org/cluster/wiki/HomePage >> 8 >> 9 GFS is a cluster file system. It allows a cluster of computers to 8 simultaneously use a block device that is shar 10 simultaneously use a block device that is shared between them (with FC, 9 iSCSI, NBD, etc). GFS2 reads and writes to th !! 11 iSCSI, NBD, etc). GFS reads and writes to the block device like a local 10 file system, but also uses a lock module to al 12 file system, but also uses a lock module to allow the computers coordinate 11 their I/O so file system consistency is mainta 13 their I/O so file system consistency is maintained. One of the nifty 12 features of GFS2 is perfect consistency -- cha !! 14 features of GFS is perfect consistency -- changes made to the file system 13 on one machine show up immediately on all othe 15 on one machine show up immediately on all other machines in the cluster. 14 16 15 GFS2 uses interchangeable inter-node locking m !! 17 GFS uses interchangeable inter-node locking mechanisms, the currently 16 supported mechanisms are: 18 supported mechanisms are: 17 19 18 lock_nolock 20 lock_nolock 19 - allows GFS2 to be used as a local file s !! 21 - allows gfs to be used as a local file system 20 22 21 lock_dlm 23 lock_dlm 22 - uses the distributed lock manager (dlm) !! 24 - uses a distributed lock manager (dlm) for inter-node locking. 23 The dlm is found at linux/fs/dlm/ 25 The dlm is found at linux/fs/dlm/ 24 26 25 lock_dlm depends on user space cluster managem !! 27 Lock_dlm depends on user space cluster management systems found 26 at the URL above. 28 at the URL above. 27 29 28 To use GFS2 as a local file system, no externa !! 30 To use gfs as a local file system, no external clustering systems are 29 needed, simply:: 31 needed, simply:: 30 32 31 $ mkfs -t gfs2 -p lock_nolock -j 1 /dev/bloc 33 $ mkfs -t gfs2 -p lock_nolock -j 1 /dev/block_device 32 $ mount -t gfs2 /dev/block_device /dir 34 $ mount -t gfs2 /dev/block_device /dir 33 35 34 The gfs2-utils package is required on all clus !! 36 If you are using Fedora, you need to install the gfs2-utils package 35 will also need the dlm and corosync user space !! 37 and, for lock_dlm, you will also need to install the cman package 36 documentation. !! 38 and write a cluster.conf as per the documentation. For F17 and above 37 !! 39 cman has been replaced by the dlm package. 38 gfs2-utils can be found at https://pagure.io/g << 39 40 40 GFS2 is not on-disk compatible with previous v 41 GFS2 is not on-disk compatible with previous versions of GFS, but it 41 is pretty close. 42 is pretty close. 42 43 43 The following man pages are available from gfs !! 44 The following man pages can be found at the URL above: 44 45 45 ============ ====================== 46 ============ ============================================= 46 fsck.gfs2 to repair a filesystem 47 fsck.gfs2 to repair a filesystem 47 gfs2_grow to expand a filesystem 48 gfs2_grow to expand a filesystem online 48 gfs2_jadd to add journals to a f 49 gfs2_jadd to add journals to a filesystem online 49 tunegfs2 to manipulate, examine 50 tunegfs2 to manipulate, examine and tune a filesystem 50 gfs2_convert to convert a gfs files !! 51 gfs2_convert to convert a gfs filesystem to gfs2 in-place 51 mkfs.gfs2 to make a filesystem 52 mkfs.gfs2 to make a filesystem 52 ============ ====================== 53 ============ =============================================
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.