Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to realize one-click cleanup and one-click deployment in ceph

Shulou Source: shulou.com Published: 2022-05-31 18:40:14 10月02日 Update

This article will explain in detail how to achieve one-click cleaning and one-click deployment of ceph. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

One-click cleanup:

Service ceph-a stop dirs= (/ var/lib/ceph/bootstrap-mds/* / var/lib/ceph/bootstrap-osd/* / var/lib/ceph/mds/*\ / var/lib/ceph/mon/* / var/lib/ceph/tmp/* / var/lib/ceph/osd/* / var/run/ceph/* / var/log/ceph/* / etc/ceph/*) for d in ${dirs [@]} Do rm-rf $d echo $d done donerm-rf / home/deploy/* rm-f / root/.cephdeploy.conf umount / var/lib/ceph/osd/*for disk in b1do / root/mkfs.xfs-d agcount=1-f-I size=2048 / dev/sd$diskdone

One-click deployment:

Cd / home/deployceph-deploy new `hostname`ceph-deploy-- overwrite-conf mon create-initial ceph-deploy disk zap `hostname`: / dev/sdbceph-deploy osd prepare `hostname`: / dev/sdbceph-deploy osd activate `hostname`: / dev/sdb1 this is the end of the article on "how to achieve one-click cleaning and one-click deployment of ceph". I hope the above content can be helpful to you, so that you can learn more knowledge, if you think the article is good. Please share it for more people to see.

Tags: One click article more good practical content article knowledge reference help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Apple Microsoft Shulou Technology Docker