summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/ceph-deploy/files/create_osd.sh
diff options
context:
space:
mode:
authorshuai chen <chenshuai@huawei.com>2015-12-14 03:46:35 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-12-14 03:46:35 +0000
commit8345054b0c24c7acb3bca5bb41f9f0e5508c468c (patch)
treec342c15c6e4555c96a4b91e366873302007d11e6 /deploy/adapters/ansible/roles/ceph-deploy/files/create_osd.sh
parent819b3f3c67c03508ed94526542d2306300e7ff40 (diff)
parent604f11a9e2a1126a97a1024ec97b468a0d2ee9a0 (diff)
Merge "using /var directory for ceph storage when not deployed on compute node"
Diffstat (limited to 'deploy/adapters/ansible/roles/ceph-deploy/files/create_osd.sh')
-rw-r--r--deploy/adapters/ansible/roles/ceph-deploy/files/create_osd.sh10
1 files changed, 5 insertions, 5 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 d0c631fb..2c9e57f1 100644
--- a/deploy/adapters/ansible/roles/ceph-deploy/files/create_osd.sh
+++ b/deploy/adapters/ansible/roles/ceph-deploy/files/create_osd.sh
@@ -12,20 +12,20 @@ ps -ef |grep vgremove |awk '{print $2}' |xargs kill -9
ps -ef |grep vgcreate |awk '{print $2}' |xargs kill -9
ps -ef |grep lvcreate |awk '{print $2}' |xargs kill -9
-if [ -L "/dev/cinder-volumes/ceph0" ]; then
+if [ -L "/dev/storage-volumes/ceph0" ]; then
echo "remove lv vg"
-lvremove -f /dev/cinder-volumes/ceph0
+lvremove -f /dev/storage-volumes/ceph0
fi
echo "lvcreate"
-lvcreate -l 100%FREE -nceph0 cinder-volumes
+lvcreate -l 100%FREE -nceph0 storage-volumes
echo "mkfs"
-mkfs.xfs -f /dev/cinder-volumes/ceph0
+mkfs.xfs -f /dev/storage-volumes/ceph0
if [ ! -d "/var/local/osd" ]; then
echo "mount osd"
mkdir -p /var/local/osd
-mount /dev/cinder-volumes/ceph0 /var/local/osd
+mount /dev/storage-volumes/ceph0 /var/local/osd
fi