Project

General

Profile

Feature #3673

ceph-disk-prepare should provide an option for SSD alignment

Added by Faidon Liambotis over 11 years ago. Updated almost 6 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

ceph-disk-prepare takes an option to use an external disk as a journal. It is commonly suggested that the journal is stored on an SSD and is also widely known that performance and resiliency characteristics of SSDs depends on alignment on the erase block. While sgdisk has a --set-alignment argument (defaults to 2048), there is no way to pass that via ceph-disk-prepare.

Note that because of #3255 (prepare triggers an activate), I couldn't even just create the symlink myself; I had to shutdown the OSD, --flush-journal just in case, change the symlink and --mkjournal again, for each OSD. That's hard and risky to automate using configuration management.

History

#1 Updated by Sage Weil about 11 years ago

  • Tracker changed from Bug to Feature

#2 Updated by Loïc Dachary about 9 years ago

  • Description updated (diff)
  • Status changed from New to 12

Additionally, there is currently no way to tell ceph-disk-prepare that you want to use a block device (or even a file) as the journal, as it'll attempt to partition it no matter what. That would be an easy way to workaround the above issue. It'd also be useful in other configurations, e.g. we use the SSDs as the root filesystem too and prepartition them at install time.

Removed from the description because it changed for the best in the past two years.

#3 Updated by Sage Weil almost 6 years ago

  • Status changed from 12 to Rejected

Also available in: Atom PDF