MAN page from OpenSuSE gfs2-utils-3.1.9-lp152.3.5.x86_64.rpm
Section: Maintenance Commands (8)Index
gfs2_grow - Expand a GFS2 filesystem
gfs2_grow is used to expand a GFS2 filesystem after the deviceupon which the filesystem resides has also been expanded. Byrunning gfs2_grow on a GFS2 filesystem, you are requesting thatany spare space between the current end of the filesystem andthe end of the device is filled with a newly initialized GFS2filesystem extension. When this operation is complete, the resourcegroup index for the filesystem is updated so that all nodes in thecluster can use the extra storage space that has been added.
You may only run gfs2_grow on a mounted filesystem; expansion of unmounted filesystems is not supported. You only need torun gfs2_grow on one node in the cluster. All the other nodes willsee the expansion has occurred and automatically start to use thenewly available space.
You must be superuser to execute gfs2_grow. The gfs2_growtool tries to prevent you from corrupting your filesystem by checking asmany of the likely problems as it can. When expanding a filesystem,only the last step of updating the resource index affects the currentlymounted filesystem and so failure part way through the expansion processshould leave your filesystem in its original unexpanded state.
You can run gfs2_grow with the -T flag to get a displayof the current state of a mounted GFS2 filesystem.
The gfs2_grow tool uses the resource group (RG) size that was originallycalculated when mkfs.gfs2 was done. This allows tools like fsck.gfs2to better ensure the integrity of the file system. Since the new freespace often does not lie on even boundaries based on that RG size,there may be some unused space on the device after gfs2_grow is run.
- Print out debugging information about the filesystem layout.
- Prints out a short usage message and exits.
- Be quiet. Don't print anything.
- Test. Do all calculations, but do not write any data to the disk and donot expand the filesystem. This is used to discover what the tool wouldhave done were it run without this flag.
- Version. Print out version information, then exit.
There is no way to shrink a GFS2 filesystem.
- SEE ALSO
This document was created byman2html,using the manual pages.