Project

General

Profile

Actions

Feature #5135

closed

librbd should create format 2 images by default

Added by Wido den Hollander almost 11 years ago. Updated almost 11 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Community (dev)
Tags:
rbd,qemu,format
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

The current way of creating RBD format 2 images is calling either rbd_create2 or rbd_create3.

Older binaries like qemu-img, qemu, libvirtd, etc all call rbd_create and thus still create RBD images with format 1.

Josh suggested that we might change the default behavior of librbd: http://thread.gmane.org/gmane.comp.file-systems.ceph.devel/15048/focus=15064

Adding these configuration options:

rbd_create_default_format UINT default 1

or we could add other options to adjust the rest of the image creation
parameters i.e.:

rbd_create_default_object_order INT default 22

rbd_create_default_features UINT64 default 1 # 1 for layering, 3 for layering+stripingv2

rbd_create_default_stripe_count UINT64 default 1 # changing requires stripingv2 feature

rbd_create_default_stripe_unit UINT64 default 4194304 # changing to non-object size requires stripingv2 feature

This is somewhat related to: #4897


Related issues 1 (0 open1 closed)

Is duplicate of rbd - Feature #5067: librbd: configuration options to override default image creation parametersResolvedSage Weil05/14/2013

Actions
Actions #1

Updated by Josh Durgin almost 11 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF