summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-04-08 15:17:13 (GMT)
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-04-08 15:17:13 (GMT)
commit511aac825de3d9a301de5bdf8d431eb0bd2e6682 (patch)
tree5bb9eb519e8917edb73d6401bf4dce54fd7f3693
parent9297517d2793e32374297471ef53f5f0d5966f6c (diff)
downloaddefinitions-baserock/franred/fix-cinder-configuration-configuring-scsi.tar.gz
Remove create partition before creating the lvm volumesbaserock/franred/fix-cinder-configuration-configuring-scsi
-rw-r--r--openstack/usr/share/openstack/openstack-cinder-setup8
1 files changed, 2 insertions, 6 deletions
diff --git a/openstack/usr/share/openstack/openstack-cinder-setup b/openstack/usr/share/openstack/openstack-cinder-setup
index 2c13394..e2a6996 100644
--- a/openstack/usr/share/openstack/openstack-cinder-setup
+++ b/openstack/usr/share/openstack/openstack-cinder-setup
@@ -104,15 +104,11 @@ fi
# Wipe the disk
wipefs -fa $device
-# Partition disk
-echo -e "n\np\n1\n\n\nw\n" | fdisk $device
-partition="$device"1
-
# Create a physical volume
-pvcreate -ff -y $partition
+pvcreate -ff -y $device
# Create a volume group named "cinder-volumes"
-vgcreate -y cinder-volumes $partition
+vgcreate -y cinder-volumes $device
# Remove the one-shot setup service
rm /etc/systemd/system/multi-user.target.wants/openstack-cinder-setup.service