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

2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article shows you how to deploy ceph-deploy, the content is concise and easy to understand, can definitely brighten your eyes, through the detailed introduction of this article, I hope you can get something.

Environment description: ceph2 and ceph3 servers (where ceph2 has installed ceph-deploy)

One S3500 SSD and two Hitachi 1T HDD disks on each server

Integration of front and back end and management network: 128.128.128.9 and 128.128.10, respectively

1. Add: in / etc/hosts:

128.128.128.9 ceph2128.128.128.10 ceph3

2. Pass

Ssh-keygen and ssh-copy-id

Make the nodes secret-free

3. Create a new directory in ceph2 and keep the configuration file

Mkdir / root/myclustercd / root/mycluster

4. Install ceph

Ceph-deploy install ceph2 ceph3

5. Install mon

Ceph-deploy new ceph2

6. Modify ceph.conf configuration file

Public_network = 128.128.128.0/24cluster_network = 128.128.128.0/24enable experimental unrecoverable data corrupting features = bluestore rocksdb debug_white_box_testing_ec_overwritesbluestore block db size = 10737418240 # 10Gbluestore block wal size = 10737418240 # 10Gosd objectstore = bluestoremon_allow_pool_delete = truerbd_cache = false [osd] bluestore = true

7. Initialize mon

Ceph-deploy mon create-initial

If you need to add mon

Ceph-deploy add mon ceph3

8. Format the partition

Ceph-deploy zap {ceph-node}: {dest-disk} for example: ceph-deploy zap ceph2:/dev/sdb

9. Copy ceph.bootstrap-osd.keyring to / var/lib/ceph/bootstrap-osd/ and command ceph.keyring

Cp / home/mycluster/ceph.bootstrap-osd.keyring / var/lib/ceph/bootstrap-osd/ceph.keyring or scp / home/mycluster/ceph.bootstrap-osd.keyring ceph3:/var/lib/ceph/bootstrap-osd/ceph.keyring

10. Add osd

Ceph-disk prepare-bluestore-block.db / dev/sdb-block.wal / dev/sdb / dev/sdc where: / dev/sdb is SSD disk, / dev/sdc is HDD disk. The above is how to deploy ceph-deploy. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are 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