Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to deploy ceph

Shulou Source: shulou.com Published: 2022-05-31 18:40:31 09月21日 Update

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!

Tags: Nodes content commands users articles clusters passwords files learning help management no substance time easy to understand more organization format steps directory Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Information Docker macOS Redmi