Cephfs authorize command fails with a cap error
This document (000001014) is provided subject to the disclaimer at the end of this document.
ceph fs authorize cephfs client.suse /some_dir rw
This fails with:
Error EINVAL: unknown cap type '/some_dir'
ceph auth get-or-create client.my_cephfs_client mon 'allow r' mds 'allow r, allow rw path=/some_dir' osd 'allow rwx pool=cephfs_data' -o client.<my_cephfs_client>.key
The above example assumes the relevant CephFS pool is "cephfs_data" (the default data pool for CephFS), and that the client (my_cephfs_client) requires RW access to the specified CephFS directory (the "path=" statement).
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000001014
- Creation Date: 23-Oct-2020
- Modified Date:23-Oct-2020
- SUSE Enterprise Storage
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com