diff --git a/src/datastore_mad/remotes/ceph/cp b/src/datastore_mad/remotes/ceph/cp index ee4eb13565..8c4e6faae3 100755 --- a/src/datastore_mad/remotes/ceph/cp +++ b/src/datastore_mad/remotes/ceph/cp @@ -105,8 +105,14 @@ if [ -n "$CEPH_CONF" ]; then RBD="$RBD --conf ${CEPH_CONF}" fi +# EC parameters (--data-pool) are only accepted in some `rbd` commands. It's not officially +# documented but at least the following ones require it: +# - create +# - import +RBDEC="$RBD" + if [ -n "$EC_POOL_NAME" ]; then - RBD="$RBD --data-pool ${EC_POOL_NAME}" + RBDEC="$RBDEC --data-pool ${EC_POOL_NAME}" fi set_up_datastore "$BASE_PATH" "$RESTRICTED_DIRS" "$SAFE_DIRS" @@ -158,7 +164,7 @@ REGISTER_CMD=$(cat <