Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gfs2_convert(8) [centos man page]

gfs2_convert(8) 					      System Manager's Manual						   gfs2_convert(8)

NAME
gfs2_convert - Convert a GFS1 filesystem to GFS2 SYNOPSIS
gfs2_convert [OPTION]... DEVICE DESCRIPTION
gfs2_convert is used to convert a filesystem from GFS1 to GFS2. It is required that the GFS1 filesystem be checked and fixed for errors using fsck.gfs2 and that the filesystem be backed up before attempting to convert it. The convert process is irreversible and any error encountered during the conversion can result in the abrupt termination of the program and consequently an unusable filesystem. See NOTES section below for more information. OPTIONS
-h Help. This prints out the proper command line usage syntax. -q Quiet. Print less information while running. -n No to all questions. -V Print program Version information only. Print out the current version name. -v Verbose operation. Print more information while running. -y Yes to all questions. By specifying this option, gfs2_convert will not prompt before making changes. EXAMPLE
gfs2_convert /dev/vg0/lvol0 This will convert the Global File System on the block device "/dev/vg0/lvol0" to gfs2 format. NOTES
If gfs2_convert is interrupted for some reason other than a conversion failure, DO NOT run gfs2_fsck on this partially converted filesys- tem. When this occurs, reissue the gfs2_convert command on the partially converted filesystem to complete the conversion process. The GFS2 filesystem does not support Context-Dependent Path Names (CDPNs). gfs2_convert identifies such CDPNs and replaces them with empty directories with the same name. The administrator can use bind mounts on these directories to get the same effect as CDPNs. When converting full or nearly full filesystems, it is possible that there won't be enough space available to fit all the GFS2 filesystem data structures. In such cases, the size of all the journals is reduced uniformly such that everything fits in the available space. gfs2_convert(8)

Check Out this Related Man Page

gfs2_grow(8)						      System Manager's Manual						      gfs2_grow(8)

NAME
gfs2_grow - Expand a GFS2 filesystem SYNOPSIS
gfs2_grow [OPTION]... <DEVICE|MOUNTPOINT>... DESCRIPTION
gfs2_grow is used to expand a GFS2 filesystem after the device upon which the filesystem resides has also been expanded. By running gfs2_grow on a GFS2 filesystem, you are requesting that any spare space between the current end of the filesystem and the end of the device is filled with a newly initialized GFS2 filesystem extension. When this operation is complete, the resource group index for the filesystem is updated so that all nodes in the cluster 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 to run gfs2_grow on one node in the cluster. All the other nodes will see the expansion has occurred and automatically start to use the newly available space. You must be superuser to execute gfs2_grow. The gfs2_grow tool tries to prevent you from corrupting your filesystem by checking as many of the likely problems as it can. When expanding a filesystem, only the last step of updating the resource index affects the currently mounted filesystem and so failure part way through the expansion process should leave your filesystem in its original unexpanded state. You can run gfs2_grow with the -T flag to get a display of the current state of a mounted GFS2 filesystem. The gfs2_grow tool uses the resource group (RG) size that was originally calculated when mkfs.gfs2 was done. This allows tools like fsck.gfs2 to better ensure the integrity of the file system. Since the new free space 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. OPTIONS
-D Print out debugging information about the filesystem layout. -h Prints out a short usage message and exits. -q Be quiet. Don't print anything. -T Test. Do all calculations, but do not write any data to the disk and do not expand the filesystem. This is used to discover what the tool would have done were it run without this flag. -V Version. Print out version information, then exit. BUGS
There is no way to shrink a GFS2 filesystem. SEE ALSO
mkfs.gfs2(8) gfs2_jadd(8) gfs2_grow(8)
Man Page