如何将部署了ceph的pve6升级至pve7

国内pve6使用的软件源

若是有不明白,请先看官方教程:https://pve.proxmox.com/wiki/Upgrade_from_6.x_to_7.0
注意我的场景下:pve中只有ceph,没有容器和虚拟机

1、关闭企业源
    sed -i 's/^/# /g' /etc/apt/sources.list.d/pve-enterprise.list

2、系统源+非订阅源

deb http://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
deb http://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
deb http://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
deb https://mirrors.ustc.edu.cn/proxmox/debian/ buster pve-no-subscription

3、ceph软件源(注意pve6中只有 ceph14 n版和ceph15 o版)
    sed -i.bak "s#http://download.proxmox.com/debian#https://mirrors.ustc.edu.cn/proxmox/debian#g" /usr/share/perl5/PVE/CLI/pveceph.pm
    # apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E84AC2C0460F3994

pve6升级到pve7(都在shell中执行)

1、先弄成单节点。(参考该文章 https://boke.wsfnk.com/archives/1092.html)
    在正常节点
    pvecm delnode $hostname

2、先升级到pve6.4 (确保apt 源最新)确保pve6的软件软是正常的,包含ceph 软件源,都要向上一样,国外的默认即可
    apt update
    apt dist-upgrade
    pveversion      # 确保是pve6.4,包含一个命令pve6to7

    执行一次升级前检查(确保在升级之前至少运行一次完整检查,确保没有错误)
    pve6to7 --full      # 若是有失败的,看看这个 systemctl restart pve-cluster.service

= SUMMARY =
TOTAL:    32
PASSED:   27
SKIPPED:  2
WARNINGS: 3
FAILURES: 0

3、注意若是ceph 版本不是 15的,需要先升级到15版本

4、将pve的软件源直接改成pve7的,包含ceph的也一样
cat > /etc/apt/sources.list << EOF
deb https://mirrors.ustc.edu.cn/debian bullseye main contrib
deb https://mirrors.ustc.edu.cn/debian bullseye-updates main contrib
deb https://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib
deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bullseye pve-no-subscription
deb http://deb.debian.org/debian bullseye-backports main
EOF

echo "deb http://download.proxmox.com/debian/ceph-octopus bullseye main" > /etc/apt/sources.list.d/ceph.list

    执行升级
    apt update
    apt dist-upgrade            # 执行后要按下回车按键,问升级libc6:amd64等库时要不要提升(选择yes 表示不提示直接重启相关服务)
    # 若是在上一步断了,重连后执行,dpkg --config -a
声明:本文为原创,作者为 辣条①号,转载时请保留本声明及附带文章链接:https://boke.wsfnk.com/archives/1166.html
谢谢你请我吃辣条谢谢你请我吃辣条

如果文章对你有帮助,欢迎点击上方按钮打赏作者

最后编辑于:2023/9/15作者: 辣条①号

现在在做什么? 接下来打算做什么? 你的目标什么? 期限还有多少? 进度如何? 不负遇见,不谈亏欠!

暂无评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

arrow grin ! ? cool roll eek evil razz mrgreen smile oops lol mad twisted wink idea cry shock neutral sad ???

文章目录