Actions
Bug #55108
opencephfs: recursive stats (ceph.dir.rbytes) on snapshotted directory shows invalid size (zero)
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
I am observing that the 'ceph.dir.rbytes' shows correct value on subvolume snapshot as long as the subvolume data is present. The moment the associated subvolume is deleted with --retain-snapshots option, the 'ceph.dir.rbytes' on subvolume snapshot shows 0
# bin/ceph fs subvolume snapshot create a sub_0 snap_0 *** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH *** 2022-03-29T15:42:09.110+0530 7f0b52ab0700 -1 WARNING: all dangerous and experimental features are enabled. 2022-03-29T15:42:09.118+0530 7f0b52ab0700 -1 WARNING: all dangerous and experimental features are enabled. (venv) root@kotresh-T490s:~/sandbox/kotresh-ceph/ceph/build# # getfattr -n "ceph.dir.rbytes" /mnt/volumes/_nogroup/sub_0/a6a3b79c-4ebc-44f3-a692-4c6fddacc852/ getfattr: Removing leading '/' from absolute path names # file: mnt/volumes/_nogroup/sub_0/a6a3b79c-4ebc-44f3-a692-4c6fddacc852/ ceph.dir.rbytes="263192576" # getfattr -n "ceph.dir.rbytes" /mnt/volumes/_nogroup/sub_0/.snap/snap_0/a6a3b79c-4ebc-44f3-a692-4c6fddacc852/ getfattr: Removing leading '/' from absolute path names # file: mnt/volumes/_nogroup/sub_0/.snap/snap_0/a6a3b79c-4ebc-44f3-a692-4c6fddacc852/ ceph.dir.rbytes="263192576" # bin/ceph fs subvolume rm a sub_0 --retain-snapshots *** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH *** 2022-03-29T15:48:06.035+0530 7f89341b1700 -1 WARNING: all dangerous and experimental features are enabled. 2022-03-29T15:48:06.047+0530 7f89341b1700 -1 WARNING: all dangerous and experimental features are enabled. (venv) root@kotresh-T490s:~/sandbox/kotresh-ceph/ceph/build# getfattr -n "ceph.dir.rbytes" /mnt/volumes/_nogroup/sub_0/.snap/snap_0/a6a3b79c-4ebc-44f3-a692-4c6fddacc852/ getfattr: Removing leading '/' from absolute path names # file: mnt/volumes/_nogroup/sub_0/.snap/snap_0/a6a3b79c-4ebc-44f3-a692-4c6fddacc852/ ceph.dir.rbytes="0"
Is this expected with snapshots ?
No data to display
Actions