Growing A File System - Red Hat ENTERPRISE LINUX 5 - GLOBAL FILE SYSTEM 2 Manual

Hide thumbs Also See for ENTERPRISE LINUX 5 - GLOBAL FILE SYSTEM 2:
Table of Contents

Advertisement

3.6. Growing a File System

The gfs2_grow command is used to expand a GFS2 file system after the device where the file
system resides has been expanded. Running a gfs2_grow command on an existing GFS2 file
system fills all spare space between the current end of the file system and the end of the device with a
newly initialized GFS2 file system extension. When the fill operation is completed, the resource index
for the file system is updated. All nodes in the cluster can then use the extra storage space that has
been added.
The gfs2_grow command must be run on a mounted file system, but only needs to be run on one
node in a cluster. All the other nodes sense that the expansion has occurred and automatically start
using the new space.
Note
Once you have created a GFS2 file system with the mkfs.gfs2 command, you cannot
decrease the size of the file system.
Usage
gfs2_grow MountPoint
MountPoint
Specifies the GFS2 file system to which the actions apply.
Comments
Before running the gfs2_grow command:
• Back up important data on the file system.
• Determine the volume that is used by the file system to be expanded by running a df MountPoint
command.
• Expand the underlying cluster volume with LVM. For information on administering LVM volumes,
see the LVM Administrator's Guide
After running the gfs2_grow command, run a df command to check that the new space is now
available in the file system.
Examples
In this example, the file system on the /mygfs2fs directory is expanded.
[root@dash-01 ~]# gfs2_grow /mygfs2fs
FS: Mount Point: /mygfs2fs
FS: Device:
/dev/mapper/gfs2testvg-gfs2testlv
FS: Size:
524288 (0x80000)
FS: RG size:
65533 (0xfffd)
DEV: Size:
655360 (0xa0000)
The file system grew by 512MB.
Growing a File System
21

Advertisement

Table of Contents
loading

This manual is also suitable for:

Global file system 2

Table of Contents