Skip to content

Commit a53e858

Browse files
authored
Merge pull request ceph#62422 from ljflores/wip-pg-upmap-prim-release-note
PendingReleaseNotes; doc/rados/operations: document "rm-pg-upmap-primary-{all}" commands
2 parents 8af6c41 + 4dee791 commit a53e858

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

PendingReleaseNotes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@
107107
metadata and data pool names to be used for creating the volume. If either
108108
is not passed or if either is a non-empty pool, the command will abort.
109109

110+
* RADOS: A new command, `ceph osd rm-pg-upmap-primary-all`, has been added that allows
111+
users to clear all pg-upmap-primary mappings in the osdmap when desired.
112+
Related trackers:
113+
- https://tracker.ceph.com/issues/67179
114+
- https://tracker.ceph.com/issues/66867
110115

111116
>=19.2.1
112117

doc/rados/operations/read-balancer.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,30 @@ Primaries are updated with an offline optimizer that is built into the
103103
To see some details about what the tool is doing, you can pass
104104
``--debug-osd 10`` to ``osdmaptool``. To see even more details, pass
105105
``--debug-osd 20`` to ``osdmaptool``.
106+
107+
Troubleshooting
108+
===============
109+
110+
Removing pg-upmap-primary mappings
111+
------------------------------------
112+
113+
For scenarios where you need to manually remove ``pg-upmap-primary`` mappings, Ceph provides the following
114+
developer-level commands. These commands should be used with caution, as they directly modify
115+
primary PG mappings and can impact read performance (this excludes any data movement).
116+
117+
.. note::
118+
119+
Users affected by `#66867 <https://tracker.ceph.com/issues/66867>`_ or `#61948 <https://tracker.ceph.com/issues/61948>`_
120+
may find these commands useful when dealing with unexpected ``pg-upmap-primary`` behavior.
121+
122+
To remove a specific ``pg-upmap-primary`` mapping, use:
123+
124+
.. prompt:: bash $
125+
126+
ceph osd rm-pg-upmap-primary <pgid>
127+
128+
If you need to clear **all** ``pg-upmap-primary`` mappings in your cluster, you may use:
129+
130+
.. prompt:: bash $
131+
132+
ceph osd rm-pg-upmap-primary-all

0 commit comments

Comments
 (0)