# xfs_estimate - estimate the space that an XFS filesystem will take - man(8) - [phpMan]

[_xfs_estimate_(8)](https://www.chedong.com/phpMan.php/man/xfsestimate/8/markdown)                        System Manager's Manual                       [_xfs_estimate_(8)](https://www.chedong.com/phpMan.php/man/xfsestimate/8/markdown)

## NAME
       xfs_estimate - estimate the space that an XFS filesystem will take

## SYNOPSIS
       **xfs_estimate **[ **-h **] [ **-b **blocksize ] [ **-i **logsize ]
                    [ **-e **logsize ] [ **-v **] directory ...
### xfs_estimate -V

## DESCRIPTION
       For each _directory_ argument, _xfs_estimate_ estimates the space that directory would take if it
       were  copied  to an XFS filesystem.  _xfs_estimate_ does not cross mount points.  The following
       definitions are used:
              KB = *1024
              MB = *1024*1024
              GB = *1024*1024*1024

       The _xfs_estimate_ options are:

### -b _
              Use _blocksize_ instead of the default blocksize of 4096 bytes.  The modifier **k  **can  be
              used after the number to indicate multiplication by 1024.  For example,

                   _**xfs_estimate_ _-b_ _64k_ /**

              requests an estimate of the space required by the directory / on an XFS filesystem us‐
              ing a blocksize of 64K (65536) bytes.

### -v     

### -h     

### -i, -e _
              Use  _logsize_ instead of the default log size of 1000 blocks.  **-i **refers to an internal
              log, while **-e **refers to an external log.  The modifiers **k **or **m **can be used  after  the
              number to indicate multiplication by 1024 or 1048576, respectively.

              For example,

                   _**xfs_estimate_ _-i_ _1m_ /**

              requests an estimate of the space required by the directory / on an XFS filesystem us‐
              ing an internal log of 1 megabyte.

### -V     

## EXAMPLES
       % _**xfs_estimate_ _-e_ _10m_ /var/tmp**
       /var/tmp will take about 4.2 megabytes
               with the external log using 2560 blocks or about 10.0 megabytes

       % _**xfs_estimate_ _-v_ _-e_ _10m_ /var/tmp**
       directory                     bsize   blocks    megabytes    logsize
       /var/tmp                       4096      792        4.0MB   10485760

       % _**xfs_estimate_ _-v_ /var/tmp**
       directory                     bsize   blocks    megabytes    logsize
       /var/tmp                       4096     3352       14.0MB   10485760

       % _**xfs_estimate_ /var/tmp**
       /var/tmp will take about 14.0 megabytes

                                                                                     [_xfs_estimate_(8)](https://www.chedong.com/phpMan.php/man/xfsestimate/8/markdown)
