Configuring nova as back-end storage services use ceph

Performed on the monitor ceph

1. Create a pool pool

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

2. Review the use of pool pool


ceph df

3. Create an account


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

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.nova-vms]
keyring = /etc/ceph/ceph.client.nova-vms.keyring
EOF
ceph-deploy --overwrite-conf admin ceph-mon01
exit

Guess you like

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