[cephadm]How to manage non collocated osd with pre-defined lvm using cephadm?

Solution Verified - Updated -

Issue

  • How to manage non collocated osd with pre-defined lvm using cephadm?
  • How to replace non collocated osd with pre-created lvm?
  • How to replace non collocated osd with custom lvm name?
  • Getting ZeroDivisionError: integer division or modulo by zero error while mentioning db-devices with ceph-volume lvm command.
  • Getting the below error while creating the non collocated osd for with pre-created lvm:
# ceph-volume lvm batch --no-auto /dev/node1_hdd_vg1/hdd_lv1 --db-devices /dev/node1_ssd_vg1/ssd_lv1 --wal-devices /dev/node1_nvme_vg1/nvme_lv1 --yes --no-systemd
--> passed data devices: 0 physical, 1 LVM
--> relative data size: 1.0
--> passed block_db devices: 0 physical, 1 LVM
-->  ZeroDivisionError: integer division or modulo by zero

Environment

  • Red Hat Ceph Storage 5.0.
  • cephadm
  • ceph-volume
  • pre-created lvm / advanced lvm.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content