Commit 93a2221c authored by Artem Ikonnikov's avatar Artem Ikonnikov Committed by Ilya Dryomov

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: default avatarArtem Ikonnikov <artem@datacrunch.io>
Reviewed-by: default avatarXiubo Li <xiubli@redhat.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent d8fc8981
...@@ -67,12 +67,15 @@ Snapshot names have two limitations: ...@@ -67,12 +67,15 @@ Snapshot names have two limitations:
more than 255 characters, and `<node-id>` takes 13 characters, the long more than 255 characters, and `<node-id>` takes 13 characters, the long
snapshot names can take as much as 255 - 1 - 1 - 13 = 240. snapshot names can take as much as 255 - 1 - 1 - 13 = 240.
Ceph also provides some recursive accounting on directories for nested Ceph also provides some recursive accounting on directories for nested files
files and bytes. That is, a 'getfattr -d foo' on any directory in the and bytes. You can run the commands::
system will reveal the total number of nested regular files and
subdirectories, and a summation of all nested file sizes. This makes getfattr -n ceph.dir.rfiles /some/dir
the identification of large disk space consumers relatively quick, as getfattr -n ceph.dir.rbytes /some/dir
no 'du' or similar recursive scan of the file system is required.
to get the total number of nested files and their combined size, respectively.
This makes the identification of large disk space consumers relatively quick,
as no 'du' or similar recursive scan of the file system is required.
Finally, Ceph also allows quotas to be set on any directory in the system. Finally, Ceph also allows quotas to be set on any directory in the system.
The quota can restrict the number of bytes or the number of files stored The quota can restrict the number of bytes or the number of files stored
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment