xfs_growfs - expand an XFS filesystem
xfs_growfs [ -D size ] [ -d ] [ -e rtextsize ] [ -i ] [ -L size ]
[ -l ] [ -m maxpct ] [ -n ] [ -R size ] [ -r ] [ -x ] mount-point
xfs_growfs expands an existing XFS filesystem (see xfs(4)). The mount-
point argument is the pathname of the directory where the filesystem is
mounted. The filesystem must be mounted to be grown (see mount(1M)).
The existing contents of the filesystem are undisturbed, and the added
space becomes available for additional file storage.
The options to xfs_growfs are:
-d, -D size
Specifies that the data section of the filesystem should be grown.
If the -D size option is given, the data section is grown to that
size, otherwise the data section is grown to the largest size
possible. The size is expressed in filesystem blocks.
-e Allows the real-time extent size to be specified. In mkfs_xfs(1M)
this is specified with -r extsize=nnnn.
-i The new log is an internal log (inside the data section).
-l, -L size
Specifies that the log section of the filesystem should be grown,
shrunk, or moved. If the -L size option is given, the log section
is changed to be that size, if possible. The size is expressed in
filesystem blocks. The size of an internal log must be smaller than
the size of an allocation group (this value is printed at mkfs(1M)
time). If neither -i nor -x is given with -l, the log continues to
be internal or external as it was before.
-m Specify a new value for the maximum percentage of space in the
filesystem that can be allocated as inodes. In mkfs_xfs this is
specified with -i maxpct=nn.
-n Specifies that no change to the filesystem is to be made. The
filesystem geometry is printed, and argument checking is performed,
but no growth occurs.
-r, -R size
Specifies that the real-time section of the filesystem should be
grown. If the -R size option is given, the real-time section is
grown to that size, otherwise the real-time section is grown to the
largest size possible. The size is expressed in filesystem blocks.
The filesystem does not need to have contained a real-time section
before the xfs_growfs operation.
-x The new log is an external log (in an XLV log subvolume).
xfs_growfs is most often used in conjunction with logical volumes (see
). However, it can also be used on a regular disk
partition, for example if a partition has been enlarged while retaining
the same starting block.
Filesystems normally occupy all of the space on the device where they
reside. In order to grow a filesystem, it is necessary to provide added
space for it to occupy. Therefore there must be at least one spare new
disk partition available. Adding the space is done through the mechanism
of logical volumes. If the filesystem already resides on a logical
volume, the volume is simply extended using mklv(1M) or xlv_mgr(1M). If
the filesystem is currently on a regular partition, it is necessary to
create a new logical volume whose first member is the existing partition,
with subsequent members being the new partition(s) to be added. Again,
mklv or xlv_mgr is used for this. In either case xfs_growfs is run on
the mounted filesystem, and the expanded filesystem is then available for
mkfs_xfs(1M), mklv(1M), mount(1M), xlv_make(1M), lv(7M), xlv(7M).
PPPPaaaaggggeeee 2222 [ Back ]