Red Hat Enterprise 7 Global File System 2

Red Hat Global File System 2

Steven Levine

Red Hat Enterprise Linux 7 Global File System 2

Red Hat Global File System 2

Steven Levine Red Hat Customer Content Services [email protected] Legal Notice

Copyright © 2016 Red Hat, Inc. and others.

This 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, OpenShift, 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.

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.

The 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 This book provides information about configuring and maintaining Red Hat GFS2 (Red Hat Global File System 2) for Red Hat Enterprise Linux 7. T able of Cont ent s

Table of Contents

.C .h .a .p . t.e .r . 1. .. G. .F .S .2 . .O . v. e. r.v .i e. w...... 3...... ⁠1.1. New and Chang ed Features 4 ⁠1.2. Befo re Setting Up GFS2 4 ⁠1.3. Installing GFS2 5 ⁠1.4. Rep lacement Functio ns fo r g fs2_to o l in Red Hat Enterp rise Linux 7 6

.C .h .a .p . t.e .r . 2. .. G. .F .S .2 . .C .o .n . f.i g. u. .r a. t. i.o .n . a. n. .d . O. .p .e .r .a .t i.o . n. a. l. C. o. .n .s .i d. e. r. a. t.i o. .n .s ...... 9...... ⁠2.1. Fo rmatting Co nsid eratio ns 9 ⁠2.2. File System Frag mentatio n 11 ⁠2.3. Blo ck Allo catio n Issues 11 ⁠2.4. Cluster Co nsid eratio ns 12 ⁠2.5. Usag e Co nsid eratio ns 12 ⁠2.6 . File System Backup s 14 ⁠2.7. Hard ware Co nsid eratio ns 15 ⁠2.8 . Perfo rmance Issues: Check the Red Hat Custo mer Po rtal 15 ⁠2.9 . GFS2 No d e Lo cking 15

.C .h .a .p . t.e .r . 3. .. M. .a .n .a .g .i n. .g . G. .F .S .2 ...... 2. 1...... ⁠3.1. Making a File System 21 ⁠3.2. Mo unting a File System 24 ⁠3.3. Unmo unting a File System 27 ⁠3.4. Sp ecial Co nsid eratio ns when Mo unting GFS2 File Systems 28 ⁠3.5. GFS2 Quo ta Manag ement 28 ⁠3.6 . Gro wing a File System 33 ⁠3.7. Ad d ing Jo urnals to a File System 34 ⁠3.8 . Data Jo urnaling 36 ⁠3.9 . Co nfig uring atime Up d ates 37 ⁠3.10 . Susp end ing Activity o n a File System 38 ⁠3.11. Rep airing a File System 39

.C .h .a .p . t.e .r . 4. .. D. .i a. g. n. o. .s .i n. g. .a .n . d. .C .o . r.r e. c. t. i.n .g . .P .r o. .b .l e. m. .s . w. .i t.h . .G . F. S. 2. .F .i l.e . S. .y .s .t e. m. .s ...... 4. 2...... ⁠4.1. GFS2 File System Sho ws Slo w Perfo rmance 42 ⁠4.2. GFS2 File System Hang s and Req uires Reb o o t o f One No d e 42 ⁠4.3. GFS2 File System Hang s and Req uires Reb o o t o f All No d es 42 ⁠4