In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to quickly deploy ceph clusters. I think it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it.
The editor will demonstrate how to deploy a ceph distributed storage cluster on centos step by step. The goal is to create a two-node cluster on ceph-node1 and ceph-node2.
Environment hardware environment hostname IP function remarks ceph-node1192.168.1.120deploy,mon*1,osd*3ceph-node2192.168.1.121deploy,mon*1,osd*3ceph-node3192.168.1.122 scale-out node cloud192.168.1.102openstack ocatatest192.168.1.123Openstack test environment, Rally,Sharker software environment
Operating system: Centos 7.3
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 root@ceph-node2
Ssh-copy-id root@cloud
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-node1
Install the CEO binary package
Ceph-deploy install-no-adjust-repos ceph-node1
Modify ceph configuration file
[global]
Fsid = 7bac6963-0e1d-4cea-9e2e-f02bbae96ba7
Mon_initial_members = ceph-node1
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-node1
Ceph-deploy disk list ceph-node1 (list disk)
Ceph-deploy disk zap ceph-node1:sdb ceph-node1:sdc ceph-node1:sdd
Ceph-deploy osd create ceph-node1:sdb ceph-node1:sdc ceph-node1:sdd
With the above steps, a ceph for all in one is successfully deployed. Check the status of the ceph.
Ceph-s
The above is how to quickly deploy ceph clusters, and the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.