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

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

Share

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

This article mainly introduces "how to deploy ceph clusters quickly". In daily operation, I believe many people have doubts about how to deploy ceph clusters quickly. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "how to deploy ceph clusters quickly". Next, please follow the editor to study!

Environment ceph-1192.168.1.120deploy,mon*1,osd*3ceph-2192.168.1.121deploy,mon*1,osd*3 hardware environment operating system: Centos 7.3software environment

Openstack:Ocata

Ceph:Jewel

Install Ceph

1: prepare repo

Yum clean all

Rm-rf / etc/yum.repos.d/*.repo

Wget-O / etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

Wget-O / etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

Sed-I'/ aliyuncs/d' / etc/yum.repos.d/CentOS-Base.repo

Sed-I'/ aliyuncs/d' / etc/yum.repos.d/epel.repo

Sed-I's Universe release evergreen 7-pound g'/ etc/yum.repos.d/CentOS-Base.repo

Vi / etc/yum.repos.d/ceph.repo

[ceph]

Name=ceph

Baseurl= http://mirrors.163.com/ceph/rpm-jewel/el7/x86_64/

Gpgcheck=0

[ceph-noarch]

Name=cephnoarch

Baseurl= http://mirrors.163.com/ceph/rpm-jewel/el7/noarch/

Gpgcheck=0

Yum update-y

2: operating system configuration

Enable Ceph monitor OSD port

Disable Selinux

Setenforce 0

Install ntp

Yum install ntp ntpdate-y

Systemctl restart ntpdate.service

Systemctl restart ntpd.service

Systemctl enable ntpd.service ntpdate.service

Password-less access configuration

Configure password-free access between deploy nodes and other ceph nodes

Sudo su-

Ssh-keygen

Ssh-copy-id ceph-1

Ssh-copy-id ceph-2

3: deploy Ceph cluster

Install ceph-deploy

Yum install ceph-deploy-y

Using Ceph-deploy to create Ceph Cluster

Mkdir / etc/ceph

Cd / etc/ceph

Ceph-deploy new ceph-1

Install the CEO binary package

Ceph-deploy install-no-adjust-repos ceph-1

Modify ceph configuration file

[global]

Fsid = 7bac6963-0e1d-4cea-9e2e-f02bbae96ba7

Mon_initial_members = ceph-1

Mon_host = 192.168.1.101

Auth_cluster_required = cephx

Auth_service_required = cephx

Auth_client_required = cephx

Public network = 192.168.1.0 Compact 24

Create the first ceph monitor on ceph-node1

Ceph-deploy mon create-initial

Create an OSD on ceph-1

Ceph-deploy disk list ceph-1 (list disk)

Ceph-deploy disk zap ceph-1:sdb ceph-n1:sdc ceph-1:sdd

Ceph-deploy osd create ceph-1:sdb ceph-node1:sdc ceph-1:sdd

Summary

With the above steps, a ceph for all in one is successfully deployed. Check the status of the ceph.

Ceph-s

At this point, the study on "how to quickly deploy ceph clusters" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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