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

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

Share

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

This article mainly introduces how to use ceph-deploy to deploy ceph commands, the article is very detailed, has a certain reference value, interested friends must read it!

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

This command actually generates only the ceph.conf and ceph.mon.keyring files.

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 / etc/ceph, and you can use ceph CLI instead of specifying monitor address and ceph.client.admin.keyring when executing commands later

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 commands using ceph-deploy". Thank you for reading! Hope to share the content to help you, more related 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