[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ceph-ansible
Subject:    Re: [Ceph-ansible] Is it possible to use more than one OSD Scenario in one Ceph Cluster?
From:       Sebastien Han <shan () redhat ! com>
Date:       2018-09-03 9:39:30
Message-ID: CA+HUO7+4bLOuFtZ8=-MbZZ3aAfoZi5_XRSEyYnWiszpHm7+H-Q () mail ! gmail ! com
[Download RAW message or body]

Joerg,

Have a look into this
https://github.com/ceph/ceph-ansible/blob/master/tests/functional/centos/7/bs-osds-non-container/hosts#L8-L13
 I believe it contains what you want.
On Wed, Aug 29, 2018 at 2:06 PM Jörg Kastning
<joerg.kastning@uni-bielefeld.de> wrote:
> 
> Hi Andy,
> 
> Thanks for your reply. To be sure I got it right, I would like to repeat
> it with a small example.
> 
> Am 29.08.2018 um 12:05 schrieb Andy McCrae:
> > You can have different osd scenarios per host, you would need to use
> > host_vars or group_vars to achieve this - for example putting all your
> > SSD/SAS hosts in a "ceph_ssd_sas" group or similar, and then use
> > group_vars to specify the osd_scenario and disk settings for that group.
> > Do note that you'll need the required vars for that setting in the
> > group_vars too. For example, if you set non-collocated you would need
> > devices and dedicated_devices for that group, whereas only devices for
> > the collocated scenario.
> 
> So the following example should work:
> 
> # Example Ansible Inventory
> [collocated-hdd]
> host[1:5].example.com
> 
> [non-collocated-hdd]
> host[6:9].example.com
> ## End of Inventory
> 
> # group_vars/collocated-hdd.yml
> osd_scenario: collocated
> devices:
> - /dev/sda
> - /dev/sdb
> - /dev/sdc
> - /dev/sdd
> 
> # group_vars/non-collocated-hdd.yml
> osd_scenario: non-collocated
> devices:
> - /dev/sda
> - /dev/sdb
> - /dev/sdc
> - /dev/sdd
> dedicated_devices:
> - /dev/sdf
> - /dev/sdf
> - /dev/sdg
> - /dev/sdg
> 
> So host1 to host5 would use collocated OSDs and host6 to host9 would use
> a non-collocated setup.
> 
> I have an idea how to mix collocated and non-collocated scenarios per
> host using host_vars. I'm not entirely sure if that would be a good
> idea, though.
> 
> What do you think? Did I get it?
> 
> Best regards,
> Joerg
> 
> _______________________________________________
> Ceph-ansible mailing list
> Ceph-ansible@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-ansible-ceph.com



-- 
Thanks!

––––––
Sébastien Han
Principal Software Engineer, Storage Architect

"Always give 100%. Unless you're giving blood."

Mail: seb@redhat.com
Address: 11 bis, rue Roquépine - 75008 Paris
_______________________________________________
Ceph-ansible mailing list
Ceph-ansible@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-ansible-ceph.com


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic