在ubuntu环境部署ceph集群

本文档将指导您在Ubuntu 20.04系统上安装和配置Ceph v15 (Octopus)存储集群。Ceph是一个开源的统一存储系统,提供对象、块和文件存储服务。
摘要由CSDN通过智能技术生成
ceph-mon1
ceph-mon2
ceph-mon3

ceph-osd1
ceph-osd2
ceph-osd3

(1)edit /etc/hosts file

## ceph nodes informations

192.168.12.100 	ceph-mon1
192.168.12.101 	ceph-mon2
192.168.12.102 	ceph-mon3
192.168.12.103 	ceph-osd1
192.168.12.104 	ceph-osd2
192.168.12.105 	ceph-osd3

(2) update and restart OS
sudo apt update && sudo apt -y upgrade 
sudo reboot

(3) Install basic utils and Ansible
sudo apt -y install software-properties-common git curl bash-completion ansible


(4) generate ssh-key 
ssh-keygen -t rsa -b 4096 -N '' -f ~/.ssh/id_rsa


(5) install cephadm
curl --silent --remote-name --location https://github.com/ceph/ceph/raw/octopus/src/cephadm/cephadm
chmod +x cephadm
sudo mv cephadm /usr/local/bin

(6) update all ceph nodes and push the ssh public key
cd ~/
vim prepare-ceph-nodes.yaml
---
- name: Prepare ceph nodes
  hosts: ceph-nodes
  become: yes
  vars:
    ceph_admin_user: cephadmin
  tasks:
   - name: Set timezone
     timezone: 
	name: Asian/Chin
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值