Bug #75873
closed[Atollon] --bdev-enable-discard false not applied to logical volume backed OSD mkfs path
0%
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.
GA Updated by Guillaume Abrioux 8 months ago
- Status changed from New to Fix Under Review
- Backport set to tentacle
GA Updated by Guillaume Abrioux 8 months ago
- Status changed from Fix Under Review to Pending Backport
GA Updated by Guillaume Abrioux 8 months ago
- 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
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot 8 months ago
- 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
- 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
- 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
- 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