Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to delete scripts in bulk by osd

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how osd deletes scripts in batches. It 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.

Ceph osd batch deletion, note that the deletion is the osd currently in use by the current node, data deletion has risks, so the last step does not format the disk, leaving you with a dose of regret medicine.

#!/ bin/bashosd_list=`mount|grep osd|awk '{print $3}'|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-$vardone Thank you for reading this article carefully, I hope Xiaobian shared "osd how to delete scripts in batches" This article is helpful to everyone, but also hope that everyone will support, pay attention to industry information channels, more relevant knowledge 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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report