1、架构,角色如下:
主机名 | Pubilic_Network | Cluster_Network | Role |
---|---|---|---|
Debian10-01 | 10.201.70.190/24 | 172.16.70.190/24 | KVM、Container、Ceph-Mon、Ceph-Mgr、Ceph-OSD、Ceph-Metadata |
Debian10-02 | 10.201.70.191/24 | 172.16.70.191/24 | KVM、Container、Ceph-Mon、Ceph-Mgr、Ceph-OSD、Ceph-Metadata |
Debian10-03 | 10.201.70.192/24 | 172.16.70.192/24 | KVM、Container、Ceph-Mon、Ceph-Mgr、Ceph-OSD、Ceph-Metadata |
2、Debian10最小化安装、修改软件安装源如下
root@debian10-01:~# cat /etc/apt/sources.list
deb http://mirrors.163.com/debian/ buster main non-free contrib
deb http://mirrors.163.com/debian/ buster-updates main non-free contrib
deb http://mirrors.163.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ buster main non-free contrib
deb-src http://mirrors.163.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ buster-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ buster/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ buster/updates main non-free contrib
3、添加proxmox源,Ceph源
root@debian10-01:~# cat /etc/apt/sources.list.d/pve.list
# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://mirrors.ustc.edu.cn/proxmox/debian/pve buster pve-no-subscription
root@debian10-01:~# cat /etc/apt/sources.list.d/ceph.list
deb http://mirrors.ustc.edu.cn/proxmox/debian/ceph-octopus buster main
4、导入proxmox软件包公钥
wget http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg
5、更新并安装
apt update && apt upgrade && apt install proxmox-ve -y
6、安装ceph
apt install ceph ceph-mgr-dashboard cephadm -y
7、访问https://10.201.70.191:8006,创建集群,加入节点;
8、创建Ceph集群;
9、创建虚拟机;
10、创建MDS
11、创建备份任务
12、创建容器