add crush rule in one command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:      zrzhit@xxxxxxxxx
Blog:        http://way4ever.com
Weibo:    
http://weibo.com/metaxen
Github:     https://github.com/zhurongze
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux