我想让客户端访问rbd池上选定的图像。我该怎么做呢?
现在我用
ceph auth get-or-create client.cdata1 mon 'profile rbd' osd 'profile rbd pool=data1'这允许客户端" cdata1“在池"data1”中查看和挂载所有的图像,我希望用户cdata1只能访问池"data1“中选定的图像,如何做到这一点?
谢谢
发布于 2021-03-19 21:44:39
rbd create rbd-image --size 1000000 --pool data1 --image-feature layering
rbd info data1/rbd-image 然后您可以使用block_name_prefix
ceph auth get-or-create client.cdata1 mon 'profile rbd' osd 'allow rwx pool data1 object_prefix rbd_data.xxxxxxxxxx; allow rwx pool data1 object_prefix rbd_header.xxxxxxxxxxx ;allow rx pool data1 object_prefix rbd_id.rbd-image' -o ceph.client.rbd-image.keyringhttps://stackoverflow.com/questions/66687255
复制相似问题