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最小化安装、修改软件安装源如下

    1. root@debian10-01:~# cat /etc/apt/sources.list
    2. deb http://mirrors.163.com/debian/ buster main non-free contrib
    3. deb http://mirrors.163.com/debian/ buster-updates main non-free contrib
    4. deb http://mirrors.163.com/debian/ buster-backports main non-free contrib
    5. deb-src http://mirrors.163.com/debian/ buster main non-free contrib
    6. deb-src http://mirrors.163.com/debian/ buster-updates main non-free contrib
    7. deb-src http://mirrors.163.com/debian/ buster-backports main non-free contrib
    8. deb http://mirrors.163.com/debian-security/ buster/updates main non-free contrib
    9. deb-src http://mirrors.163.com/debian-security/ buster/updates main non-free contrib

    3、添加proxmox源,Ceph源

    1. root@debian10-01:~# cat /etc/apt/sources.list.d/pve.list
    2. # PVE pve-no-subscription repository provided by proxmox.com,
    3. # NOT recommended for production use
    4. deb http://mirrors.ustc.edu.cn/proxmox/debian/pve buster pve-no-subscription
    5. root@debian10-01:~# cat /etc/apt/sources.list.d/ceph.list
    6. deb http://mirrors.ustc.edu.cn/proxmox/debian/ceph-octopus buster main

    4、导入proxmox软件包公钥

    1. 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、更新并安装

    1. apt update && apt upgrade && apt install proxmox-ve -y

    6、安装ceph

    1. apt install ceph ceph-mgr-dashboard cephadm -y

    7、访问https://10.201.70.191:8006,创建集群,加入节点;
    image.png
    8、创建Ceph集群;
    image.png
    9、创建虚拟机;
    image.png10、创建MDS
    image.png
    11、创建备份任务
    image.png
    12、创建容器