Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 32 additions & 10 deletions doc/cephadm/upgrade.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,56 @@ The automated upgrade process follows Ceph best practices. For example:

.. note::

In case a host of the cluster is offline, the upgrade is paused.
If a cluster host is or becomes unavailable the upgrade will be paused
until it is restored.

.. note::

When the PG autoscaler mode for **any** pool is set to ``on``, we recommend
disabling the autoscaler for the duration of the upgrade. This is so that
PG splitting or merging in the middle of an upgrade does not unduly delay
upgrade progress. In a very large cluster this could easily increase the
time to complete by a whole day or more, especially if the upgrade happens to
change PG autoscaler behavior by e.g. changing the default value of
the :confval:`mon_target_pg_per_osd`.
|
* ``ceph osd pool set noautoscale``
* Perform the upgrade
* ``ceph osd pool unset noautoscale``
|
When pausing autoscaler activity in this fashion, the existing values for
each pool's mode, ``off``, ``on``, or ``warn`` are expected to remain.
If the new release changes the above target value, there may be splitting
or merging of PGs when unsetting after the upgrade.


Starting the upgrade
====================

.. note::
.. note::
`Staggered Upgrade`_ of the mons/mgrs may be necessary to have access
to this new feature.
`Staggered Upgrade`_ of the Monitors and Managers may be necessary to use
the below CephFS upgrade feature.

Cephadm by default reduces `max_mds` to `1`. This can be disruptive for large
Cephadm by default reduces ``max_mds`` to ``1``. This can be disruptive for large
scale CephFS deployments because the cluster cannot quickly reduce active MDS(s)
to `1` and a single active MDS cannot easily handle the load of all clients
even for a short time. Therefore, to upgrade MDS(s) without reducing `max_mds`,
the `fail_fs` option can to be set to `true` (default value is `false`) prior
even for a short time. Therefore, to upgrade MDS(s) without reducing ``max_mds``,
the ``fail_fs`` option can to be set to ``true`` (default value is ``false``) prior
to initiating the upgrade:

.. prompt:: bash #

ceph config set mgr mgr/orchestrator/fail_fs true
ceph confg set mgr mgr/orchestrator/fail_fs true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zdover23 typo

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll take care of it when I get back from lunch.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How the heck did I do that? Shame!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It happens. It's no big deal, as long as we have docs people to look after it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


This would:
#. Fail CephFS filesystems, bringing active MDS daemon(s) to
`up:standby` state.
``up:standby`` state.

#. Upgrade MDS daemons safely.

#. Bring CephFS filesystems back up, bringing the state of active
MDS daemon(s) from `up:standby` to `up:active`.
MDS daemon(s) from ``up:standby`` to `up:active``.

Before you use cephadm to upgrade Ceph, verify that all hosts are currently online and that your cluster is healthy by running the following command:

Expand Down Expand Up @@ -145,7 +165,9 @@ The message ``Error ENOENT: Module not found`` appears in response to the comman

Error ENOENT: Module not found

This is possibly caused by invalid JSON in a mgr config-key. See `Redmine tracker Issue #67329 <https://tracker.ceph.com/issues/67329>`_ and `the discussion on the [ceph-users] mailing list <https://www.spinics.net/lists/ceph-users/msg83667.html>`_.
This is possibly caused by invalid JSON in a mgr config-key.
See `Redmine tracker Issue #67329 <https://tracker.ceph.com/issues/67329>`_
and `this discussion on the ceph-users mailing list <https://www.spinics.net/lists/ceph-users/msg83667.html>`_.

UPGRADE_NO_STANDBY_MGR
----------------------
Expand Down