|
...
|
...
|
@@ -276,6 +276,19 @@ function configure_cinder() {
|
|
276
|
276
|
echo "$CINDER_GLUSTERFS_SHARES" > $CINDER_CONF_DIR/glusterfs_shares
|
|
277
|
277
|
fi
|
|
278
|
278
|
fi
|
|
|
279
|
+
|
|
|
280
|
+ if [[ is_fedora && $DISTRO =~ (rhel6) ]]; then
|
|
|
281
|
+ # Cinder clones are slightly larger due to some extra
|
|
|
282
|
+ # metadata. RHEL6 will not allow auto-extending of LV's
|
|
|
283
|
+ # without this, leading to clones giving hard-to-track disk
|
|
|
284
|
+ # I/O errors.
|
|
|
285
|
+ # see https://bugzilla.redhat.com/show_bug.cgi?id=975052
|
|
|
286
|
+ sudo sed -i~ \
|
|
|
287
|
+ -e 's/snapshot_autoextend_threshold =.*/snapshot_autoextend_threshold = 80/' \
|
|
|
288
|
+ -e 's/snapshot_autoextend_percent =.*/snapshot_autoextend_percent = 20/' \
|
|
|
289
|
+ /etc/lvm/lvm.conf
|
|
|
290
|
+ fi
|
|
|
291
|
+
|
|
279
|
292
|
}
|
|
280
|
293
|
|
|
281
|
294
|
# create_cinder_accounts() - Set up common required cinder accounts
|