`"use ceph-volume to create {{ osd_objectstore }} osds"` is very slow, because it calls `ceph volume lvm list` once per OSD on a host
See original GitHub issueBug Report
What happened: Running ceph-ansible on a Luminous / ceph-volume lvm / bluestore cluster takes a very long time, most of which is in the "use ceph-volume to create {{ osd_objectstore }} osds"
task. You can see below that it takes at least 2 hours per host - and this is not creating any OSDs, just going through the already-deployed ones on each host.
ceph-osd : use ceph-volume to create bluestore osds ------------------ 11228.03s
ceph-osd : use ceph-volume to create bluestore osds ------------------ 8466.27s
ceph-osd : use ceph-volume to create bluestore osds ------------------ 8390.08s
Looking at it, this is because the ceph-volume
plugin runs ceph volume lvm list
individually for each OSD, and that takes a while (between about 15 and 120s). It should, instead, call ceph volume lvm list
once, and process the output itself.
Environment:
- OS (e.g. from /etc/os-release): Ubuntu 16.04 and 18.04 (happens on both)
- Docker version if applicable (e.g.
docker version
): n/a - Ansible version (e.g.
ansible-playbook --version
): 2.6 - ceph-ansible version (e.g.
git head or tag or stable branch
): 3.2.3 - Ceph version (e.g.
ceph -v
): Luminous
Issue Analytics
- State:
- Created 4 years ago
- Comments:19 (16 by maintainers)
Top Results From Across the Web
ceph-volume -- Ceph OSD deployment and inspection tool
Creates OSDs from a list of devices using a filestore or bluestore (default) setup. It will create all necessary volume groups and logical...
Read more >Chapter 6. Using the ceph-volume Utility to Deploy OSDs
The ceph-volume utility is a single purpose command-line tool to deploy logical volumes as OSDs. It uses a plugin-type framework to deploying OSDs...
Read more >OSD Replacement - Using and Operating Ceph
... put back in procedures. To see which osds are down, check with ceph osd tree down out . ... This is a...
Read more >ceph-volume - Ceph OSD deployment and inspection tool
It will not create or modify the logical volumes except for adding extra metadata. Usage: ceph-volume lvm prepare --filestore --data <data lv> --journal...
Read more >Single HDD ceph cluster - SUSE Enterprise Storage
Logical volume “osd4” created. prepare lvm for bluestore. ceph-2:~ # ceph-volume lvm prepare --bluestore --data vg0/osd4. Running command: /usr/ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mcv21 Would you be able to test the ceph-volume fix provided by [1] ? The associated patch for Luminous is [2]. This will be part of the next 12.2.13 release.
[1] https://tracker.ceph.com/issues/37490 [2] https://github.com/ceph/ceph/pull/30094
We do have a faster ceph-volume at last. Next time I run ceph-ansible against that cluster I’ll see what the timing’s like…