Occasionally ceph.dir.rctime is incorrect (14.2.4 nautilus)

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

 



Hi

Occasionally, a directory's ceph.dir.rctime isn't updated when it is
copied (rsync'd) to ceph, it reads the same as from stat, not the time
it was created on ceph.

The cluster is all Scientific Linux release 7.7 with ceph 14.2.4
nautilus (stable), the problem happened with kernel client running on
one of the mon nodes. The tree that was rsync'd in was about 20TB, 340k
files, 3000 directories. In all, I've found just 5 directories suffering
this - possibly of interest, they are all empty (although there were 472
empty dirs in total).

* dir1 is reported correctly:

[root@ceph ~]# ls -ld path/to/dir1
drwxr-xr-x 1 thisuser thisuser 0 Jun 18  2018 path/to/dir1

[root@ceph ~]# getfattr --only-values -n ceph.dir.rctime path/to/dir1
1571035073.09398156844
[root@ceph ~]# stat path/to/dir1
  File: ‘path/to/dir1’
  Size: 0           Blocks: 0          IO Block: 65536  directory
Device: 0h/0d   Inode: 1099637142596  Links: 1
Access: (0755/drwxr-xr-x)  Uid: (26089/thisuser)   Gid: (26089/thisuser)
Access: 2019-10-14 07:37:53.397156853 +0100
Modify: 2018-06-18 18:19:12.001114388 +0100
Change: 2019-10-14 07:37:53.398156844 +0100
 Birth: -

* But dir2's rctime is wrong:

[root@ceph ~]# ls -ld path/to/dir1/dir2
drwxr-xr-x 1 thisuser thisuser 0 Jun 18  2018 path/to/dir1/dir2
[root@ceph ~]# getfattr --only-values -n ceph.dir.rctime path/to/dir1/dir2
1529342352.091114388
[root@ceph ~]# stat path/to/dir1/dir2
  File: ‘path/to/dir1/dir2’
  Size: 0           Blocks: 0          IO Block: 65536  directory
Device: 0h/0d   Inode: 1099637142960  Links: 1
Access: (0755/drwxr-xr-x)  Uid: (26089/thisuser)   Gid: (26089/thisuser)
Access: 2019-10-14 07:37:53.398156844 +0100
Modify: 2018-06-18 18:19:12.001114388 +0100
Change: 2019-10-14 07:37:53.398156844 +0100
 Birth: -


Cheers
Toby
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux