gfs2.txt 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Global File System
  2. ------------------
  3. http://sources.redhat.com/cluster/
  4. GFS is a cluster file system. It allows a cluster of computers to
  5. simultaneously use a block device that is shared between them (with FC,
  6. iSCSI, NBD, etc). GFS reads and writes to the block device like a local
  7. file system, but also uses a lock module to allow the computers coordinate
  8. their I/O so file system consistency is maintained. One of the nifty
  9. features of GFS is perfect consistency -- changes made to the file system
  10. on one machine show up immediately on all other machines in the cluster.
  11. GFS uses interchangable inter-node locking mechanisms. Different lock
  12. modules can plug into GFS and each file system selects the appropriate
  13. lock module at mount time. Lock modules include:
  14. lock_nolock -- allows gfs to be used as a local file system
  15. lock_dlm -- uses a distributed lock manager (dlm) for inter-node locking
  16. The dlm is found at linux/fs/dlm/
  17. In addition to interfacing with an external locking manager, a gfs lock
  18. module is responsible for interacting with external cluster management
  19. systems. Lock_dlm depends on user space cluster management systems found
  20. at the URL above.
  21. To use gfs as a local file system, no external clustering systems are
  22. needed, simply:
  23. $ mkfs -t gfs2 -p lock_nolock -j 1 /dev/block_device
  24. $ mount -t gfs2 /dev/block_device /dir
  25. GFS2 is not on-disk compatible with previous versions of GFS.
  26. The following man pages can be found at the URL above:
  27. gfs2_fsck to repair a filesystem
  28. gfs2_grow to expand a filesystem online
  29. gfs2_jadd to add journals to a filesystem online
  30. gfs2_tool to manipulate, examine and tune a filesystem
  31. gfs2_quota to examine and change quota values in a filesystem
  32. mount.gfs2 to help mount(8) mount a filesystem
  33. mkfs.gfs2 to make a filesystem