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 deploy ceph

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

Share

Shulou(Shulou.com)05/31 Report--

This article mainly shows you "how to deploy ceph", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to deploy ceph" this article.

1. Execute the useradd command on each node to add a user (such as ceph) with the password set to empty

two。 Execute the ssh-keygen command on the mon.0 node, and then execute ssh-copy-id to copy the ssh public key to each node. Modify the sshd config file to enable remote password-less login.

3.ceph-deploy install is executed on each node (essentially the installation Ceph packages,iso is already included, this step can be skipped)

4. Ceph-deploy new adds mon nodes and modifies ceph.conf

5. Ceph-deploy mon create-initial

6. Ceph-deploy osd zap / / format partition

7. Ceph-deploy osd prepare / / add osd

8. Ceph-deploy osd activate (create = prepare then activate)

9. Ceph-deploy admin

Copy ceph.conf and ceph.client.admin.keyring to admin node and Ceph, and later execute commands using ceph CLI instead of specifying monitor address and ceph.client.admin.keyring

So that each node can manage the cluster.

10.ceph-deploy mon create add mon Node

11. Ceph-deploy forgetkeys deletes the local keys

12. Ceph-deploy gatherkeys retrieves the keys from the moniter node to manage the node. (for administering the cluster and bootstrapping new nodes)

13. Ceph-deploy config pull gets ceph.conf from cluster

14.ceph-create-keys-id:

Generate / var/lib/ceph/bootstrap-mds/ceph.keyring

15. The configuration file is as follows:

Under the deploy directory:

Ceph.conf

Ceph.mon.keyring-> Cluster keying

Ceph.bootstrap-mds.keyring

Ceph.bootstrap-osd.keyring-> is used to create osd

Ceph.client.admin.keyring-> create administrator keyring, generate admin users, and add users to keyring. The keyring needs to be added to the ceph.mon,keyring

Releasse.asc

Ceph.log

/ var/lib:

/ var/lib/ceph/bootstrap-osd/ceph.keyring

/ var/lib/ceph/bootstrap-mds/ceph.keyring

/ etc:

/ etc/ceph/ceph.conf

/ etc/ceph/ceph.client.admin.keyring

/ root:

/ root/.cephconfig

These are all the contents of the article "how to deploy ceph". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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