This is an automated email from the ASF dual-hosted git repository.
errose28 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone-site.git
The following commit(s) were added to refs/heads/master by this push:
new 3e8fa41754 HDDS-17699. Update upgrade documentation with new finalize
commands (#598)
3e8fa41754 is described below
commit 3e8fa4175449afa28ed9ab824f92f33415cd35ae
Author: Zita Dombi <[email protected]>
AuthorDate: Tue Nov 17 18:57:18 2026 +0100
HDDS-17699. Update upgrade documentation with new finalize commands (#598)
---
.../03-operations/02-upgrade-and-downgrade.md | 40 +++++++++++++---------
1 file changed, 24 insertions(+), 16 deletions(-)
diff --git
a/docs/05-administrator-guide/03-operations/02-upgrade-and-downgrade.md
b/docs/05-administrator-guide/03-operations/02-upgrade-and-downgrade.md
index 2f57cd38a8..d1eb5b554f 100644
--- a/docs/05-administrator-guide/03-operations/02-upgrade-and-downgrade.md
+++ b/docs/05-administrator-guide/03-operations/02-upgrade-and-downgrade.md
@@ -16,30 +16,42 @@ After upgrading components, the upgrade process is divided
into two states:
- The cluster will remain fully operational with all functionality present
in the old version still allowed.
- Any data created while pre-finalized will remain readable after
downgrade.
-2. **Finalized**: When a finalize command is given to OM or SCM, they will
enter a finalized state. In the finalized state:
+2. **Finalized**: When a finalize command is given to the cluster, the
components will enter a finalized state. In the finalized state:
- The cluster can no longer be downgraded.
- All new features of the cluster introduced in the new version can be
used.
### Querying finalization status
-**OM**: `ozone admin om finalizationstatus`. If using OM HA, finalization
status is checked for the quorum, not individual OMs.
+Use a single command to query the finalization status of the whole cluster:
-**SCM**: `ozone admin scm finalizationstatus`. SCM will report that
finalization is complete once it has finalized and is aware of enough finalized
Datanodes to form a write pipeline. The remaining Datanodes will finalize
asynchronously and be incorporated into write pipelines after informing SCM
that they have finalized.
+```bash
+ozone admin upgrade status
+```
-**Datanodes**: `ozone admin datanode list` will list all Datanodes and their
health state as seen by SCM. If SCM is finalized, then Datanodes whose health
state is `HEALTHY` have informed SCM that they have finalized. Datanodes whose
health state is `HEALTHY_READONLY` have not yet informed SCM that they have
finished finalization. `HEALTHY_READONLY` (pre-finalized) Datanodes remain
readable, so the cluster is operational even if some otherwise healthy
Datanodes have not yet finalized. `S [...]
+This command is sent to OM, which gathers the SCM and Datanode status and
reports the combined result, for example:
+
+```text
+Upgrade finalization status:
+ Cluster: FINALIZED
+ OM: FINALIZED
+ SCM: FINALIZED
+ Datanodes finalized: 3/3
+```
+
+Add `--json` to format the output as JSON.
+
+`ozone admin datanode list` lists all Datanodes and their health state
(`HEALTHY`, `STALE`, or `DEAD`) as seen by SCM. `STALE` or `DEAD` Datanodes
will be told to finalize by SCM once they are reachable.
## Steps to upgrade and downgrade
Starting with your current version of Ozone, complete the following steps to
upgrade to a newer version of Ozone.
-1. If using OM HA and currently running Ozone 1.2.0 or greater, prepare the
Ozone Manager. If OM HA is not being used, this step can be skipped.
+1. If using OM HA and currently running Ozone 1.2.0 or greater, prepare the
Ozone Manager. The `prepare` command will block the Ozone Managers from
receiving all write requests. If OM HA is not being used, this step can be
skipped.
```bash
ozone admin om prepare -id=<om-sevice-id>
```
- The `prepare` command will block the Ozone Managers from receiving all
write requests. See [Ozone Manager Prepare For
Upgrade](https://ozone.apache.org/docs/edge/design/omprepare.html) for more
information
-
2. Stop all components.
3. Replace artifacts of all components with the newer versions.
@@ -65,18 +77,14 @@ Starting with your current version of Ozone, complete the
following steps to upg
**Once the following steps are performed, downgrading will not be
possible.**
-5. Finalize SCM
+5. Finalize the cluster
```bash
- ozone admin scm finalizeupgrade
+ ozone admin upgrade finalize
```
- At this point, SCM will tell all of the Datanodes to finalize. Once SCM
has finalized enough Datanodes to form a write pipeline, it will return that
finalization was successful. The remaining pre-finalized Datanodes will be in a
read-only state until they indicate to SCM that they have finalized. Write
requests will be directed to finalized Datanodes only.
-
-6. Finalize OM
-
- ```bash
- ozone admin om finalizeupgrade -id=<om-service-id>
- ```
+ - The command is sent to OM, which orchestrates finalization across the
cluster: SCM finalizes first, then the Datanodes, and finally the OMs.
+ - Finalization is asynchronous: the command returns as soon as the process
has been started. Monitor progress with [`ozone admin upgrade
status`](#querying-finalization-status), or use `ozone admin upgrade finalize
--wait` to have the command poll and block until the entire cluster is
finalized. Interrupting `--wait` with Ctrl-C only stops waiting; finalization
continues on the server.
+ - The finalize command is idempotent, so it can be safely re-issued at any
time, for example to resume waiting with `--wait`.
At this point, the cluster is finalized and the upgrade is complete.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]