gfs2.rst 1.9 KB

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