mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
doc/cephadm/upgrade: document upgrade
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
26f3624498
commit
20cac050f1
@ -23,6 +23,7 @@ versions of Ceph.
|
||||
|
||||
install
|
||||
adoption
|
||||
upgrade
|
||||
Cephadm operations <operations>
|
||||
Cephadm monitoring <monitoring>
|
||||
Cephadm CLI <../mgr/orchestrator>
|
||||
|
115
doc/cephadm/upgrade.rst
Normal file
115
doc/cephadm/upgrade.rst
Normal file
@ -0,0 +1,115 @@
|
||||
==============
|
||||
Upgrading Ceph
|
||||
==============
|
||||
|
||||
Cephadm is capable of safely upgrading Ceph from one bugfix release to
|
||||
another. For example, you can upgrade from v15.2.0 (the first Octopus
|
||||
release) to the next point release v15.2.1.
|
||||
|
||||
The automated upgrade process follows Ceph best practices. For example:
|
||||
|
||||
* The upgrade order starts with managers, monitors, then other daemons.
|
||||
* Each daemon is restarted only after Ceph indicates that the cluster
|
||||
will remain available.
|
||||
|
||||
Keep in mind that the Ceph cluster health will like switch to
|
||||
`HEALTH_WARNING` during the upgrade.
|
||||
|
||||
|
||||
Starting the upgrade
|
||||
====================
|
||||
|
||||
Before you start, you should verify that all hosts are currently online
|
||||
and your cluster is generally healthy.
|
||||
|
||||
::
|
||||
|
||||
# ceph -s
|
||||
|
||||
To upgrade (or downgrade) to a specific release::
|
||||
|
||||
# ceph upgrade start --version <version>
|
||||
|
||||
For example, to upgrade to v15.2.1::
|
||||
|
||||
# ceph upgrade start --version 15.2.1
|
||||
|
||||
|
||||
Monitoring the upgrade
|
||||
======================
|
||||
|
||||
You can tell whether an upgrade is in progress with::
|
||||
|
||||
# ceph upgrade status
|
||||
|
||||
While the upgrade is underway, you will see a progress bar in the ceph
|
||||
status output. For example::
|
||||
|
||||
# ceph -s
|
||||
[...]
|
||||
progress:
|
||||
Upgrade to docker.io/ceph/ceph:v15.2.1
|
||||
[............................] (time remaining: N/A)
|
||||
|
||||
You can also watch the cephadm log with::
|
||||
|
||||
# ceph -W cephadm
|
||||
|
||||
|
||||
Canceling an upgrade
|
||||
====================
|
||||
|
||||
You can stop the upgrade process at any time with::
|
||||
|
||||
# ceph upgrade stop
|
||||
|
||||
|
||||
Potential problems
|
||||
==================
|
||||
|
||||
There are a few health alerts that can arise during the upgrade process.
|
||||
|
||||
UPGRADE_NO_STANDBY_MGR
|
||||
----------------------
|
||||
|
||||
Ceph requires an active and standby manager daemon in order to proceed, but
|
||||
there is currently no standby.
|
||||
|
||||
You can ensure that Cephadm is configured to run 2 (or more) managers with::
|
||||
|
||||
# ceph orch apply mgr 2 # or more
|
||||
|
||||
You can check the status of existing mgr daemons with::
|
||||
|
||||
# ceph orch ps --daemon-type mgr
|
||||
|
||||
If an existing mgr daemon has stopped, you can try restarting it with::
|
||||
|
||||
# ceph orch daemon restart <name>
|
||||
|
||||
UPGRADE_FAILED_PULL
|
||||
-------------------
|
||||
|
||||
Ceph was unable to pull the container image for the target version.
|
||||
This can happen if you specify an version or container image that does
|
||||
not exist (e.g., 1.2.3), or if the container registry is not reachable from
|
||||
one or more hosts in the cluster.
|
||||
|
||||
You can cancel the existing upgrade and specify a different target version with::
|
||||
|
||||
# ceph upgrade stop
|
||||
# ceph upgrade start --version <version>
|
||||
|
||||
|
||||
Using customized container images
|
||||
=================================
|
||||
|
||||
For most users, simplify specifying the Ceph version is sufficient.
|
||||
Cephadm will locate the specific Ceph container image to use by
|
||||
combining the ``container_image_base`` configuration option (default:
|
||||
``docker.io/ceph/ceph``) with a version tag of ``vX.Y.Z``.
|
||||
|
||||
You can also upgrade to an arbitrary container image. For example, to
|
||||
upgrade to a development build::
|
||||
|
||||
# ceph upgrade start --image quay.io/ceph-ci/ceph:recent-git-branch-name
|
Loading…
Reference in New Issue
Block a user