How to set up cephx keys by ceph
Editor to share with you how to set up ceph cephx keys, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to understand it!
Set up cephx keys
If ceph sets cephx, you can set permissions for different users.
# create key$ ceph auth get-or-create client.dummy mon 'allow r' osd 'allow rwx pool=dummy' of dummy [client.dummy] key = AQAPiu1RCMb4CxAAmP7rrufwZPRqy8bpQa2OeQ==$ ceph auth listinstalled auth entries:...client.dummy key: AQAPiu1RCMb4CxAAmP7rrufwZPRqy8bpQa2OeQ== caps: [mon] allow r caps: [osd] allow rwx pool=dummy...# to key reassign permission of dummy $ceph auth caps client.dummy mon' allow rwx' osd 'allow rwx pool=dummy'updated caps for client.dummy$ ceph auth listinstalled auth entries:client.dummy Key: AQAPiu1RCMb4CxAAmP7rrufwZPRqy8bpQa2OeQ== caps: [mon] allow rwx caps: [osd] allow allow rwx pool=dummy/dev/sda2 / srv/ceph/osdX1 xfs rw Noexec,nodev,noatime,nodiratime,barrier=0 0 0 and above are all the contents of the article "how to set up cephx keys for ceph" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!