inode not recycled after delete file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello
Recently we have a problem on xfs.

The environment is:
CentOS Linux release 7.4.1708 (Core)
Linux xefs-51 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC
2017 x86_64 x86_64 x86_64 GNU/Linux

[root@xefs-51 ~]# modinfo xfs
filename:       /lib/modules/3.10.0-693.el7.x86_64/kernel/fs/xfs/xfs.ko.xz
license:        GPL
description:    SGI XFS with ACLs, security attributes, no debug enabled
author:         Silicon Graphics, Inc.
alias:          fs-xfs
rhelversion:    7.4
srcversion:     6CAAE7A01207B73522C8412
depends:        libcrc32c
intree:         Y
vermagic:       3.10.0-693.el7.x86_64 SMP mod_unload modversions
signer:         CentOS Linux kernel signing key
sig_key:        DA:18:7D:CA:7D:BE:53:AB:05:BD:13:BD:0C:4E:21:F4:22:B6:A4:9C
sig_hashalgo:   sha256

We mount /dev/sdc2 on /mnt after machine boot
[root@xefs-51 ~]# df -iT /mnt/
文件系统       类型     Inode 已用(I)   可用(I) 已用(I)% 挂载点
/dev/sdc2      xfs  107374144       6 107374138       1% /mnt
[root@xefs-51 ~]# ls /mnt
jjj  kkk  xfs.strace

And we add files to /mnt at first,
[root@xefs-51 ~]# cp /mnt/jjj /mnt/123
[root@xefs-51 ~]# df -iT /mnt
文件系统       类型     Inode 已用(I)   可用(I) 已用(I)% 挂载点
/dev/sdc2      xfs  107374144       7 107374137       1% /mnt
[root@xefs-51 ~]# cp /mnt/jjj /mnt/111
[root@xefs-51 ~]# df -iT /mnt
文件系统       类型     Inode 已用(I)   可用(I) 已用(I)% 挂载点
/dev/sdc2      xfs  107374144       8 107374136       1% /mnt
[root@xefs-51 ~]# cp /mnt/jjj /mnt/222
[root@xefs-51 ~]# df -iT /mnt
文件系统       类型     Inode 已用(I)   可用(I) 已用(I)% 挂载点
/dev/sdc2      xfs  107374144       9 107374135       1% /mnt
[root@xefs-51 ~]# cp /mnt/jjj /mnt/333
[root@xefs-51 ~]# df -iT /mnt
文件系统       类型     Inode 已用(I)   可用(I) 已用(I)% 挂载点
/dev/sdc2      xfs  107374144      10 107374134       1% /mnt

and then remove some, but the inodes used in 'df -iT /mnt' not changed
[root@xefs-51 ~]# rm -f /mnt/jjj
[root@xefs-51 ~]# df -iT /mnt
文件系统       类型     Inode 用(I)   可用(I) 已用(I)% 挂载点
/dev/sdc2      xfs  107374144      10 107374134       1% /mnt
[root@xefs-51 ~]# rm -f /mnt/kkk
[root@xefs-51 ~]# df -iT /mnt
文件系统       类型     Inode 已用(I)   可用(I) 已用(I)% 挂载点
/dev/sdc2      xfs  107374144      10 107374134       1% /mnt

and if we umount /mnt at this time, the machine will reboot,
and no related log in /var/log/messages after boot and the inodes used
become normal.
As googled a lot, we tried some ways:
1) lsof /mnt: shows nobody use this mount point.
2) lsof |grep deleted: shows empty
What should i do to find the problem out?

--
Thank you!




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux