On 04/22/2015 03:38 PM, Wido den Hollander wrote: > On 04/22/2015 03:20 PM, Florian Haas wrote: >> I'm not entirely sure, though, why virStorageBackendRBDCreateImage() >> enables striping unconditionally; could you explain the reasoning >> behind that? >> > > When working on this with Josh some time ago we had to come up with a > way to create RBD format 2 images before the RBD default format option > was available. > > The only way to do it was to set the stripe size and count specifically > and check in libvirt which version librbd was. > > This code could be changed again if we want by doing: > > rados_conf_set(ptr->cluster, "rbd_default_format", "2"); > rbd_create(.....); > > Any recent librbd library would create format 2 images then. Since there > is no way to feed any metadata to libvirt when creating an image this is > the only way to go. OK, thanks. I guess I got confused by the fact that when I do "rbd create --image-format 2", the image is automatically configured to be layered, but not automatically striped. Cheers, Florian _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com