






















Ceph Squid (19.x) introduces significant improvements over Reef (18.x), including enhanced NVMe-oF support, improved dashboard, and better erasure coding performance. This guide walks through the upgrade process for a Rook-managed cluster.
Before starting the upgrade, verify your current cluster state is healthy:
kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- ceph status
kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- ceph health detailEnsure no HEALTH_ERR conditions exist and all OSDs are up:
kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- ceph osd stat
# Expected: x osds: x up, x inUpgrade Rook to the version that supports Squid. Check the compatibility matrix first:
# Check current Rook version
kubectl -n rook-ceph get deployment rook-ceph-operator -o jsonpath='{.spec.template.spec.containers[0].image}'Update the Rook operator image in your deployment or Helm values:
image:
repository: rook/ceph
tag: v1.16.0 # supports Ceph SquidApply the update:
helm upgrade rook-ceph rook-release/rook-ceph \
--namespace rook-ceph \
--set image.tag=v1.16.0Edit the CephCluster custom resource to target Squid:
apiVersion: ceph.rook.io/v1
kind: CephCluster
metadata:
name: rook-ceph
namespace: rook-ceph
spec:
cephVersion:
image: quay.io/ceph/ceph:v19.2.0
allowUnsupported: falseApply the change:
kubectl apply -f cluster.yamlWatch the Rook operator logs and pod rollout:
kubectl -n rook-ceph logs -f deploy/rook-ceph-operator
kubectl -n rook-ceph get pods -wMonitor Ceph daemons upgrading in order - MON, MGR, OSD, MDS, RGW:
kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- ceph versionsAfter all daemons show the Squid version, confirm cluster health:
kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- ceph status
kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- ceph versions
# All components should show v19.x.xUpgrading from Ceph Reef to Squid via Rook involves updating the operator first, then updating the cephVersion image in the CephCluster resource. The operator orchestrates daemon upgrades sequentially and monitors cluster health throughout. Always verify cluster health before and after the upgrade process.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。