Repository navigation
os/bluestore: asok command to expand block device and Bluestore while OSD is running - #66344
Conversation
|
Nice! |
87efc20 to
f75f5ff
Compare
f75f5ff to
422b331
Compare
|
qa/standalone/osd/osd-bluefs-volume-ops.sh has some tests for offline device expansion, mind adding a few tests for online one? |
|
Can one of the admins verify this patch? |
|
@ifed01 this should be good to review again |
|
jenkins test make check arm64 |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
e0a55a5 to
21c32df
Compare
|
Just a rebase, does not include changes from the comments |
f21af6c to
4b3603a
Compare
|
@ifed01 this should be good for a re-review |
| // from the out-of-space state at DB/shared volume(s) | ||
| // Opening in R/W mode might cause extra space allocation | ||
| // which is effectively a show stopper for volume expansion. | ||
| r = _open_db_and_around(false); |
There was a problem hiding this comment.
Sorry if we discussed that before and I forget the outcome but this looks like a regression.
See the comment above _open_db_and_around() call - the original offline implementation did open DB in read-only mode first to avoid potential allocations from RocksDB which could happen when opening in R/W mode. Those unsatisfied allocations might assert if not enough space is available and this becomes a dead loop - OSD lacks free space and offline expansion is unable to proceed due to that.
To work around that once extra space had been added to allocator (via some trick with before_expansion_bdev_size var) the original expansion proceeded with reopening DB in R/W mode and finalizing all the changes.
No that's lost which is wrong IMO.
There was a problem hiding this comment.
I don't think we discussed it before but this is a regression, that explanation makes sense to me.
changed it back here: cabf5f1
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
2ce2288 to
cabf5f1
Compare
Signed-off-by: Joshua Blanch <[email protected]>
adds support for expanding the device capacity while fs is online Signed-off-by: Joshua Blanch <[email protected]>
expands bluestore and bluefs while OSD is running. Instead of recreating allocators, expands allocator and FM in-place. ceph tell osd.X bluestore bluefs-bdev-expand Signed-off-by: Joshua Blanch <[email protected]>
Signed-off-by: Joshua Blanch <[email protected]>
Signed-off-by: Joshua Blanch <[email protected]>
Refactors device expansion to use a expand_devices() that handles both online (admin socket) and offline (ceph-bluestore-tool) use cases. Signed-off-by: Joshua Blanch <[email protected]>
verify online device expansion via admin socket works correctly Signed-off-by: Joshua Blanch <[email protected]>
…locator::expand Signed-off-by: Joshua Blanch <[email protected]>
Signed-off-by: Joshua Blanch <[email protected]>
Signed-off-by: Joshua Blanch <[email protected]>
Signed-off-by: Joshua Blanch <[email protected]>
…aligned_size) Signed-off-by: Joshua Blanch <[email protected]>
Signed-off-by: Joshua Blanch <[email protected]>
Signed-off-by: Joshua Blanch <[email protected]>
Signed-off-by: Joshua Blanch <[email protected]>
Signed-off-by: Joshua Blanch <[email protected]>
Signed-off-by: Joshua Blanch <[email protected]>
guard bluefs->expand_device for online-only fixes offline expansion by reopening db from r/o to r/w fixes int64_t/uint64_t type mismatch for old_size Signed-off-by: Joshua Blanch <[email protected]>
expanding allocator before opening for offline path fixes to comments and null check Signed-off-by: Joshua Blanch <[email protected]>
761900c to
bd412d1
Compare
|
jenkins test make check |
|
jenkins test api |
|
jenkins test windows |
1 similar comment
|
jenkins test windows |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
Reproduces: https://tracker.ceph.com/issues/75852 Signed-off-by: Igor Fedotov <[email protected]> (cherry picked from commit f88927d) Conflicts: qa/standalone/osd/osd-bluefs-volume-ops.sh Trivial caused by no backport for #66344
implements support for expanding BlueStore block devices while the OSD is running. The implementation expands allocators and freelist managers in-place rather than recreating them.
ceph tell osd.X bluestore bluefs-bdev-expand
https://tracker.ceph.com/issues/68797
I didn't touch any of the tree allocators because I'm assuming I can just update device_size.
There is also a lot of redundant code that I copied from bluestore::expand_devices that I'm working to cleanup.
the way I was testing this locally,
separately I would run this
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.