##### 오픈스택용 Ceph Pool 생성 [root@ceph ~]# ceph osd pool create volumes 16 [root@ceph ~]# ceph osd pool create images 16 [root@ceph ~]# ceph osd pool create vms 16 [root@ceph ~]# ceph osd pool create backups 16 [root@ceph ~]# ceph osd pool create metrics 16 [root@ceph ~]# ceph osd pool create gnocchi 16 [root@ceph1 ~]# ceph osd pool application enable volumes rbd enabled application 'rbd' on pool 'volumes' [root@ceph1 ~]# ceph osd pool application enable images rbd enabled application 'rbd' on pool 'images' [root@ceph1 ~]# ceph osd pool application enable vms rbd enabled application 'rbd' on pool 'vms' [root@ceph1 ~]# ceph osd pool application enable backups rbd enabled application 'rbd' on pool 'backups' [root@ceph1 ~]# ceph osd pool application enable metrics rbd enabled application 'rbd' on pool 'metrics' [root@ceph1 ~]# ceph osd pool application enable gnocchi rbd enabled application 'rbd' on pool 'gnocchi' ##### CephFS 사용한다면 [root@ceph ~]# ceph osd pool create manila_data 16 [root@ceph ~]# ceph osd pool create manila_metadata 16 ##### client.openstack 사용자 생성 [root@ceph ~]# ceph auth add client.openstack mgr 'allow *' mon 'profile rbd' osd 'profile rbd pool=volumes, profile rbd pool=vms, profile rbd pool=images, profile rbd pool=backups, profile rbd pool=metrics, profile rbd pool=gnocchi, profile rbd pool=manila_data, profile rbd pool=manila_metadata' ceph auth add client.glance mgr 'allow *' mon 'profile rbd' osd 'profile rbd pool=images' ceph auth add client.cinder mgr 'allow *' mon 'profile rbd' osd 'profile rbd pool=volumes' ceph auth add client.cinder-backup mgr 'allow *' mon 'profile rbd' osd 'profile rbd pool=backups' ceph auth add client.nova mgr 'allow *' mon 'profile rbd' osd 'profile rbd pool=vms' ceph auth add client.gnocchi mgr 'allow *' mon 'profile rbd' osd 'profile rbd pool=gnocchi' ceph auth add client.manila mgr 'allow *' mon 'profile rbd' osd 'profile rbd pool=manila_data, profile rbd pool=manila_metadata' [root@ceph ~]# ceph auth list client.openstack key: AQDL+/9gCTn9FBAAhImovklrAThK9Q30+Dg9CA== caps: [mgr] allow * caps: [mon] profile rbd caps: [osd] profile rbd pool=volumes, profile rbd pool=vms, profile rbd pool=images, profile rbd pool=backups, profile rbd pool=metrics ##### CephFS 사용한다면 [root@ceph ~]# ceph auth add client.manila mon 'allow r, allow command "auth del", allow command "auth caps", allow command "auth get", allow command "auth get-or-create"' osd 'allow rw' mds 'allow *' mgr 'allow *' [root@ceph ~]# ceph auth get-key client.manila AQDQ991cAAAAABAA0aXFrTnjH9aO39P0iVvYyg== [root@ceph01 ~]# ceph auth get client.cinder -o /etc/ceph/ceph.client.cinder.keyring