aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/ceph-deploy/files
diff options
context:
space:
mode:
authorgrakiss <grakiss.wanglei@huawei.com>2015-09-21 09:48:33 +0800
committergrakiss <grakiss.wanglei@huawei.com>2015-09-24 15:43:56 +0800
commit47cfbaa9070f5a12272627ff3648e28388f279f5 (patch)
tree407b03c64a1255f57f1c3eb18043ce3d63201236 /deploy/adapters/ansible/roles/ceph-deploy/files
parentd16d74fbbe738f0d15366dedf9f5e042505ee1e8 (diff)
support ceph deploy for centos
JIRA: COMPASS-60 Change-Id: I9bcc5009b7d9b2f3cc48f1f1a448a1f07af65494 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/ceph-deploy/files')
-rw-r--r--deploy/adapters/ansible/roles/ceph-deploy/files/create_osd.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/deploy/adapters/ansible/roles/ceph-deploy/files/create_osd.sh b/deploy/adapters/ansible/roles/ceph-deploy/files/create_osd.sh
index 2535f364..7a6cc1e2 100644
--- a/deploy/adapters/ansible/roles/ceph-deploy/files/create_osd.sh
+++ b/deploy/adapters/ansible/roles/ceph-deploy/files/create_osd.sh
@@ -19,15 +19,15 @@ fi
if [ -L "/dev/ceph-volumes/ceph0" ]; then
echo "remove lv vg"
-lvremove /dev/ceph-volumes/ceph0
-vgremove ceph-volumes
+lvremove -f /dev/ceph-volumes/ceph0
+vgremove -f ceph-volumes
rm -r /dev/ceph-volumes
fi
losetup -d /dev/loop0
echo "vgcreate"
-vgcreate ceph-volumes $(sudo losetup --show -f /ceph/images/ceph-volumes.img)
+vgcreate -y ceph-volumes $(sudo losetup --show -f /ceph/images/ceph-volumes.img)
echo "lvcreate"
sudo lvcreate -L9G -nceph0 ceph-volumes
echo "mkfs"