Skip to content

Instantly share code, notes, and snippets.

@houming818
Last active September 6, 2017 13:49
Show Gist options
  • Save houming818/c7662f9a0aee77772b20f72a306c2fab to your computer and use it in GitHub Desktop.
Save houming818/c7662f9a0aee77772b20f72a306c2fab to your computer and use it in GitHub Desktop.
summary for the inodes out of usage.

this is the xfs_info out_put:

[root@localhost home]# xfs_info /home
meta-data=/dev/mapper/centos-home isize=256    agcount=4, agsize=28938752 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=0        finobt=0
data     =                       bsize=4096   blocks=115755008, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=0
log      =internal               bsize=4096   blocks=56521, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0

image image image image

/home/www $ du --inodes| sort -n

image

a few minutes later. someone delete the prometheus directory. and the count of inodes increased automatically.

image

but the space of /home is still out of usage.

image image

a few minutes later again. the space is back. and I don't know why.

[root@localhost home]# df --o
Filesystem              Type        Inodes IUsed     IFree IUse% 1K-blocks    Used     Avail Use% File Mounted on
/dev/mapper/centos-root xfs       52428800 36167  52392633    1%  52403200 2066444  50336756   4% -    /
devtmpfs                devtmpfs    998973   374    998599    1%   3995892       0   3995892   0% -    /dev
tmpfs                   tmpfs      1001388     1   1001387    1%   4005552       0   4005552   0% -    /dev/shm
tmpfs                   tmpfs      1001388   461   1000927    1%   4005552  383784   3621768  10% -    /run
tmpfs                   tmpfs      1001388    13   1001375    1%   4005552       0   4005552   0% -    /sys/fs/cgroup
/dev/sda1               xfs         512000   330    511670    1%    508588  122148    386440  25% -    /boot
/dev/mapper/centos-home xfs      463020032  6754 463013278    1% 462793948 6272680 456521268   2% -    /home
tmpfs                   tmpfs      1001388     1   1001387    1%    801112       0    801112   0% -    /run/user/0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment