当前位置:网站首页>Yyds dry goods inventory rapid establishment of CEPH cluster
Yyds dry goods inventory rapid establishment of CEPH cluster
2022-06-21 07:39:00 【Feng, crazy】
1.cpeh node
Both virtual machines and physical machines can
ip | name | node |
192.168.11.1 | ceph01 | master |
192.168.11.2 | ceph02 | slave |
192.168.11.3 | ceph03 | slave |
192.168.11.1 ceph01
192.168.11.1 ceph02
192.168.11.3 ceph03
echo "192.168.11.1 ceph01" >> /etc/hosts &&
echo "192.168.11.2 ceph02" >> /etc/hosts &&
echo "192.168.11.3 ceph03" >> /etc/hosts
modify hostname Three machines are modified accordingly
hostnamectl set-hostname ceph01
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
2. Replace yum Source ( All nodes )
yum install wget -y
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
&&
wget -O /etc/yum.repos.d/ceph.repo https://raw.githubusercontent.com/aishangwei/ceph-demo/master/ceph-deploy/ceph.repo
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
3.ssh Password free login settings (master node )
ssh-keygen
ssh-copy-id [email protected]
ssh-copy-id [email protected]
ssh-copy-id [email protected]
// Clear the secret free
ssh-keygen -R ceph01
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
4. install ceph—deploy Follow ceph
yum install ceph-deploy ceph python-setuptools -y ( Master node )
yum install ceph python-setuptools -y (slave node )
ceph -v
- 1.
- 2.
- 3.
Must ensure ceph Versions, , Otherwise, there will be problems in subsequent use ,
The latest version 13.2.10

5. establish mon(master node )
// Each node creates a directory , There is no creation , To exist is to enter
mkdir /etc/ceph
cd /etc/ceph
ceph-deploy new ceph01 ceph02 ceph03
ceph-deploy install ceph01 ceph02 ceph03 // Occurs during installation ca Certificate problem Look at my other article
ceph-deploy mon create-initial
ceph -s
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.

6. establish osd(master node )
First create three disks to mount three machines , The physical machine is similar to the physical machine by creating a disk mount ( My virtual machine )
cd /home/vm/disk // There is no such Directory , Create yourself , Or change the directory
qemu-img create -f raw /home/vm/disk/vm1-d1.img 100G
qemu-img create -f raw /home/vm/disk/vm2-d1.img 100G
qemu-img create -f raw /home/vm/disk/vm3-d1.img 100G
//vm1 As an example of mounting (vm2、vm3 Same as )
// Shut down the virtual machine before mounting
virsh destroy vm1
virsh edit vm1
// Add the configuration
<disk type='file' device='disk'>
<driver name='qemu' type='raw' cache='none'/>
<source file='/home/vm/disk/vm1-d1.img'/>
<target dev='vdb' bus='ide'/>
</disk>
virsh start vm1
// Sign in vm1(master node )
ssh vm1
fdisk -l
// Format disk
mkfs -t xfs /dev/sda
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
ceph-deploy osd create --data /dev/sda ceph01
ceph-deploy osd create --data /dev/sda ceph02
ceph-deploy osd create --data /dev/sda ceph03
ceph-deploy mgr create ceph01 ceph02 ceph03
- 1.
- 2.
- 3.
- 4.
7. see ceph state
ceph -s
ceph health detail
// There is a time problem , Please do time synchronization
// modify ntp Time
yum install ntpdate -y
ntpdate cn.pool.ntp.org
ntpdate ceph01
// restart mon service
systemctl restart ceph-mon.target &&
systemctl restart ceph-osd.target
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.

8. Delete ceph
In case of any problem that cannot be solved during installation, you can choose to reinstall
yum remove ceph-deploy ceph python-setuptools -y ( Master node )
yum remove ceph python-setuptools -y ( All nodes )
rm -rf /etc/ceph
- 1.
- 2.
- 3.
9. Installation visualization interface
ceph config set mgr mgr/dashboard/ssl false
ceph config-key put mgr/dashboard/server_port 8080
ceph mgr services
- 1.
- 2.
- 3.

See me for details dashboard This article
边栏推荐
- Exists and in
- rdkit | 药物分子进行片段分解
- Definition and declaration problems in stm32
- Detailed method and process of APP security penetration test
- RDKit | 合成可行性分数--SA SCORE
- Postman publishing API documentation
- Matlab 3D diagram (unconventional)
- Best practice | how to use Tencent cloud micro build to develop enterprise portal applications from 0 to 1
- Pinia advanced: elegant setup (functional) writing + encapsulation into your enterprise project
- Dynamic programming to solve the problem of looting
猜你喜欢

Firefox users are down, Mozilla foundation is at a crossroads

In order to thoroughly understand the problem of garbled code, I dug up the history of the character set in a rage

mysql中执行存储过程的语句怎么写

How to view the MySQL installation path

Matlab 3D diagram (unconventional)

arduino有关软件卸载,库的卸载问题

16 general measurement of data skewness and kurtosis

卧槽,一行代码就可将网页直接转pdf保存下来(pdfkit)

How do I install the visual studio code editor?

RDKit | 基于Murcko骨架聚类化合物库
随机推荐
CUDA or FPGA for special purpose 3D graphics computations? [closed]
QML控件類型:Drawer
What is the MySQL database zipper table
[UML modeling] (4) sequence diagram of UML modeling
How to use lerna to manage multiple packages
Is the index of nine interview sites of ten companies invalid?
Type de contrôle qml: Drawer
MATLAB快速入门
Web3 in 2022 - define concepts and develop innovative paradigms
Is the account with low commission safe? Is there a shortage of funds
Yyds dry goods inventory junit5 learning 3: assertions class
传输层 TCP首部-序号和确认号
Best practice | how to use Tencent cloud micro build to develop enterprise portal applications from 0 to 1
rdkit | 药物分子进行片段分解
卧槽,一行代码就可将网页直接转pdf保存下来(pdfkit)
Mathematics is a tool for solving problems
[QT] article summarizes the MSVC compilation suite in qtcreator
Software download method
企业级开发使用POI踩坑盘点
SQL advanced challenge (26 - 30)