question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`"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 issue

Bug 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:closed
  • Created 4 years ago
  • Comments:19 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
dsavineaucommented, Oct 31, 2019

@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

0reactions
mcv21commented, Mar 22, 2021

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…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found