Use ceph configured as back-end storage glance

Performed on the monitor ceph


1. Create a pool pool


Create pool pool glance Service (OSD because I have only one node, the number of copies you want to set to 1)
Ceph the OSD pool the Create glance 32-ImagesRF Royalty Free
Ceph the OSD pool glance the SET-ImagesRF Royalty Free size 1
Ceph enable the OSD pool glance the Application-ImagesRF Royalty Free rbd

2. Review the use of pool pool


ceph df

3. Create an account


ceph auth get-or-create client.glance-images mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=glance-images' -o /etc/ceph/ceph.client.glance-images.keyring
查看:
ceph auth ls | grep -EA3 'client.(glance-images)'

4. Modify ceph.conf profile monitors and synchronized to all nodes (this step must be operated)


su - cephd
cd ~/ceph-cluster/
cat <<EOF>> ceph.conf
[client.glance-images]
keyring = /etc/ceph/ceph.client.glance-images.keyring
EOF
ceph-deploy --overwrite-conf admin ceph-mon01
exit

5. ceph profile on the monitor node and glance ceph user key ring copy files to the service node glance


scp /etc/ceph/ceph.conf   <glance-node>:/etc/ceph/ceph.conf

Guess you like

Origin www.cnblogs.com/jipinglong/p/11223064.html