how to test hammer rbd objectmap feature ?
Hi,
I would like to known how to enable object map on hammer ?
I found a post hammer commit here:
https://github.com/ceph/ceph/commit/3a7b28d9a2de365d515ea1380ee9e4f867504e10
"rbd: add feature enable/disable support"
- Specifies which RBD format 2 features are to be enabled when creating - an image. The numbers from the desired features below should be added - to compute the parameter value: + Specifies which RBD format 2 feature should be enabled when creating + an image. Multiple features can be enabled by repeating this option + multiple times. The following features are supported:
-.. option:: --image-features features
+.. option:: --image-feature feature
- +1: layering support - +2: striping v2 support - +4: exclusive locking support - +8: object map support + layering: layering support + striping: striping v2 support + exclusive-lock: exclusive locking support + object-map: object map support (requires exclusive-lock)
So, in current hammer release, we can only setup objectmap and other features on rbd volume creation ?
Do this patch allow to change features on the fly ? If yes, is it planned to backport it to hammer soon ?
Quoted 29 lines · Alexandre DERUMIER
Hi,
I would like to known how to enable object map on hammer ?
I found a post hammer commit here:
https://github.com/ceph/ceph/commit/3a7b28d9a2de365d515ea1380ee9e4f867504e10
"rbd: add feature enable/disable support"(quoted diff) +8
-8- Specifies which RBD format 2 features are to be enabled when creating - an image. The numbers from the desired features below should be added - to compute the parameter value: + Specifies which RBD format 2 feature should be enabled when creating + an image. Multiple features can be enabled by repeating this option + multiple times. The following features are supported: -.. option:: --image-features features +.. option:: --image-feature feature - +1: layering support - +2: striping v2 support - +4: exclusive locking support - +8: object map support + layering: layering support + striping: striping v2 support + exclusive-lock: exclusive locking support + object-map: object map support (requires exclusive-lock)
Quoted 1 line
So, in current hammer release, we can only setup objectmap and other features on rbd volume creation ?
Yes, that's right.
Quoted 1 line
Do this patch allow to change features on the fly ?
Yup, just for exclusive-lock and object map (since they don't affect object layout).
Quoted 1 line
If yes, is it planned to backport it to hammer soon ?
Yeah, once we're confident in it in master. The idea behind this feature was to allow using object maps with existing images. There just wasn't time to include it in the base hammer release.
Josh
Quoted 3 lines
Quoted 3 lines
Yeah, once we're confident in it in master. The idea behind this feature was to allow using object maps with existing images. There just wasn't time to include it in the base hammer release.
Ok, thanks Josh !
(I'm planning to implement this feature in proxmox when it'll be released).
----- Mail original -----
De: "Josh Durgin" <[email protected]>
À: "aderumier" <[email protected]>, "ceph-devel" <[email protected]> Envoyé: Mercredi 15 Avril 2015 01:12:38
Objet: Re: how to test hammer rbd objectmap feature ?
Quoted 29 lines · Alexandre DERUMIER
Hi,
I would like to known how to enable object map on hammer ?
I found a post hammer commit here:
https://github.com/ceph/ceph/commit/3a7b28d9a2de365d515ea1380ee9e4f867504e10
"rbd: add feature enable/disable support"- Specifies which RBD format 2 features are to be enabled when creating
- an image. The numbers from the desired features below should be added
- to compute the parameter value:
+ Specifies which RBD format 2 feature should be enabled when creating
+ an image. Multiple features can be enabled by repeating this option
+ multiple times. The following features are supported:-.. option:: --image-features features
+.. option:: --image-feature feature- +1: layering support
- +2: striping v2 support
- +4: exclusive locking support
- +8: object map support
+ layering: layering support
+ striping: striping v2 support
+ exclusive-lock: exclusive locking support
+ object-map: object map support (requires exclusive-lock)
Quoted 1 line
So, in current hammer release, we can only setup objectmap and other features on rbd volume creation ?
Yes, that's right.
Quoted 1 line
Do this patch allow to change features on the fly ?
Yup, just for exclusive-lock and object map (since they don't affect object layout).
Quoted 1 line
If yes, is it planned to backport it to hammer soon ?
Yeah, once we're confident in it in master. The idea behind this feature was to allow using object maps with existing images. There just wasn't time to include it in the base hammer release.
Josh
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html