JIRA: COMPASS-90
- force delete /ceph/images/ceph-volumes.img
- prevent from kill create_osd.sh itself
Change-Id: I1e525bdf66809f93a4a1d5eff053d875145f99c4
Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
mkdir -p /ceph/images
fi
-rm /ceph/images/ceph-volumes.img
+rm -f /ceph/images/ceph-volumes.img
if [ ! -f "/ceph/images/ceph-volumes.img" ]; then
echo "create ceph-volumes.img"
fi
#safe check
-ps -ef |grep create_osd.sh |awk '{print $2}' |xargs kill -9
ps -ef |grep lvremove |awk '{print $2}' |xargs kill -9
ps -ef |grep vgremove |awk '{print $2}' |xargs kill -9
ps -ef |grep vgcreate |awk '{print $2}' |xargs kill -9