Ceph: The value of "ctime" changes between original and snapshot volume, (CephFS).

Solution Verified - Updated -

Issue

The value of ctime changes between original and snapshot volume, (CephFS).

For a CephFS Snapshot, the value of ctime differs for the same file from the mounted source volume

Example:

Original CephFS Volume:
sh-4.4$ stat /var/storage/test1/filepvc1 
  File: /var/storage/test1/filepvc1
  Size: 0           Blocks: 0          IO Block: 4194304 regular empty file
Device: 2000cbh/2097355d    Inode: 1099511627795  Links: 1
Access: (0666/-rw-rw-rw-)  Uid: (1000640000/1000640000)   Gid: (    0/    root)
Access: 2023-10-09 20:00:41.154873800 +0000
Modify: 2023-10-09 20:00:41.154873800 +0000
Change: 2023-10-09 20:00:41.154873800 +0000  (ctime)
 Birth: 2023-10-09 20:00:41.150873783 +0000

Snapshot of volume above:
sh-4.4$ stat /var/restored-snapshot/test2/filepvc1 
  File: /var/restored-snapshot/test2/filepvc1
  Size: 0           Blocks: 0          IO Block: 4194304 regular empty file
Device: 2000deh/2097374d    Inode: 1099511628802  Links: 1
Access: (0666/-rw-rw-rw-)  Uid: (1000640000/1000640000)   Gid: (    0/    root)
Access: 2023-10-09 20:00:41.000000000 +0000
Modify: 2023-10-09 20:00:41.000000000 +0000
Change: 2023-10-09 20:10:11.841387231 +0000  (ctime)
Birth: 2023-10-09 20:05:38.952062696 +0000

Environment

Red Hat OpenShift Container Platform (OCP) 4.x
Red Hat OpenShift Container Storage (OCS) 4.x
Red Hat OpenShift Data Foundation (ODF) 4.x
Red Hat Ceph Storage (RHCS) 5.x
Red Hat Ceph Storage (RHCS) 6.x
Ceph File System (CephFS)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content