Actions
Bug #8821
closedrbd: ceph.conf "rbd default format" woes
% Done:
0%
Source:
Community (user)
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
`/usr/bin/rbd` have few errors with "rbd default format".
With the following in "/etc/ceph/ceph.conf":
[client] rbd default format = 2
it is impossible to create a new image with format=1 because "--image-format" is silently ignored:
# rbd create rbd/temporary1 --size 20000 --image-format=1 # rbd info rbd/temporary1 rbd image 'temporary1': size 20000 MB in 5000 objects order 22 (4096 kB objects) block_name_prefix: rbd_data.63cc412ae8944a format: 2 features: layering, striping stripe unit: 4096 kB stripe count: 1
In addition to this an image was created with striping which was not explicitly used in "rbd create" command.
Compare it to the following, without "rbd default format" in "ceph.conf":
# rbd create rbd/temporary1 --size 20000 --image-format=2 # rbd info rbd/temporary1 rbd image 'temporary1': size 20000 MB in 5000 objects order 22 (4096 kB objects) block_name_prefix: rbd_data.63c3ed2ae8944a format: 2 features: layering
"rbd default format" should not enforce striping unless given explicitly.
It would be best to use the same defaults for image format 2 disregarding of where format was chosen (in command line or in ceph.conf file).
Updated by Josh Durgin almost 10 years ago
- Status changed from New to In Progress
- Assignee set to Josh Durgin
Updated by Dmitry Smirnov almost 10 years ago
Now works as expected; thanks, Josh.
Updated by Josh Durgin almost 10 years ago
- Status changed from In Progress to Fix Under Review
Updated by Sage Weil almost 10 years ago
- Status changed from Fix Under Review to Resolved
Actions