# xfs_estimate(8) - man - 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,

                   _x_x_f_f_s_s_____e_e_s_s_t_t_i_i_m_m_a_a_t_t_e_e _-_-_b_b _6_6_4_4_k_k _/_/

              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,

                   _x_x_f_f_s_s_____e_e_s_s_t_t_i_i_m_m_a_a_t_t_e_e _-_-_i_i _1_1_m_m _/_/

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

### -V

## EXAMPLES
       % _x_x_f_f_s_s_____e_e_s_s_t_t_i_i_m_m_a_a_t_t_e_e _-_-_e_e _1_1_0_0_m_m _/_/_v_v_a_a_r_r_/_/_t_t_m_m_p_p
       /var/tmp will take about 4.2 megabytes
               with the external log using 2560 blocks or about 10.0 megabytes

       % _x_x_f_f_s_s_____e_e_s_s_t_t_i_i_m_m_a_a_t_t_e_e _-_-_v_v _-_-_e_e _1_1_0_0_m_m _/_/_v_v_a_a_r_r_/_/_t_t_m_m_p_p
       directory                     bsize   blocks    megabytes    logsize
       /var/tmp                       4096      792        4.0MB   10485760

       % _x_x_f_f_s_s_____e_e_s_s_t_t_i_i_m_m_a_a_t_t_e_e _-_-_v_v _/_/_v_v_a_a_r_r_/_/_t_t_m_m_p_p
       directory                     bsize   blocks    megabytes    logsize
       /var/tmp                       4096     3352       14.0MB   10485760

       % _x_x_f_f_s_s_____e_e_s_s_t_t_i_i_m_m_a_a_t_t_e_e _/_/_v_v_a_a_r_r_/_/_t_t_m_m_p_p
       /var/tmp will take about 14.0 megabytes



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