Add support for CEPH ceph.file.layout and ceph.dir.layout xattr
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nfs-ganesha (Ubuntu) |
Triaged
|
Undecided
|
Unassigned |
Bug Description
Ceph supports using extended attributes (xattrs) to configure a file or directory layout, so as to tell Ceph which pool to place the objects related to that file or directory. This is mostly relevant for when you are using CephFS and have multiple pools in the Ceph volume, as documented here [1] and [2].
However, if you have NFS-Ganesha serving the CephFS filesystem to NFS clients, it will fail if you try to setfattr
ubuntu@
setfattr: /mnt/nfs1/ecpool: Operation not supported
So, it seems there's a limitation on what kind of Ceph xattr ganesha would support.
In this bug, there are some discussions around some CEPH FSALs that were enabled.
https:/
And we can see them at:
However none of them are related to the xattr required by Ceph for disk layouts to work (i.e.: ceph.dir.
Hence, although ceph-fs supports file-layouts, it doesn't seem that NFS Ganesha contains the necessary features to support it in a Ceph environment.
It would be good to have implemented in NFS-Ganesha, so we can relay the CephFS requirements to configure file-layouts.
[1] https:/
[2] https:/
Fabio, can I ask you to provide some detail on the setup.
- Can you confirm which NFS client you are using?
- Would you be able to share logs. Ideally provide an sosreport, but if that is not feasible /v/l/kern.log and /v/l/syslog would be great
Thank you.