JIRA: COMPASS-84
- prevent from commands hanging during last deploy
Change-Id: I2553f91ab6948dfb1841768b2f40533fe09fc45e
Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
sgdisk -g --clear /ceph/images/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
+ps -ef |grep lvcreate |awk '{print $2}' |xargs kill -9
+
if [ -L "/dev/ceph-volumes/ceph0" ]; then
echo "remove lv vg"
lvremove -f /dev/ceph-volumes/ceph0