In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces how ceph realizes environmental clean-up, which has certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let Xiaobian take you to understand it together.
Automates environment cleanup of a single node's ceph mon and osd, suitable for multiple deployments of test environments without wanting to reinstall the operating system. Tested by ubuntu 12.04.x
#!/ bin/bash service ceph-osd-all stop service ceph-mon-all stop rm -fr /var/lib/ceph/bootstrap-mds/* rm -fr /var/lib/ceph/bootstrap-osd/* rm -fr /var/lib/ceph/mds/* rm -fr /var/lib/ceph/mon/* rm -fr /var/lib/ceph/tmp/* #osd_list=`mount|grep osd|awk '{print $3}'|awk -F'-' '{print $2}'` osd_list=`ls /var/lib/ceph/osd|awk -F- '{print $2}'` for var in $osd_list; do echo "ceph osd out $var" ceph osd out $var echo "service ceph-osd stop id=$var" service ceph-osd stop id=$var echo "ceph osd crush remove osd.$ var" ceph osd crush remove osd.$ var echo "ceph auth del osd.$ var" ceph auth del osd.$ var echo "ceph osd rm $var" ceph osd rm $var echo "umount /var/lib/ceph/osd/ceph-$var" umount /var/lib/ceph/osd/ceph-$var echo "rm dir /var/lib/ceph/osd/ceph-$var" rm -rf /var/lib/ceph/osd/ceph-$var done disk_list=`mount |grep osd|awk '{print $1}'` for var in $disk_list; do sgdisk --zap-all -- $var sgdisk --clear --mbrtogpt -- $var partprobe $var done rm /etc/ceph/ceph* Thank you for reading this article carefully. I hope that the article "how to clean up the environment" shared by Xiaobian will be helpful to everyone. At the same time, I hope that everyone will support it a lot. Pay attention to the industry information channel. More relevant knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.