Hi folks,

Recently, I use puppet to deploy Ceph and integrate Ceph with OpenStack. We
put computeand storage together in the same cluster. So nova-compute and
OSDs will be in each server. We will create a local pool for each server,
and the pool only use the disks of each server. Local pools will be used by
Nova for root disk and ephemeral disk.

In order to use the local pools, I need add some rules for the local pools
to ensure the local pools using only local disks. There is only way to add
rule in ceph:

   1. ceph osd getcrushmap -o crush-map
   2. crushtool -c crush-map.txt -o new-crush-map
   3. ceph osd setcrushmap -i new-crush-map

 If multiple servers simultaneously set crush map(puppet agent will do
that), there is the possibility of consistency problems. So if there is an
command for adding rule, which will be very convenient. Such as:

*ceph osd crush add rule -i new-rule-file*

Could I add the command into Ceph?

Cheers,


-- 

Rongze Zhu - 朱荣泽
Email:      zrz...@gmail.com
Blog:        http://way4ever.com
Weibo:     http://weibo.com/metaxen
Github:     https://github.com/zhurongze
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to