Viewing individual layout fields

Use the getfattr command to view individual layout fields for a file or directory.

About this task

For more information, see the getfattr(1) manual page.

Procedure

View individual layout fields on a file or directory.
getfattr -n ceph.TYPE.layout.FIELD PATH
Replace:
  • TYPE with file or dir.
  • FIELD with the name of the field.
  • PATH with the path to the file or directory.
For example:
[root@mon ~]# getfattr -n ceph.file.layout.pool test
ceph.file.layout.pool="cephfs_data"
Note: Pools in the pool field are indicated by name. However, newly created pools can be indicated by ID.