Product SiteDocumentation Site

Red Hat Enterprise Linux 6

Global File System 2

Red Hat Global File System 2

Edition 7


Legal Notice

Copyright © 2011 Red Hat, Inc. and others.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
All other trademarks are the property of their respective owners.


1801 Varsity Drive
RaleighNC 27606-2072 USA
Phone: +1 919 754 3700
Phone: 888 733 4281
Fax: +1 919 754 3701

Abstract
This book provides information about configuring and maintaining Red Hat GFS2 (Red Hat Global File System 2) for Red Hat Enterprise Linux 6.

Introduction
1. Audience
2. Related Documentation
3. We Need Feedback!
4. Document Conventions
4.1. Typographic Conventions
4.2. Pull-quote Conventions
4.3. Notes and Warnings
1. GFS2 Overview
1.1. New and Changed Features
1.1.1. New and Changed Features for Red Hat Enterprise Linux 6.0
1.1.2. New and Changed Features for Red Hat Enterprise Linux 6.1
1.1.3. New and Changed Features for Red Hat Enterprise Linux 6.2
1.2. Before Setting Up GFS2
1.3. Differences between GFS and GFS2
1.3.1. GFS2 Command Names
1.3.2. Additional Differences Between GFS and GFS2
1.3.3. GFS2 Performance Improvements
1.4. GFS2 Node Locking
1.4.1. Performance Tuning With GFS2
1.4.2. Troubleshooting GFS2 Performance with the GFS2 Lock Dump
2. Getting Started
2.1. Prerequisite Tasks
2.2. Initial Setup Tasks
2.3. Deploying a GFS2 Cluster
3. Managing GFS2
3.1. Making a File System
3.2. Mounting a File System
3.3. Unmounting a File System
3.4. Special Considerations when Mounting GFS2 File Systems
3.5. GFS2 Quota Management
3.5.1. Configuring Disk Quotas
3.5.2. Managing Disk Quotas
3.5.3. Keeping Quotas Accurate
3.5.4. Synchronizing Quotas with the quotasync Command
3.5.5. References
3.6. Growing a File System
3.7. Adding Journals to a File System
3.8. Data Journaling
3.9. Configuring atime Updates
3.9.1. Mount with relatime
3.9.2. Mount with noatime
3.10. Suspending Activity on a File System
3.11. Repairing a File System
3.12. Bind Mounts and Context-Dependent Path Names
3.13. Bind Mounts and File System Mount Order
3.14. The GFS2 Withdraw Function
4. Diagnosing and Correcting Problems with GFS2 File Systems
4.1. GFS2 File System Shows Slow Performance
4.2. Setting Up NFS Over GFS2
4.3. GFS2 File System Hangs and Requires Reboot of One Node
4.4. GFS2 File System Hangs and Requires Reboot of All Nodes
4.5. GFS2 File System Does Not Mount on Newly-Added Cluster Node
4.6. Space Indicated as Used in Empty File System
A. GFS2 Quota Management with the gfs2_quota Command
A.1. Setting Quotas with the gfs2_quota command
A.2. Displaying Quota Limits and Usage with the gfs2_quota Command
A.3. Synchronizing Quotas with the gfs2_quota Command
A.4. Enabling/Disabling Quota Enforcement
A.5. Enabling Quota Accounting
B. Converting a File System from GFS to GFS2
C. GFS2 tracepoints and the debugfs glocks File
C.1. GFS2 tracepoint Types
C.2. Tracepoints
C.3. Glocks
C.4. The glock debugfs Interface
C.5. Glock Holders
C.6. Glock tracepoints
C.7. Bmap tracepoints
C.8. Log tracepoints
C.9. References
D. Revision History
Index