Red_Hat_Enterprise_Linux-7-Global_File_System_2-en-US.pdf

(1972 KB) Pobierz
Red Hat Enterprise Linux 7
Global File System 2
Red Hat Global File System 2
Red Hat Enterprise Linux 7 Global File System 2
Red Hat Global File System 2
Legal Notice
Copyright © 2014 Red Hat, Inc. and others.
T his document is licensed by Red Hat under the
Creative Commons Attribution-ShareAlike 3.0 Unported
License.
If you distribute this document, or a modified version of it, you must provide attribution to Red
Hat, Inc. and provide a link to the original. If the document is modified, all Red Hat trademarks must be
removed.
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 T orvalds 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.
Node.js ® is an official trademark of Joyent. Red Hat Software Collections is not formally related to or
endorsed by the official Joyent Node.js open source or commercial project.
T he OpenStack ® Word Mark and OpenStack Logo are either registered trademarks/service marks or
trademarks/service marks of the OpenStack Foundation, in the United States and other countries and
are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or
sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.
Abstract
T his book provides information about configuring and maintaining Red Hat GFS2 (Red Hat Global File
System 2) for Red Hat Enterprise Linux 7.
Table of Contents
Table of Contents
⁠
C . . . . . . . GFS2 . . . . . . . .
. .hapter. 1. . . . . . .Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 . . . . . . . .
.
⁠
1.1. New and Changed Features
5
⁠
1.2. Before Setting Up GFS2
5
⁠
1.3. Replacement Functions for gfs2_tool in Red Hat Enterprise Linux 7
6
⁠
C . . . . . . . GFS2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. .hapter. 2. . . . . . .Configuration .and .Operational.Considerations. . . . . . . . . . . . . . . . . . . . . . . 9 . . . . . . . .
.
⁠
2.1. Formatting Considerations
9
⁠
2.2. File System Fragmentation
11
⁠
2.3. Block Allocation Issues
11
⁠
2.4. Cluster Considerations
12
⁠
2.5. Usage Considerations
12
⁠
2.6. File System Backups
14
⁠
2.7. Hardware Considerations
14
⁠
2.8. Performance Issues: Check the Red Hat Customer Portal
15
⁠
2.9. GFS2 Node Locking
15
⁠
C . . . . . . . . . . . . . . . . . . . .
. .hapter. 3. Getting .Started. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 . . . . . . . .
..
⁠
3.1. Prerequisite T asks
20
⁠
3.2. Initial Setup T asks
20
⁠
C . . . . . . Managing . . . .
. .hapter. 4 . . . . . . . . . . .GFS2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 . . . . . . . .
..
⁠
4 .1. Making a File System
22
Usage
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 . . . . . . . .
..
Examples
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 . . . . . . . .
..
Complete Options
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 . . . . . . . .
..
⁠
4 .2. Mounting a File System
25
Usage
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 . . . . . . . .
..
Example
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 . . . . . . . .
..
Complete Usage
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 . . . . . . . .
..
⁠
4 .3. Unmounting a File System
28
Usage
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 . . . . . . . .
..
⁠
4 .4. Special Considerations when Mounting GFS2 File Systems
29
⁠
4 .5. GFS2 Quota Management
29
Usage
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 . . . . . . . .
..
Examples
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 . . . . . . . .
..
⁠
4 .5.1.2. Creating the Quota Database Files
31
⁠
4 .5.1.3. Assigning Quotas per User
31
⁠
4 .5.1.4. Assigning Quotas per Group
32
⁠
4 .5.2. Managing Disk Quotas
32
⁠
4 .5.3. Keeping Quotas Accurate
33
⁠
4 .5.4. Synchronizing Quotas with the quotasync Command
33
Usage
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 . . . . . . . .
..
Examples
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 . . . . . . . .
..
⁠
4 .5.5. References
35
⁠
4 .6. Growing a File System
35
Usage
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 . . . . . . . .
..
1
Zgłoś jeśli naruszono regulamin