研发过程中,由于资源有限,在需要升级CloudStack 3.0.2到3.0.5或者4.0时,由于没用升级脚本,需要删除CloudStack 3.0.2。
删除过程:
1 查询出cloud的软件包。
yum list |grep cloud
file:///media/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/repodata/repomd.xml
Trying other mirror.
cloud-agent-scripts.x86_64 3.0.5-1.el6 @cloud-temp
cloud-aws-api.x86_64 3.0.5-1.el6 @cloud-temp
cloud-client.x86_64 3.0.5-1.el6 @cloud-temp
cloud-client-ui.x86_64 3.0.5-1.el6 @cloud-temp
cloud-core.x86_64 3.0.5-1.el6 @cloud-temp
cloud-deps.x86_64 3.0.5-1.el6 @cloud-temp
cloud-python.x86_64 3.0.5-1.el6 @cloud-temp
cloud-server.x86_64 3.0.5-1.el6 @cloud-temp
cloud-setup.x86_64 3.0.5-1.el6 @cloud-temp
cloud-utils.x86_64 3.0.5-1.el6 @cloud-temp
jakarta-commons-dbcp.noarch 1.2.1-13.8.el6 @cloud-temp
jakarta-commons-pool.x86_64 1.3-12.7.el6 @cloud-temp
2 yum卸载软件包。
yum erase cloud-client
yum erase cloud-agent-scripts
yum erase jakarta-commons-dbcp
yum erase cloud-deps
yum erase cloud-python.x86_64
yum erase jakarta-commons-pool
3 删除文件夹
rm -rf /mar/cache/cloud
rm -rf /var/log/cloud
rm -rf /var/lib/cloud
rm -rf /etc/cloud/
rm -rf /usr/lib64/cloud
rm -rf /usr/share/cloud
rm -rf /var/cache/yum/x86_64/6Server/cloud-temp
rm -rf /var/lib/yum/repos/x86_64/6Server/cloud-temp
4 删除数据库。
drop database cloud;
drop database cloud_usage;
drop database cloudbridge;