【教程】proxmox7 安装 集群配置 ceph配置 pbs备份配置
相关操作视频:



1、制作启动盘,工具rufus
官网:https://rufus.ie/zh/
知乎上的操作介绍:https://zhuanlan.zhihu.com/p/454872391
ISO镜像从官网下就完了:https://www.proxmox.com/en/downloads
2、系统安装









优化一下BBR
修改sysctl.conf
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
保存生效
sysctl -p
检测是否已启用bbr模块
lsmod | grep bbr
修改一下debian源
vi /etc/apt/sources.list
dd删了原来的东西 换成清华的源
deb https://mirrors.tuna.tsinghua.edu.cn/debian bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian bullseye-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian bullseye-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
修改一下pve源
vi /etc/apt/sources.list.d/pve-enterprise.list
dd删了原来的东西 换成科大的源
deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bullseye pve-no-subscription
更新一下
apt update && apt upgrade -y

3、集群配置








4、ceph配置
ceph服务安装,建议进命令行,跑个tmux什么的后台跑命令就行,如果实在太慢,可以搜一下修改pveceph的源方法
pveceph install
执行完成后,定义一下ceph服务的网络
pveceph init --network 10.68.68.0/24
再在各个节点装上mon
pveceph createmon
基本就可以走pve界面进行配置了

为了集群性能好一下,可以使用ssd,nvme硬盘做db数据盘和wal数据盘,大小和比例根据自己的机械盘大小,按照官网推荐比例配置上就行。




这个时候就可以做个基本的测试了,新建一个系统存放于ceph集群中,操作从A主机迁移至B主机,以及断电宕机热迁移了(此处需在数据中心处配置HA)

5、pbs 备份系统配置
pbs安装和pve基本一样,这里就不单独介绍了,安装后web管理地址:https://ip:8007











