3.6. Growing a File System
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.
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.
gfs2_grow complete.