Project

General

Profile

Actions

Bug #75873

closed
UA

[Atollon] --bdev-enable-discard false not applied to logical volume backed OSD mkfs path

Bug #75873: [Atollon] --bdev-enable-discard false not applied to logical volume backed OSD mkfs path

Added by Ujjawal Anand 8 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.0.0-369-gfe065242ca
Released In:
v21.2.0~836
Upkeep Timestamp:
2026-10-24T02:02:58+00:00

Description

Description

Description of problem - Provide a detailed description of the issue encountered, including logs/command-output snippets and screenshots if the issue:

The NVMe preformat support introduced in PR: Add NVMe preformat support to skip redundant mkfs discard by ujjawal-ibm · Pull Request #66646 · ceph/ceph

is intended to skip redundant discard operations during ceph-osd --mkfs by adding the flag: --bdev-enable-discard false. This behavior is correctly applied for raw OSD deployments, where the flag is present in the ceph-osd --mkfs command. However, for logical volume (LVM) backed OSD deployments, the flag is not being added

ceph osd --mkfs command for Logical volume backed OSD deployment:

[ceph_volume.process][INFO ] Running command: /usr/bin/ceph-osd --cluster ceph --osd-objectstore bluestore --mkfs -i 0 --monmap /var/lib/ceph/osd/ceph-0/activate.monmap --keyfile - --osdspec-affinity default --osd-data /var/lib/ceph/osd/ceph-0/ --osd-uuid ee1201b3-e8a9-404e-8b2e-9cceba81b553 --setuser ceph --setgroup ceph

ceph osd --mkfs command for raw OSD deployment:

[ceph_volume.process][INFO ] Running command: /usr/bin/ceph-osd --cluster ceph --osd-objectstore bluestore --mkfs -i 2 --monmap /var/lib/ceph/osd/ceph-2/activate.monmap --bdev-enable-discard false --keyfile - --osdspec-affinity default --osd-data /var/lib/ceph/osd/ceph-2/ --osd-uuid 06a8f6fb-c8d0-4ef4-a369-b23993d4ae58 --setuser ceph --setgroup ceph

Steps to Reproduce:

Deploy Ceph Cluster on Atollon machines.

Set the below configurations

ceph config set osd bluestore_discard_on_mkfs false

ceph config set osd bdev_enable_discard true

ceph config set osd bdev_async_discard_threads 2

ceph config set osd bluestore_hybrid_alloc_mem_cap 1024M

ceph config set osd bluestore_min_alloc_size 16384

Deploy OSDs using ceph orch daemon add osd <node>:<device>.

The commands default to logical volume backed OSD deployment.

Observe the INFO level log line in ceph-volume.log

Observe the flag --bdev-enable-discard false is not being added to the ceph osd --mkfs command for logical volume backed OSD deployment.

Actual results:

The flag --bdev-enable-discard false is not being added to the ceph osd --mkfs command for logical volume backed OSD deployment.

Expected results:

The flag --bdev-enable-discard false should be added to the ceph osd --mkfs command for logical volume backed OSD deployment and Raw OSD deployment.


Related issues 1 (0 open — 1 closed)

Copied to ceph-volume - Backport #75946: tentacle: [Atollon] --bdev-enable-discard false not applied to logical volume backed OSD mkfs pathResolvedGuillaume Abrioux

Actions

GA Updated by Guillaume Abrioux 8 months ago Actions #1

  • Status changed from New to Fix Under Review
  • Backport set to tentacle

GA Updated by Guillaume Abrioux 8 months ago Actions #2

  • Status changed from Fix Under Review to Pending Backport

GA Updated by Guillaume Abrioux 8 months ago Actions #3

  • Copied to Backport #75946: tentacle: [Atollon] --bdev-enable-discard false not applied to logical volume backed OSD mkfs path added

GA Updated by Guillaume Abrioux 8 months ago Actions #4

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 8 months ago Actions #5

  • Merge Commit set to fe065242ca8c514f00452af1530714796c2e1dea
  • Fixed In set to v21.0.0-369-gfe065242ca
  • Upkeep Timestamp set to 2026-04-09T14:36:38+00:00

UB Updated by Upkeep Bot 5 months ago Actions #6

  • Status changed from Pending Backport to Resolved
  • Upkeep Timestamp changed from 2026-04-09T14:36:38+00:00 to 2026-07-10T13:28:06+00:00

UB Updated by Upkeep Bot 3 months ago Actions #7

  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2026-07-10T13:28:06+00:00 to 2026-08-28T01:41:52+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #8

  • Released In set to v21.2.0~836
  • Upkeep Timestamp changed from 2026-08-28T01:41:52+00:00 to 2026-10-24T02:02:58+00:00
Actions

Also available in: PDF Atom