Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 93a2221

Browse files
Artem Ikonnikovidryomov
authored andcommitted
doc: ceph: update userspace command to get CephFS metadata
According to ceph documentation [1], "getfattr -d /some/dir" no longer displays the list of all extended attributes. Both CephFS kernel and FUSE clients hide this information. To retrieve the information you have to specify the particular attribute name e.g. "getfattr -n ceph.dir.rbytes /some/dir". [1] https://docs.ceph.com/en/latest/cephfs/quota/ Signed-off-by: Artem Ikonnikov <artem@datacrunch.io> Reviewed-by: Xiubo Li <xiubli@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
1 parent d8fc898 commit 93a2221

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Documentation/filesystems/ceph.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,15 @@ Snapshot names have two limitations:
6767
more than 255 characters, and `<node-id>` takes 13 characters, the long
6868
snapshot names can take as much as 255 - 1 - 1 - 13 = 240.
6969

70-
Ceph also provides some recursive accounting on directories for nested
71-
files and bytes. That is, a 'getfattr -d foo' on any directory in the
72-
system will reveal the total number of nested regular files and
73-
subdirectories, and a summation of all nested file sizes. This makes
74-
the identification of large disk space consumers relatively quick, as
75-
no 'du' or similar recursive scan of the file system is required.
70+
Ceph also provides some recursive accounting on directories for nested files
71+
and bytes. You can run the commands::
72+
73+
getfattr -n ceph.dir.rfiles /some/dir
74+
getfattr -n ceph.dir.rbytes /some/dir
75+
76+
to get the total number of nested files and their combined size, respectively.
77+
This makes the identification of large disk space consumers relatively quick,
78+
as no 'du' or similar recursive scan of the file system is required.
7679

7780
Finally, Ceph also allows quotas to be set on any directory in the system.
7881
The quota can restrict the number of bytes or the number of files stored

0 commit comments

Comments
 (0)