Overview
I upgraded every node in Praxis, my homelab, to a new major version of Proxmox VE, and took its Ceph storage through two successive major releases. All three were rolling upgrades, one node or one daemon type at a time, with the cluster serving storage throughout. I planned and documented them with Claude Code in the repository that holds the cluster’s Ansible inventory and runbooks, and I made each decision.
Context
The cluster runs everything else in the homelab: VMs, containers, shared file systems, and the GPU machines for model serving. A storage outage takes all of it down at once. The upgrades were not optional either. Each Ceph release has an end-of-life date, and the Proxmox upgrade was a prerequisite for the newer Ceph releases.
The risk was specific. On the storage classes that live on only a few hosts, taking one host down for a restart leaves that data with no redundancy margin. A second failure during that window would stop writes. That fact shaped the whole sequence.
The System
If terms like agent or AI-assisted planning are new to you, How my AI stack fits together explains how the parts relate.
Plans as documents. Each upgrade started as a written plan in an issue: prerequisites checked against the live cluster, the vendor’s documented procedure, the order of steps, and the decisions still open. The plans were drafted and kept up to date with Claude Code in the homelab repository, next to the Ansible inventory and runbooks they refer to. Open questions were settled by me and recorded in the plan with the reason, so the execution record shows why each choice was made.
Phases that end in a supported state. Each plan was split into phases, and each phase left the cluster in a state the vendor supports. Repository changes with no cluster effect came first. Package upgrades came next, with daemon restarts kept as a separate step. Restarts went by type in the documented order, one node at a time, with the hosts that carry the most risk each given their own window. The one irreversible step, raising the minimum release the cluster requires, came last and only after a soak period.
A mechanical health gate. Between steps, a verifier script checks that all data is in a clean state, all storage daemons are up, there is no recovery in progress, and the monitors are in quorum. It exits non-zero if any condition fails and offers no remediation, because the correct response to a failed gate is to wait. That check does not depend on someone reading cluster status correctly late at night.
Configuration owned by Ansible. Package sources are owned by an Ansible role, so switching to a new release is one variable changed in a reviewed pull request, and the role refuses to run against a file it does not recognise.
Components and Why I Chose Them
| Component | What it does here | Why I chose it |
|---|---|---|
| Proxmox VE (tool page) | Runs the cluster’s VMs and containers and packages its Ceph | Its documented upgrade procedures for both Proxmox and Ceph were the basis of every plan. The cluster’s Ceph is installed from Proxmox packages, so I followed the Proxmox package procedure, not Ceph’s own orchestrator. |
| Ceph (tool page) | Block storage for guests and the shared file systems | Data is replicated across hosts, so a node can restart while storage keeps serving. It also replaced the separate TrueNAS VM I used for file storage: in a storage re-layout I moved that data to CephFS, retired TrueNAS, and used its host as a fourth storage host so that losing one host still leaves a place to rebuild the missing copies. |
| Ansible (tool page) | Owns package sources, inventory and the verifier scripts | A release change is one reviewed variable, and the same inventory drives checks across every node. |
| Verifier scripts | The health gate between steps | A script that exits non-zero does not depend on someone reading cluster status correctly. |
| Claude Code (tool page) | Drafts the plans and keeps the execution record | It works in the repository next to the inventory and runbooks, so the plan is checked against the same files that run the cluster. |
Outcomes
The cluster kept serving storage through all three upgrades. The only planned downtime was for the guests that cannot live-migrate, such as VMs with a passed-through GPU and containers with bind mounts, which have to stop while their node is upgraded. Each upgrade left behind standing knowledge for the next one: how each class of guest has to be moved off a node, what to check before draining a node, and how to poll a long-running upgrade without mistaking an intermediate state for completion.
Example Checklist
This is a simplified version of the rolling Ceph upgrade sequence I followed, with no versions. The vendor’s procedure for your release is the authority; this shows the order and where the gate runs.
- Run the health gate. All data is clean, every storage daemon is up and in, no recovery or backfill is running, and the monitors are in quorum.
- Save the cluster’s configuration, maps and daemon versions to a location off the cluster.
- Confirm which hosts are storage clients and what client version each will run after the upgrade.
- Set the maintenance flags, so a restarting node does not trigger data movement.
- Change the package sources through the configuration tool and upgrade packages on every node. Do not restart daemons in this step.
- Restart daemons by type in the documented order: monitors, managers, storage daemons, file system metadata servers, then gateways. Restart one node at a time, and run the gate after each node.
- Give the node whose restart removes the most redundancy its own window.
- Clear the maintenance flags and run the gate.
- Let the cluster run on the new release for a soak period.
- Only then run the irreversible step: raise the minimum release the cluster requires.
Patterns Worth Reusing
Order the work by blast radius. Know which step removes the most redundancy, give it its own window, and do not stack two of them in one session.
Make the gate a script. A check that exits non-zero is harder to argue with than a status page someone has to interpret.
Keep the irreversible step last. Everything before it can be stopped or rolled back; it should run only after the cluster has run normally on the new release for a while.
Use the AI for the plan and the record, and keep the decisions human. Claude Code is good at reading inventory and procedure and turning them into a checked plan. Whether to proceed is still my call.