summaryrefslogtreecommitdiff
path: root/openstack
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2014-11-28 18:33:56 +0000
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-01-22 12:46:26 +0000
commit1db8200138ed6cebd95d05967ba4f8b4da3d0f77 (patch)
treeb293b268446b99c604661e86d62d501a313d2865 /openstack
parenta965281ef1e7c0d7411caa82a08473275e5f6601 (diff)
downloaddefinitions-1db8200138ed6cebd95d05967ba4f8b4da3d0f77.tar.gz
Enable lvm2 systemd services in cinder-setup script
Diffstat (limited to 'openstack')
-rw-r--r--openstack/usr/share/openstack/openstack-cinder-setup12
1 files changed, 12 insertions, 0 deletions
diff --git a/openstack/usr/share/openstack/openstack-cinder-setup b/openstack/usr/share/openstack/openstack-cinder-setup
index bd21a6cc..f97853f6 100644
--- a/openstack/usr/share/openstack/openstack-cinder-setup
+++ b/openstack/usr/share/openstack/openstack-cinder-setup
@@ -95,6 +95,11 @@ pvcreate -ff -y $device
# Create a volume group named "cinder-volumes"
vgcreate -y cinder-volumes $device
+# Active the cinder-volumes volume group
+# Note: on reboot the lvm.service will do this for us.
+systemctl start lvm2-activation-early_systemd
+systemctl start lvm2-activation_systemd
+
# Remove the one-shot setup service
rm /etc/systemd/system/multi-user.target.wants/openstack-cinder-setup.service
@@ -117,4 +122,11 @@ ln -s "/etc/systemd/system/openstack-cinder-volume.service" \
ln -s "/etc/systemd/system/openstack-cinder-backup.service" \
"/etc/systemd/system/multi-user.target.wants/openstack-cinder-backup.service"
+# Link lvm2 services
+ln -s "/usr/lib/systemd/system/lvm2-activation-early_systemd.service" \
+ "/etc/systemd/system/multi-user.target.wants/lvm2-activation-early_systemd.service"
+
+ln -s "/usr/lib/systemd/system/lvm2-activation_systemd.service" \
+ "/etc/systemd/system/multi-user.target.wants/lvm2-activation_systemd.service"
+
exit 0