In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article is to share with you about how Ceph implements IP replacement and cluster startup. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Modify the ceph.conf file
Change host to modified IP
Override the synchronize cepf.conf file command
Ceph-deploy-overwrite-conf config push ceph-1 ceph-2 ceph-3
Generate the map of mon
Monmaptool-- create-- generate-c / etc/ceph/ceph.conf / etc/ceph/monmap
View the content in map monmaptool-- print monmap
Note: the name is not specified in the mon.
Monmaptool-- create-- generate-c / etc/ceph/ceph.conf / etc/ceph/monmap
The command is the content of the generated file. The default path of mon is in the / var/lib/ceph/mon/ directory, and the default name is
Ceph- {nodeName}
If the cluster is already crash, execute
Monmaptool-- create-- generate-c / etc/ceph/ceph.conf / etc/ceph/monmap
The name of the generated mon is incorrect. This name needs to be modified, like the following:
4. Delete the original mon node
Monmaptool-- rm noname-a-- rm noname-b-- rm noname-c monmapmonmaptool-- add dstore_002 10.112.101.141Rose 6789-- add dstore_003 10.112.101.143Rose 6789-- add dstore_004 10.112.101.142Rose 6789 monmap
# Command monmaptool for viewing monmap content-- print map
5. Copy monmap to other mon nodes and execute
Ceph-mon-I {nodename}-- inject-monmap monmap
6. Restart each mon node
Systemctl restart ceph-mon@ {nodename} .service Thank you for your reading! This is the end of the article on "how to implement IP replacement in Ceph, cluster startup". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
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.