Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to deploy ceph commands using ceph-deploy

Shulou Source: shulou.com Published: 2022-06-01 02:55:22 10月05日 Update

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!

Tags: Nodes commands files users clusters content passwords articles generation management no use value interest substance guys buddies that is time more format Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Microsoft NVidia MariaDB Apple