1
2xfs_growfs(8)               System Manager's Manual              xfs_growfs(8)
3
4
5

NAME

7       xfs_growfs - expand an XFS filesystem
8

SYNOPSIS

10       xfs_growfs  [  -dilnrx  ] [ -D size ] [ -e rtextsize ] [ -L size ] [ -m
11       maxpct ] [ -t mtab ] [ -R size ] [ mount-point | block-device ]
12
13       xfs_growfs -V
14

DESCRIPTION

16       xfs_growfs expands an existing XFS filesystem (see xfs(5)).  The mount-
17       point argument is the pathname of the directory where the filesystem is
18       mounted. The block-device argument is the device name of a mounted  XFS
19       filesystem.  The filesystem must be mounted to be grown (see mount(8)).
20       The existing contents of the filesystem are undisturbed, and the  added
21       space becomes available for additional file storage.
22

OPTIONS

24       -d | -D size
25              Specifies  that the data section of the filesystem should be re‐
26              sized. If the -D size option  is  given,  the  data  section  is
27              changed to that size, otherwise the data section is grown to the
28              largest size possible with the -d option. The size is  expressed
29              in  filesystem  blocks.  A  filesystem  with only 1 AG cannot be
30              shrunk further, and a filesystem cannot be shrunk to  the  point
31              where it would only have 1 AG.
32
33       -e     Allows the real-time extent size to be specified. In mkfs.xfs(8)
34              this is specified with -r extsize=nnnn.
35
36       -i     The new log is  an  internal  log  (inside  the  data  section).
37              [NOTE: This option is not implemented]
38
39       -l | -L size
40              Specifies  that  the  log  section  of  the filesystem should be
41              grown, shrunk, or moved. If the -L size option is given, the log
42              section is changed to be that size, if possible. The size is ex‐
43              pressed in filesystem blocks.  The size of an internal log  must
44              be  smaller  than the size of an allocation group (this value is
45              printed at mkfs(8) time). If neither -i nor -x is given with -l,
46              the  log  continues to be internal or external as it was before.
47              [NOTE: These options are not implemented]
48
49       -m     Specify a new value for the maximum percentage of space  in  the
50              filesystem  that can be allocated as inodes. In mkfs.xfs(8) this
51              is specified with -i maxpct=nn.
52
53       -n     Specifies that no change to the filesystem is to be  made.   The
54              filesystem  geometry  is  printed, and argument checking is per‐
55              formed, but no growth occurs.  See output examples below.
56
57       -r | -R size
58              Specifies that the real-time section of the filesystem should be
59              grown.  If the -R size option is given, the real-time section is
60              grown to that size, otherwise the real-time section is grown  to
61              the  largest  size  possible with the -r option. The size is ex‐
62              pressed in filesystem blocks.  The filesystem does not  need  to
63              have  contained a real-time section before the xfs_growfs opera‐
64              tion.
65
66       -t     Specifies an alternate mount table file (default is /proc/mounts
67              if  it  exists, else /etc/mtab).  This is used when working with
68              filesystems mounted without writing to /etc/mtab file - refer to
69              mount(8) for further details.
70
71       -V     Prints the version number and exits. The mount-point argument is
72              not required with -V.
73
74       xfs_growfs is most often used in conjunction with logical volumes  (see
75       md(4)  and lvm(8) on Linux).  However, it can also be used on a regular
76       disk partition, for example if a partition has been enlarged while  re‐
77       taining the same starting block.
78

PRACTICAL USE

80       Filesystems  normally  occupy all of the space on the device where they
81       reside. In order to grow a filesystem, it is necessary to provide added
82       space  for it to occupy. Therefore there must be at least one spare new
83       disk partition available. Adding the space is often  done  through  the
84       use of a logical volume manager.
85

SEE ALSO

87       mkfs.xfs(8), xfs_info(8), md(4), lvm(8), mount(8).
88
89
90
91                                                                 xfs_growfs(8)
Impressum