码迷,mamicode.com
首页 > 其他好文 > 详细

Openstack卸载

时间:2014-10-21 17:57:47      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:des   http   io   os   ar   java   for   sp   on   

Warning! Dangerous step! Destroys VMs

for x in $(virsh list –all | grep instance- | awk ‘{print $2}‘) ; do

virsh destroy $x ;
virsh undefine $x ;

done ;

Warning! Dangerous step! Removes lots of packages, including many

which may be unrelated to RDO.

yum remove -y nrpe “nagios” puppet ntp ntp-perl ntpdate “openstack” \
nova” “keystone” “glance” “cinder” “swift” \
mysql mysql-server httpd “memcache” scsi-target-utils \
iscsi-initiator-utils perl-DBI perl-DBD-MySQL ;

ps -ef | grep -i repli | grep swift | awk ‘{print $2}‘ | xargs kill ;

Warning! Dangerous step! Deletes local application data

rm -rf /etc/nagios /etc/yum.repos.d/packstack_ /root/.my.cnf \
/var/lib/mysql/ /var/lib/glance /var/lib/nova /etc/nova /etc/swift \
/srv/node/device
/ /var/lib/cinder/ /etc/rsync.d/frag \
/var/cache/swift /var/log/keystone ;

umount /srv/node/device ;
killall -9 dnsmasq tgtd httpd ;
setenforce 1 ;
vgremove -f cinder-volumes ;
losetup -a | sed -e ‘s/:.
//g‘ | xargs losetup -d ;
find /etc/pki/tls -name “ssl_ps” | xargs rm -rf ;
for x in $(df | grep “/lib/” | sed -e ‘s/.
//g‘) ; do

umount $x ;

done

Openstack卸载

标签:des   http   io   os   ar   java   for   sp   on   

原文地址:http://my.oschina.net/u/216115/blog/335836

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!