Bug #56650
openceph df reports invalid MAX AVAIL value for stretch mode crush rule
0%
Description
If we define crush rule for stretch mode cluster with multiple take then MAX AVAIL for pools associated with crush rule will report available size equals to available space from single datacenter.
Consider if we define crush rule stretch_rule as per https://docs.ceph.com/en/latest/rados/operations/stretch-mode/ documentation
rule stretch_rule {
id 1
type replicated
step take DC1
step chooseleaf firstn 2 type host
step emit
step take DC2
step chooseleaf firstn 2 type host
step emit
}
and another crush rule stretch_replicated_rule with similar placement strategy :
rule stretch_replicated_rule {
id 2
type replicated
step take default
step choose firstn 0 type datacenter
step chooseleaf firstn 2 type host
step emit
}
then "MAX AVAIL" for pools from stretch_rule show incorrect value whereas pools from stretch_replicated_rule shows correct value.
The way crush rule stretch_rule is defined, PGMap::get_rule_avail is considering only one datacenter's available size rather than total avail size from both datacenters.
More details :
$ ceph osd crush rule ls
replicated_rule
stretch_rule
stretch_replicated_rule
$ ceph osd crush rule dump stretch_rule
{
"rule_id": 1,
"rule_name": "stretch_rule",
"type": 1,
"steps": [
{
"op": "take",
"item": -5,
"item_name": "DC1"
},
{
"op": "chooseleaf_firstn",
"num": 2,
"type": "host"
},
{
"op": "emit"
},
{
"op": "take",
"item": -6,
"item_name": "DC2"
},
{
"op": "chooseleaf_firstn",
"num": 2,
"type": "host"
},
{
"op": "emit"
}
]
}
$ ceph osd crush rule dump stretch_replicated_rule
{
"rule_id": 2,
"rule_name": "stretch_replicated_rule",
"type": 1,
"steps": [
{
"op": "take",
"item": -1,
"item_name": "default"
},
{
"op": "choose_firstn",
"num": 0,
"type": "datacenter"
},
{
"op": "chooseleaf_firstn",
"num": 2,
"type": "host"
},
{
"op": "emit"
}
]
}
$ ceph osd pool ls detail
pool 1 '.mgr' replicated size 3 min_size 1 crush_rule 0 object_hash rjenkins pg_num 1 pgp_num 1 autoscale_mode on last_change 19 flags hashpspool stripe_width 0 pg_num_max 32 pg_num_min 1 application mgr
pool 2 'cephfs.a.meta' replicated size 3 min_size 1 crush_rule 0 object_hash rjenkins pg_num 16 pgp_num 16 autoscale_mode on last_change 88 lfor 0/0/62 flags hashpspool stripe_width 0 pg_autoscale_bias 4 pg_num_min 16 recovery_priority 5 application cephfs
pool 3 'cephfs.a.data' replicated size 3 min_size 1 crush_rule 0 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 64 lfor 0/0/62 flags hashpspool stripe_width 0 application cephfs
pool 4 'rbdpool' replicated size 4 min_size 1 crush_rule 0 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 126 flags hashpspool stripe_width 0
pool 5 'rbdtest' replicated size 4 min_size 1 crush_rule 0 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 139 flags hashpspool,selfmanaged_snaps stripe_width 0 application rbd
pool 6 'stretched_rbdpool' replicated size 4 min_size 1 crush_rule 1 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 130 flags hashpspool stripe_width 0
pool 7 'stretched_rbdtest' replicated size 4 min_size 1 crush_rule 1 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 143 flags hashpspool,selfmanaged_snaps stripe_width 0 application rbd
pool 8 'stretched_replicated_rbdpool' replicated size 4 min_size 1 crush_rule 2 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 134 flags hashpspool stripe_width 0
pool 9 'stretched_replicated_rbdtest' replicated size 4 min_size 1 crush_rule 2 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 147 flags hashpspool,selfmanaged_snaps stripe_width 0 application rbd
$ ceph df
--- RAW STORAGE ---
CLASS SIZE AVAIL USED RAW USED %RAW USED
hdd 1.2 TiB 960 GiB 252 GiB 252 GiB 20.81
TOTAL 1.2 TiB 960 GiB 252 GiB 252 GiB 20.81
--- POOLS ---
POOL ID PGS STORED OBJECTS USED %USED MAX AVAIL
.mgr 1 1 1.5 MiB 2 4.5 MiB 0 289 GiB
cephfs.a.meta 2 16 2.3 KiB 22 96 KiB 0 289 GiB
cephfs.a.data 3 32 0 B 0 0 B 0 289 GiB
rbdpool 4 32 0 B 0 0 B 0 216 GiB
rbdtest 5 32 20 GiB 5.14k 80 GiB 8.46 216 GiB
stretched_rbdpool 6 32 0 B 0 0 B 0 108 GiB
stretched_rbdtest 7 32 20 GiB 5.14k 80 GiB 15.60 108 GiB
stretched_replicated_rbdpool 8 32 0 B 0 0 B 0 216 GiB
stretched_replicated_rbdtest 9 32 20 GiB 5.14k 80 GiB 8.46 216 GiB
PD Updated by Prashant D over 4 years ago
- Description updated (diff)
PD Updated by Prashant D over 4 years ago
- Pull request ID set to 47189
PD Updated by Prashant D over 4 years ago
- Status changed from New to Fix Under Review
PD Updated by Prashant D over 4 years ago
Before applying PR#47189, MAX AVAIL for stretch_rule pools is incorrect :
$ ceph osd crush rule ls
replicated_rule
stretch_rule
stretch_replicated_rule
$ ceph osd crush rule dump stretch_rule
{
"rule_id": 1,
"rule_name": "stretch_rule",
"type": 1,
"steps": [
{
"op": "take",
"item": -5,
"item_name": "DC1"
},
{
"op": "chooseleaf_firstn",
"num": 2,
"type": "host"
},
{
"op": "emit"
},
{
"op": "take",
"item": -6,
"item_name": "DC2"
},
{
"op": "chooseleaf_firstn",
"num": 2,
"type": "host"
},
{
"op": "emit"
}
]
}
$ ceph osd crush rule dump stretch_replicated_rule
{
"rule_id": 2,
"rule_name": "stretch_replicated_rule",
"type": 1,
"steps": [
{
"op": "take",
"item": -1,
"item_name": "default"
},
{
"op": "choose_firstn",
"num": 0,
"type": "datacenter"
},
{
"op": "chooseleaf_firstn",
"num": 2,
"type": "host"
},
{
"op": "emit"
}
]
}
$ ceph osd pool ls detail
pool 1 '.mgr' replicated size 3 min_size 1 crush_rule 0 object_hash rjenkins pg_num 1 pgp_num 1 autoscale_mode on last_change 19 flags hashpspool stripe_width 0 pg_num_max 32 pg_num_min 1 application mgr
pool 2 'cephfs.a.meta' replicated size 3 min_size 1 crush_rule 0 object_hash rjenkins pg_num 16 pgp_num 16 autoscale_mode on last_change 88 lfor 0/0/62 flags hashpspool stripe_width 0 pg_autoscale_bias 4 pg_num_min 16 recovery_priority 5 application cephfs
pool 3 'cephfs.a.data' replicated size 3 min_size 1 crush_rule 0 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 64 lfor 0/0/62 flags hashpspool stripe_width 0 application cephfs
pool 4 'rbdpool' replicated size 4 min_size 1 crush_rule 0 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 126 flags hashpspool stripe_width 0
pool 5 'rbdtest' replicated size 4 min_size 1 crush_rule 0 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 139 flags hashpspool,selfmanaged_snaps stripe_width 0 application rbd
pool 6 'stretched_rbdpool' replicated size 4 min_size 1 crush_rule 1 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 130 flags hashpspool stripe_width 0
pool 7 'stretched_rbdtest' replicated size 4 min_size 1 crush_rule 1 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 143 flags hashpspool,selfmanaged_snaps stripe_width 0 application rbd
pool 8 'stretched_replicated_rbdpool' replicated size 4 min_size 1 crush_rule 2 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 134 flags hashpspool stripe_width 0
pool 9 'stretched_replicated_rbdtest' replicated size 4 min_size 1 crush_rule 2 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 147 flags hashpspool,selfmanaged_snaps stripe_width 0 application rbd
$ ceph df
--- RAW STORAGE ---
CLASS SIZE AVAIL USED RAW USED %RAW USED
hdd 1.2 TiB 960 GiB 252 GiB 252 GiB 20.81
TOTAL 1.2 TiB 960 GiB 252 GiB 252 GiB 20.81
--- POOLS ---
POOL ID PGS STORED OBJECTS USED %USED MAX AVAIL
.mgr 1 1 1.5 MiB 2 4.5 MiB 0 289 GiB
cephfs.a.meta 2 16 2.3 KiB 22 96 KiB 0 289 GiB
cephfs.a.data 3 32 0 B 0 0 B 0 289 GiB
rbdpool 4 32 0 B 0 0 B 0 216 GiB
rbdtest 5 32 20 GiB 5.14k 80 GiB 8.46 216 GiB
stretched_rbdpool 6 32 0 B 0 0 B 0 108 GiB
stretched_rbdtest 7 32 20 GiB 5.14k 80 GiB 15.60 108 GiB
stretched_replicated_rbdpool 8 32 0 B 0 0 B 0 216 GiB
stretched_replicated_rbdtest 9 32 20 GiB 5.14k 80 GiB 8.46 216 GiB
After applying PR#47189, MAX AVAIL is correctly shown for stretch_rule pools :
$ ceph -s
cluster:
id: 3d796a5c-2ad9-4c37-b671-45446254a11b
health: HEALTH_OK
services:
mon: 1 daemons, quorum a (age 19m)
mgr: x(active, since 19m)
mds: 1/1 daemons up
osd: 12 osds: 12 up (since 18m), 12 in (since 18m)
data:
volumes: 1/1 healthy
pools: 9 pools, 241 pgs
objects: 15.43k objects, 60 GiB
usage: 252 GiB used, 960 GiB / 1.2 TiB avail
pgs: 241 active+clean
$ ceph osd crush rule ls
replicated_rule
stretch_rule
stretch_replicated_rule
$ ceph osd crush rule dump stretch_rule
{
"rule_id": 1,
"rule_name": "stretch_rule",
"type": 1,
"steps": [
{
"op": "take",
"item": -5,
"item_name": "DC1"
},
{
"op": "chooseleaf_firstn",
"num": 2,
"type": "host"
},
{
"op": "emit"
},
{
"op": "take",
"item": -6,
"item_name": "DC2"
},
{
"op": "chooseleaf_firstn",
"num": 2,
"type": "host"
},
{
"op": "emit"
}
]
}
$ ceph osd crush rule dump stretch_replicated_rule
{
"rule_id": 2,
"rule_name": "stretch_replicated_rule",
"type": 1,
"steps": [
{
"op": "take",
"item": -1,
"item_name": "default"
},
{
"op": "choose_firstn",
"num": 0,
"type": "datacenter"
},
{
"op": "chooseleaf_firstn",
"num": 2,
"type": "host"
},
{
"op": "emit"
}
]
}
$ ceph osd pool ls detail
pool 1 '.mgr' replicated size 3 min_size 1 crush_rule 0 object_hash rjenkins pg_num 1 pgp_num 1 autoscale_mode on last_change 19 flags hashpspool stripe_width 0 pg_num_max 32 pg_num_min 1 application mgr
pool 2 'cephfs.a.meta' replicated size 3 min_size 1 crush_rule 0 object_hash rjenkins pg_num 16 pgp_num 16 autoscale_mode on last_change 90 lfor 0/0/62 flags hashpspool stripe_width 0 pg_autoscale_bias 4 pg_num_min 16 recovery_priority 5 application cephfs
pool 3 'cephfs.a.data' replicated size 3 min_size 1 crush_rule 0 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 64 lfor 0/0/62 flags hashpspool stripe_width 0 application cephfs
pool 4 'rbdpool' replicated size 4 min_size 1 crush_rule 0 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 126 flags hashpspool stripe_width 0
pool 5 'rbdtest' replicated size 4 min_size 1 crush_rule 0 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 139 flags hashpspool,selfmanaged_snaps stripe_width 0 application rbd
pool 6 'stretched_rbdpool' replicated size 4 min_size 1 crush_rule 1 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 130 flags hashpspool stripe_width 0
pool 7 'stretched_rbdtest' replicated size 4 min_size 1 crush_rule 1 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 143 flags hashpspool,selfmanaged_snaps stripe_width 0 application rbd
pool 8 'stretched_replicated_rbdpool' replicated size 4 min_size 1 crush_rule 2 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 134 flags hashpspool stripe_width 0
pool 9 'stretched_replicated_rbdtest' replicated size 4 min_size 1 crush_rule 2 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 147 flags hashpspool,selfmanaged_snaps stripe_width 0 application rbd
$ ceph osd df tree
ID CLASS WEIGHT REWEIGHT SIZE RAW USE DATA OMAP META AVAIL %USE VAR PGS STATUS TYPE NAME
-1 1.18301 - 1.2 TiB 252 GiB 240 GiB 0 B 1.8 GiB 960 GiB 20.81 1.00 - root default
-5 0.59151 - 606 GiB 127 GiB 121 GiB 0 B 928 MiB 479 GiB 20.90 1.00 - datacenter DC1
-9 0.19716 - 202 GiB 50 GiB 48 GiB 0 B 440 MiB 152 GiB 24.64 1.18 - host osd-0
0 hdd 0.09859 1.00000 101 GiB 22 GiB 21 GiB 0 B 214 MiB 79 GiB 21.73 1.04 71 up osd.0
3 hdd 0.09859 1.00000 101 GiB 28 GiB 27 GiB 0 B 226 MiB 73 GiB 27.54 1.32 99 up osd.3
-10 0.19716 - 202 GiB 36 GiB 34 GiB 0 B 191 MiB 166 GiB 18.05 0.87 - host osd-1
1 hdd 0.09859 1.00000 101 GiB 18 GiB 17 GiB 0 B 95 MiB 83 GiB 17.79 0.86 72 up osd.1
2 hdd 0.09859 1.00000 101 GiB 18 GiB 17 GiB 0 B 96 MiB 83 GiB 18.31 0.88 66 up osd.2
-11 0.19716 - 202 GiB 40 GiB 38 GiB 0 B 297 MiB 162 GiB 20.00 0.96 - host osd-2
7 hdd 0.09859 1.00000 101 GiB 24 GiB 23 GiB 0 B 160 MiB 77 GiB 24.16 1.16 80 up osd.7
11 hdd 0.09859 1.00000 101 GiB 16 GiB 15 GiB 0 B 137 MiB 85 GiB 15.85 0.76 70 up osd.11
-6 0.59151 - 606 GiB 126 GiB 120 GiB 0 B 923 MiB 480 GiB 20.71 1.00 - datacenter DC2
-12 0.19716 - 202 GiB 46 GiB 44 GiB 0 B 368 MiB 156 GiB 22.64 1.09 - host osd-3
4 hdd 0.09859 1.00000 101 GiB 19 GiB 18 GiB 0 B 199 MiB 82 GiB 18.58 0.89 69 up osd.4
8 hdd 0.09859 1.00000 101 GiB 27 GiB 26 GiB 0 B 169 MiB 74 GiB 26.69 1.28 89 up osd.8
-13 0.19716 - 202 GiB 40 GiB 38 GiB 0 B 258 MiB 162 GiB 19.98 0.96 - host osd-4
5 hdd 0.09859 1.00000 101 GiB 20 GiB 19 GiB 0 B 104 MiB 81 GiB 19.70 0.95 74 up osd.5
9 hdd 0.09859 1.00000 101 GiB 20 GiB 19 GiB 0 B 154 MiB 81 GiB 20.25 0.97 78 up osd.9
-14 0.19716 - 202 GiB 39 GiB 37 GiB 0 B 297 MiB 163 GiB 19.52 0.94 - host osd-5
6 hdd 0.09859 1.00000 101 GiB 16 GiB 15 GiB 0 B 82 MiB 85 GiB 15.48 0.74 66 up osd.6
10 hdd 0.09859 1.00000 101 GiB 24 GiB 23 GiB 0 B 215 MiB 77 GiB 23.57 1.13 81 up osd.10
TOTAL 1.2 TiB 252 GiB 240 GiB 0 B 1.8 GiB 960 GiB 20.81
MIN/MAX VAR: 0.74/1.32 STDDEV: 3.81
$ ceph df
--- RAW STORAGE ---
CLASS SIZE AVAIL USED RAW USED %RAW USED
hdd 1.2 TiB 960 GiB 252 GiB 252 GiB 20.81
TOTAL 1.2 TiB 960 GiB 252 GiB 252 GiB 20.81
--- POOLS ---
POOL ID PGS STORED OBJECTS USED %USED MAX AVAIL
.mgr 1 1 1.5 MiB 2 4.5 MiB 0 289 GiB
cephfs.a.meta 2 16 2.3 KiB 22 96 KiB 0 289 GiB
cephfs.a.data 3 32 0 B 0 0 B 0 289 GiB
rbdpool 4 32 0 B 0 0 B 0 217 GiB
rbdtest 5 32 20 GiB 5.14k 80 GiB 8.46 217 GiB
stretched_rbdpool 6 32 0 B 0 0 B 0 217 GiB
stretched_rbdtest 7 32 20 GiB 5.14k 80 GiB 8.46 217 GiB
stretched_replicated_rbdpool 8 32 0 B 0 0 B 0 217 GiB
stretched_replicated_rbdtest 9 32 20 GiB 5.13k 80 GiB 8.46 217 GiB
RZ Updated by Radoslaw Zarzynski over 4 years ago
- Backport set to pacific,quincy
RZ Updated by Radoslaw Zarzynski over 3 years ago
A workaround from Prashant:
The workaround for this issue is instead of defining below stretch_rule for the stretch cluster
rule stretch_rule {
id 1
type replicated
step take DC1
step chooseleaf firstn 2 type host
step emit
step take DC2
step chooseleaf firstn 2 type host
step emit
}
define it as :
rule stretch_rule {
id 2
type replicated
step take default
step choose firstn 0 type datacenter
step chooseleaf firstn 2 type host
step emit
}
SP Updated by Sake Paulusma over 3 years ago
Radoslaw Zarzynski wrote:
A workaround from Prashant:
[...]
Thank you for the workaround! After fixing the issue, will this workaround be the default to define the CRUSH rule for a stretched cluster or should we revert back to the original rule in the documentation?
RZ Updated by Radoslaw Zarzynski over 3 years ago
The fix is undergoing extended testing.
SK Updated by Stefan Kooman over 2 years ago
@Radoslaw Zarzynski: How is this fix being tested? It's not merged upstream and the PR has been closed. Is there some way to track progress besides this ticket?
SK Updated by Stefan Kooman over 2 years ago
I want to add to this that currently (18.2.2) it's possible to have upmaps created that violate the CRUSH policy as suggested in this ticket to use as workaround (stretch_replicated_rule). Apparently the current code that has to validate the upmaps does not detect these violations. See [this issue] for more details https://github.com/TheJJ/ceph-balancer/issues/41#issuecomment-2173349109
I can reproduce on a test cluster. So feel free to ping me if you need osdmaps to validate the behavior.
RZ Updated by Radoslaw Zarzynski over 2 years ago
@Radoslaw Zarzynski: How is this fix being tested? It's not merged upstream and the PR has been closed. Is there some way to track progress besides this ticket?
It's about testing by downstream QA. In the description of the ticket a link to bugzilla is posted. Unfortunately, it requires extra privileges :-(.
Anyway, let's get back to the case.
KS Updated by Kamoltat (Junior) Sirivadhna over 2 years ago · Edited
06/20/2024 User + Dev Meeting discussion
As discussed in the dev meeting, we can make the default crush rule for stretch_mode cluster setup to be:
rule stretch_rule {
id 2
type replicated
step take default
step choose firstn 0 type datacenter
step chooseleaf firstn 2 type host
step emit
}
as a temporary workaround until the CrushWrapper problem is fixed.
RZ Updated by Radoslaw Zarzynski over 2 years ago
scrub note: this has been discussed during the last dev-user monthly. My recap:
- it's a corner-case thing with impact limited to a miscalculated metric,
- fixing requires touching crush which seems risky and makes people nervous,
- workarounds are available,
- the downstream QA confirmed the fix rectified the behavior.
The action plan: let's have this only in `main`.
LF Updated by Laura Flores over 2 years ago
Note from bug scrub: Radek reopened the PR and posted a question for Prashant.
RZ Updated by Radoslaw Zarzynski over 2 years ago
scrub note: got an update from Prashant: it has not been tested for excessive data reshuffling; the coverage will be extended.
LF Updated by Laura Flores over 2 years ago
- Tags (freeform) set to user-dev
Adding this tag since it was brought up at the User + Dev Meetup.
RZ Updated by Radoslaw Zarzynski over 2 years ago
scrub note: bump up.
RZ Updated by Radoslaw Zarzynski over 2 years ago
scrub note; bump up
LF Updated by Laura Flores over 2 years ago
- Tags set to user-dev
RZ Updated by Radoslaw Zarzynski over 2 years ago
scrub note: chatted with Prashant on checking whether the fix causes data shuffling.
First path of verification is just the testing with large enough amount of data – this is what the QA do.
Second is just about using two versions of `osdmaptool` and comparing all the acting sets – Prashant will work on that.
KS Updated by Konstantin Shalygin over 2 years ago
- Backport changed from pacific,quincy to quincy
RZ Updated by Radoslaw Zarzynski over 2 years ago
bump up.
KS Updated by Konstantin Shalygin over 2 years ago
- Target version set to v20.0.0
- Source set to Development
PD Updated by Prashant D over 2 years ago
- osdmap captured from one of the cluster having stretch rule defined with 2 take rule :
rule stretch_rule {
id 1
type replicated
step take DC1
step chooseleaf firstn 2 type host
step emit
step take DC2
step chooseleaf firstn 2 type host
step emit
}
[root@mgmt-0 ~]# ceph osd pool ls detail
pool 1 'device_health_metrics' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 1 pgp_num 1 autoscale_mode on last_change 1550 flags hashpspool stripe_width 0 pg_num_max 32 pg_num_min 1 application mgr_devicehealth
pool 2 'cephfs_data' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 1550 flags hashpspool stripe_width 0 application cephfs
pool 3 'cephfs_metadata' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 1550 flags hashpspool stripe_width 0 pg_autoscale_bias 4 pg_num_min 16 recovery_priority 5 application cephfs
pool 4 'cephfs_data2' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 1550 flags hashpspool stripe_width 0 application cephfs
pool 5 'cephfs_metadata2' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 1550 flags hashpspool stripe_width 0 pg_autoscale_bias 4 pg_num_min 16 recovery_priority 5 application cephfs
pool 6 'rbd_data' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 1550 flags hashpspool stripe_width 0
pool 7 'iscsi_data' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 1550 flags hashpspool stripe_width 0
pool 8 '.rgw.root' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 1550 flags hashpspool stripe_width 0 application rgw
pool 9 'default.rgw.log' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 1550 flags hashpspool stripe_width 0 application rgw
pool 10 'default.rgw.control' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 1550 flags hashpspool stripe_width 0 application rgw
pool 11 'default.rgw.meta' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 1550 flags hashpspool stripe_width 0 pg_autoscale_bias 4 application rgw
pool 13 'rbd' replicated size 4 min_size 2 crush_rule 1 object_hash rjenkins pg_num 256 pgp_num 256 autoscale_mode on last_change 1848 lfor 0/1386/1384 flags hashpspool stripe_width 0
pool 14 'testbench' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 32 pgp_num 32 autoscale_mode on last_change 1833 lfor 0/1833/1831 flags hashpspool stripe_width 0
[root@mgmt-0 ~]# ceph df
--- RAW STORAGE ---
CLASS SIZE AVAIL USED RAW USED %RAW USED
hdd 120 GiB 30 GiB 90 GiB 90 GiB 75.02
TOTAL 120 GiB 30 GiB 90 GiB 90 GiB 75.02
--- POOLS ---
POOL ID PGS STORED OBJECTS USED %USED MAX AVAIL
device_health_metrics 1 1 0 B 0 0 B 0 6.5 GiB
cephfs_data 2 32 0 B 0 0 B 0 6.5 GiB
cephfs_metadata 3 32 7.0 KiB 22 112 KiB 0 6.5 GiB
cephfs_data2 4 32 0 B 0 0 B 0 6.5 GiB
cephfs_metadata2 5 32 8.6 KiB 22 116 KiB 0 6.5 GiB
rbd_data 6 32 0 B 0 0 B 0 6.5 GiB
iscsi_data 7 32 0 B 0 0 B 0 6.5 GiB
.rgw.root 8 32 2.7 KiB 6 72 KiB 0 6.5 GiB
default.rgw.log 9 32 3.6 KiB 209 408 KiB 0 6.5 GiB
default.rgw.control 10 32 0 B 8 0 B 0 6.5 GiB
default.rgw.meta 11 32 382 B 2 24 KiB 0 6.5 GiB
rbd 13 256 22 GiB 5.52k 86 GiB 89.88 2.4 GiB
testbench 14 32 0 B 0 0 B 0 6.5 GiB
$ sudo ceph osd getmap -o testcluster536.cluster.osdmap.epoch1849.stretch_rule_bad.bin
[1] pg mapping for pool 13 using osdmaptool, ceph version 16.2.10-248.el8cp
[root@mgmt-0 /]# osdmaptool --test-map-pgs-dump --pool 13 /tmp/testcluster536.cluster.osdmap.epoch1849.stretch_rule_bad.bin osdmaptool: osdmap file '/tmp/testcluster536.cluster.osdmap.epoch1849.stretch_rule_bad.bin' pool 13 pg_num 256 13.0 [10,8,7,9] 10 13.1 [10,4,6,7] 10 13.2 [8,5,11,9] 8 13.3 [1,5,2,7] 1 13.4 [8,0,7,2] 8 13.5 [4,10,3,9] 4 13.6 [4,5,3,9] 4 13.7 [10,4,6,7] 10 13.8 [1,5,2,3] 1 13.9 [8,5,7,2] 8 13.a [5,8,2,11] 5 13.b [8,0,3,6] 8 13.c [5,8,6,3] 5 13.d [8,10,9,11] 8 13.e [8,5,3,6] 8 13.f [1,0,7,2] 1 13.10 [5,4,2,3] 5 13.11 [5,1,6,7] 5 13.12 [0,4,6,11] 0 13.13 [1,0,7,2] 1 13.14 [0,4,6,3] 0 13.15 [4,10,3,6] 4 13.16 [10,1,7,9] 10 13.17 [5,8,11,6] 5 13.18 [1,10,7,9] 1 13.19 [10,1,2,3] 10 13.1a [5,4,6,3] 5 13.1b [8,0,2,7] 8 13.1c [8,10,11,6] 8 13.1d [8,0,6,11] 8 13.1e [0,1,9,7] 0 13.1f [0,8,3,2] 0 13.20 [8,10,3,2] 8 13.21 [8,5,2,11] 8 13.22 [10,8,9,7] 10 13.23 [5,1,9,11] 5 13.24 [4,5,9,3] 4 13.25 [4,5,11,9] 4 13.26 [0,8,7,6] 0 13.27 [1,0,9,3] 1 13.28 [10,4,2,11] 10 13.29 [8,10,3,2] 8 13.2a [5,8,2,11] 5 13.2b [5,4,7,9] 5 13.2c [10,4,11,2] 10 13.2d [0,8,7,9] 0 13.2e [10,8,11,6] 10 13.2f [0,8,7,2] 0 13.30 [4,10,2,3] 4 13.31 [5,4,11,9] 5 13.32 [5,1,9,11] 5 13.33 [8,0,9,11] 8 13.34 [8,10,11,6] 8 13.35 [10,4,6,7] 10 13.36 [8,10,2,3] 8 13.37 [1,0,11,6] 1 13.38 [0,1,7,6] 0 13.39 [10,8,2,7] 10 13.3a [8,5,11,2] 8 13.3b [4,5,9,7] 4 13.3c [5,1,2,11] 5 13.3d [10,4,11,6] 10 13.3e [5,4,9,3] 5 13.3f [0,4,11,2] 0 13.40 [10,1,11,2] 10 13.41 [10,8,2,7] 10 13.42 [1,10,9,7] 1 13.43 [0,4,6,11] 0 13.44 [4,0,2,11] 4 13.45 [1,10,11,9] 1 13.46 [0,1,2,11] 0 13.47 [10,1,9,3] 10 13.48 [8,0,11,6] 8 13.49 [5,1,3,9] 5 13.4a [5,8,6,7] 5 13.4b [1,10,7,9] 1 13.4c [4,10,7,6] 4 13.4d [8,10,9,7] 8 13.4e [5,1,2,7] 5 13.4f [10,1,9,7] 10 13.50 [5,4,2,11] 5 13.51 [10,4,6,3] 10 13.52 [8,5,11,9] 8 13.53 [0,8,3,9] 0 13.54 [5,4,9,7] 5 13.55 [1,0,9,11] 1 13.56 [5,1,2,11] 5 13.57 [5,4,2,7] 5 13.58 [8,0,2,7] 8 13.59 [4,5,7,2] 4 13.5a [8,0,11,2] 8 13.5b [0,4,6,3] 0 13.5c [0,1,11,2] 0 13.5d [1,0,3,6] 1 13.5e [4,10,6,7] 4 13.5f [5,8,3,9] 5 13.60 [5,1,9,3] 5 13.61 [5,4,6,3] 5 13.62 [5,4,6,7] 5 13.63 [10,1,9,3] 10 13.64 [0,4,11,2] 0 13.65 [10,8,11,2] 10 13.66 [0,8,6,7] 0 13.67 [8,0,11,2] 8 13.68 [1,5,6,3] 1 13.69 [10,1,6,3] 10 13.6a [0,8,6,11] 0 13.6b [0,8,6,3] 0 13.6c [10,8,7,6] 10 13.6d [10,8,11,9] 10 13.6e [4,5,2,3] 4 13.6f [5,8,9,7] 5 13.70 [4,0,3,9] 4 13.71 [4,10,3,2] 4 13.72 [10,1,6,11] 10 13.73 [5,8,11,9] 5 13.74 [0,4,3,6] 0 13.75 [0,1,7,6] 0 13.76 [0,8,6,7] 0 13.77 [10,4,11,9] 10 13.78 [10,1,9,7] 10 13.79 [5,1,2,3] 5 13.7a [5,1,2,3] 5 13.7b [8,10,2,3] 8 13.7c [0,4,2,7] 0 13.7d [4,5,9,3] 4 13.7e [5,1,6,7] 5 13.7f [1,0,7,6] 1 13.80 [4,5,3,9] 4 13.81 [8,10,2,3] 8 13.82 [8,5,2,7] 8 13.83 [8,10,7,9] 8 13.84 [4,0,11,6] 4 13.85 [5,8,11,6] 5 13.86 [0,4,11,2] 0 13.87 [10,8,11,2] 10 13.88 [1,0,11,6] 1 13.89 [4,10,3,9] 4 13.8a [4,0,11,9] 4 13.8b [1,10,7,2] 1 13.8c [4,0,9,11] 4 13.8d [10,8,6,3] 10 13.8e [4,5,9,11] 4 13.8f [1,0,11,9] 1 13.90 [10,1,3,2] 10 13.91 [5,8,7,6] 5 13.92 [0,4,9,11] 0 13.93 [0,1,9,11] 0 13.94 [4,0,7,6] 4 13.95 [10,8,3,9] 10 13.96 [10,4,2,11] 10 13.97 [8,0,3,9] 8 13.98 [1,5,9,7] 1 13.99 [10,1,2,3] 10 13.9a [1,10,3,6] 1 13.9b [0,8,6,7] 0 13.9c [1,5,2,3] 1 13.9d [10,8,3,2] 10 13.9e [4,0,7,9] 4 13.9f [4,0,7,6] 4 13.a0 [5,4,6,7] 5 13.a1 [5,8,2,7] 5 13.a2 [1,10,3,9] 1 13.a3 [10,4,2,3] 10 13.a4 [4,10,3,9] 4 13.a5 [8,10,11,6] 8 13.a6 [4,10,9,11] 4 13.a7 [10,1,7,2] 10 13.a8 [5,1,3,6] 5 13.a9 [10,1,2,11] 10 13.aa [0,8,11,6] 0 13.ab [8,10,2,3] 8 13.ac [8,0,7,2] 8 13.ad [4,0,2,7] 4 13.ae [0,8,6,3] 0 13.af [0,4,7,9] 0 13.b0 [1,10,11,6] 1 13.b1 [0,1,9,7] 0 13.b2 [4,10,3,2] 4 13.b3 [4,10,7,9] 4 13.b4 [5,1,7,2] 5 13.b5 [8,0,3,9] 8 13.b6 [10,1,6,7] 10 13.b7 [10,8,3,6] 10 13.b8 [8,0,3,9] 8 13.b9 [8,10,6,3] 8 13.ba [5,4,6,7] 5 13.bb [4,0,2,3] 4 13.bc [0,1,3,2] 0 13.bd [5,1,7,6] 5 13.be [1,0,6,3] 1 13.bf [0,8,9,3] 0 13.c0 [5,8,3,6] 5 13.c1 [1,0,2,7] 1 13.c2 [4,10,6,7] 4 13.c3 [5,1,3,6] 5 13.c4 [0,4,6,3] 0 13.c5 [4,0,7,9] 4 13.c6 [8,5,2,7] 8 13.c7 [1,5,9,11] 1 13.c8 [4,0,6,7] 4 13.c9 [1,10,7,2] 1 13.ca [1,10,3,6] 1 13.cb [4,5,11,9] 4 13.cc [5,1,6,3] 5 13.cd [8,10,6,11] 8 13.ce [5,8,9,3] 5 13.cf [0,4,9,3] 0 13.d0 [4,0,9,11] 4 13.d1 [1,5,7,9] 1 13.d2 [5,8,11,2] 5 13.d3 [0,4,9,7] 0 13.d4 [10,1,3,2] 10 13.d5 [0,8,11,6] 0 13.d6 [10,1,6,3] 10 13.d7 [4,0,7,6] 4 13.d8 [5,1,7,2] 5 13.d9 [1,10,7,2] 1 13.da [4,5,11,2] 4 13.db [10,4,2,7] 10 13.dc [8,0,2,11] 8 13.dd [5,1,6,11] 5 13.de [10,1,9,11] 10 13.df [0,1,6,7] 0 13.e0 [4,0,7,9] 4 13.e1 [1,5,3,9] 1 13.e2 [0,4,2,11] 0 13.e3 [0,8,6,11] 0 13.e4 [0,1,11,2] 0 13.e5 [4,0,6,7] 4 13.e6 [10,1,11,2] 10 13.e7 [1,10,7,6] 1 13.e8 [8,0,11,9] 8 13.e9 [5,8,2,11] 5 13.ea [8,10,2,11] 8 13.eb [8,5,3,9] 8 13.ec [1,5,6,11] 1 13.ed [8,5,7,9] 8 13.ee [4,0,2,11] 4 13.ef [0,1,7,6] 0 13.f0 [8,10,3,6] 8 13.f1 [10,1,11,2] 10 13.f2 [1,10,2,11] 1 13.f3 [5,1,7,9] 5 13.f4 [8,10,6,11] 8 13.f5 [8,5,7,2] 8 13.f6 [5,4,6,3] 5 13.f7 [1,0,3,9] 1 13.f8 [0,1,9,3] 0 13.f9 [5,8,3,9] 5 13.fa [10,4,2,3] 10 13.fb [0,1,2,11] 0 13.fc [4,0,11,6] 4 13.fd [4,5,6,3] 4 13.fe [10,4,7,6] 10 13.ff [1,5,2,3] 1 #osd count first primary c wt wt osd.0 88 43 43 0.00999451 1 osd.1 86 35 35 0.00999451 1 osd.2 88 0 0 0.00999451 1 osd.3 85 0 0 0.00999451 1 osd.4 83 42 42 0.00999451 1 osd.5 81 48 48 0.00999451 1 osd.6 87 0 0 0.00999451 1 osd.7 87 0 0 0.00999451 1 osd.8 87 43 43 0.00999451 1 osd.9 81 0 0 0.00999451 1 osd.10 87 45 45 0.00999451 1 osd.11 84 0 0 0.00999451 1 in 12 avg 85 stddev 2.44949 (0.0288175x) (expected 8.84433 0.104051x)) min osd.5 81 max osd.0 88 size 4 256
[2] pool 13 pgs mapping for the same osdmap using osdmaptool from ceph version 19.0.0-5999-g7d2cadef3cf (7d2cadef3cf914697295d9002cca5eb7ba8613c7) squid (dev)
$ ./bin/osdmaptool --test-map-pgs-dump --pool 13 ~/testcluster536.cluster.osdmap.epoch1849.stretch_rule_bad.bin pool 13 pg_num 256 13.0 [10,8,7,9] 10 13.1 [10,4,6,7] 10 13.2 [8,5,11,9] 8 13.3 [1,5,2,7] 1 13.4 [8,0,7,2] 8 13.5 [4,10,3,9] 4 13.6 [4,5,3,9] 4 13.7 [10,4,6,7] 10 13.8 [1,5,2,3] 1 13.9 [8,5,7,2] 8 13.a [5,8,2,11] 5 13.b [8,0,3,6] 8 13.c [5,8,6,3] 5 13.d [8,10,9,11] 8 13.e [8,5,3,6] 8 13.f [1,0,7,2] 1 13.10 [5,4,2,3] 5 13.11 [5,1,6,7] 5 13.12 [0,4,6,11] 0 13.13 [1,0,7,2] 1 13.14 [0,4,6,3] 0 13.15 [4,10,3,6] 4 13.16 [10,1,7,9] 10 13.17 [5,8,11,6] 5 13.18 [1,10,7,9] 1 13.19 [10,1,2,3] 10 13.1a [5,4,6,3] 5 13.1b [8,0,2,7] 8 13.1c [8,10,11,6] 8 13.1d [8,0,6,11] 8 13.1e [0,1,9,7] 0 13.1f [0,8,3,2] 0 13.20 [8,10,3,2] 8 13.21 [8,5,2,11] 8 13.22 [10,8,9,7] 10 13.23 [5,1,9,11] 5 13.24 [4,5,9,3] 4 13.25 [4,5,11,9] 4 13.26 [0,8,7,6] 0 13.27 [1,0,9,3] 1 13.28 [10,4,2,11] 10 13.29 [8,10,3,2] 8 13.2a [5,8,2,11] 5 13.2b [5,4,7,9] 5 13.2c [10,4,11,2] 10 13.2d [0,8,7,9] 0 13.2e [10,8,11,6] 10 13.2f [0,8,7,2] 0 13.30 [4,10,2,3] 4 13.31 [5,4,11,9] 5 13.32 [5,1,9,11] 5 13.33 [8,0,9,11] 8 13.34 [8,10,11,6] 8 13.35 [10,4,6,7] 10 13.36 [8,10,2,3] 8 13.37 [1,0,11,6] 1 13.38 [0,1,7,6] 0 13.39 [10,8,2,7] 10 13.3a [8,5,11,2] 8 13.3b [4,5,9,7] 4 13.3c [5,1,2,11] 5 13.3d [10,4,11,6] 10 13.3e [5,4,9,3] 5 13.3f [0,4,11,2] 0 13.40 [10,1,11,2] 10 13.41 [10,8,2,7] 10 13.42 [1,10,9,7] 1 13.43 [0,4,6,11] 0 13.44 [4,0,2,11] 4 13.45 [1,10,11,9] 1 13.46 [0,1,2,11] 0 13.47 [10,1,9,3] 10 13.48 [8,0,11,6] 8 13.49 [5,1,3,9] 5 13.4a [5,8,6,7] 5 13.4b [1,10,7,9] 1 13.4c [4,10,7,6] 4 13.4d [8,10,9,7] 8 13.4e [5,1,2,7] 5 13.4f [10,1,9,7] 10 13.50 [5,4,2,11] 5 13.51 [10,4,6,3] 10 13.52 [8,5,11,9] 8 13.53 [0,8,3,9] 0 13.54 [5,4,9,7] 5 13.55 [1,0,9,11] 1 13.56 [5,1,2,11] 5 13.57 [5,4,2,7] 5 13.58 [8,0,2,7] 8 13.59 [4,5,7,2] 4 13.5a [8,0,11,2] 8 13.5b [0,4,6,3] 0 13.5c [0,1,11,2] 0 13.5d [1,0,3,6] 1 13.5e [4,10,6,7] 4 13.5f [5,8,3,9] 5 13.60 [5,1,9,3] 5 13.61 [5,4,6,3] 5 13.62 [5,4,6,7] 5 13.63 [10,1,9,3] 10 13.64 [0,4,11,2] 0 13.65 [10,8,11,2] 10 13.66 [0,8,6,7] 0 13.67 [8,0,11,2] 8 13.68 [1,5,6,3] 1 13.69 [10,1,6,3] 10 13.6a [0,8,6,11] 0 13.6b [0,8,6,3] 0 13.6c [10,8,7,6] 10 13.6d [10,8,11,9] 10 13.6e [4,5,2,3] 4 13.6f [5,8,9,7] 5 13.70 [4,0,3,9] 4 13.71 [4,10,3,2] 4 13.72 [10,1,6,11] 10 13.73 [5,8,11,9] 5 13.74 [0,4,3,6] 0 13.75 [0,1,7,6] 0 13.76 [0,8,6,7] 0 13.77 [10,4,11,9] 10 13.78 [10,1,9,7] 10 13.79 [5,1,2,3] 5 13.7a [5,1,2,3] 5 13.7b [8,10,2,3] 8 13.7c [0,4,2,7] 0 13.7d [4,5,9,3] 4 13.7e [5,1,6,7] 5 13.7f [1,0,7,6] 1 13.80 [4,5,3,9] 4 13.81 [8,10,2,3] 8 13.82 [8,5,2,7] 8 13.83 [8,10,7,9] 8 13.84 [4,0,11,6] 4 13.85 [5,8,11,6] 5 13.86 [0,4,11,2] 0 13.87 [10,8,11,2] 10 13.88 [1,0,11,6] 1 13.89 [4,10,3,9] 4 13.8a [4,0,11,9] 4 13.8b [1,10,7,2] 1 13.8c [4,0,9,11] 4 13.8d [10,8,6,3] 10 13.8e [4,5,9,11] 4 13.8f [1,0,11,9] 1 13.90 [10,1,3,2] 10 13.91 [5,8,7,6] 5 13.92 [0,4,9,11] 0 13.93 [0,1,9,11] 0 13.94 [4,0,7,6] 4 13.95 [10,8,3,9] 10 13.96 [10,4,2,11] 10 13.97 [8,0,3,9] 8 13.98 [1,5,9,7] 1 13.99 [10,1,2,3] 10 13.9a [1,10,3,6] 1 13.9b [0,8,6,7] 0 13.9c [1,5,2,3] 1 13.9d [10,8,3,2] 10 13.9e [4,0,7,9] 4 13.9f [4,0,7,6] 4 13.a0 [5,4,6,7] 5 13.a1 [5,8,2,7] 5 13.a2 [1,10,3,9] 1 13.a3 [10,4,2,3] 10 13.a4 [4,10,3,9] 4 13.a5 [8,10,11,6] 8 13.a6 [4,10,9,11] 4 13.a7 [10,1,7,2] 10 13.a8 [5,1,3,6] 5 13.a9 [10,1,2,11] 10 13.aa [0,8,11,6] 0 13.ab [8,10,2,3] 8 13.ac [8,0,7,2] 8 13.ad [4,0,2,7] 4 13.ae [0,8,6,3] 0 13.af [0,4,7,9] 0 13.b0 [1,10,11,6] 1 13.b1 [0,1,9,7] 0 13.b2 [4,10,3,2] 4 13.b3 [4,10,7,9] 4 13.b4 [5,1,7,2] 5 13.b5 [8,0,3,9] 8 13.b6 [10,1,6,7] 10 13.b7 [10,8,3,6] 10 13.b8 [8,0,3,9] 8 13.b9 [8,10,6,3] 8 13.ba [5,4,6,7] 5 13.bb [4,0,2,3] 4 13.bc [0,1,3,2] 0 13.bd [5,1,7,6] 5 13.be [1,0,6,3] 1 13.bf [0,8,9,3] 0 13.c0 [5,8,3,6] 5 13.c1 [1,0,2,7] 1 13.c2 [4,10,6,7] 4 13.c3 [5,1,3,6] 5 13.c4 [0,4,6,3] 0 13.c5 [4,0,7,9] 4 13.c6 [8,5,2,7] 8 13.c7 [1,5,9,11] 1 13.c8 [4,0,6,7] 4 13.c9 [1,10,7,2] 1 13.ca [1,10,3,6] 1 13.cb [4,5,11,9] 4 13.cc [5,1,6,3] 5 13.cd [8,10,6,11] 8 13.ce [5,8,9,3] 5 13.cf [0,4,9,3] 0 13.d0 [4,0,9,11] 4 13.d1 [1,5,7,9] 1 13.d2 [5,8,11,2] 5 13.d3 [0,4,9,7] 0 13.d4 [10,1,3,2] 10 13.d5 [0,8,11,6] 0 13.d6 [10,1,6,3] 10 13.d7 [4,0,7,6] 4 13.d8 [5,1,7,2] 5 13.d9 [1,10,7,2] 1 13.da [4,5,11,2] 4 13.db [10,4,2,7] 10 13.dc [8,0,2,11] 8 13.dd [5,1,6,11] 5 13.de [10,1,9,11] 10 13.df [0,1,6,7] 0 13.e0 [4,0,7,9] 4 13.e1 [1,5,3,9] 1 13.e2 [0,4,2,11] 0 13.e3 [0,8,6,11] 0 13.e4 [0,1,11,2] 0 13.e5 [4,0,6,7] 4 13.e6 [10,1,11,2] 10 13.e7 [1,10,7,6] 1 13.e8 [8,0,11,9] 8 13.e9 [5,8,2,11] 5 13.ea [8,10,2,11] 8 13.eb [8,5,3,9] 8 13.ec [1,5,6,11] 1 13.ed [8,5,7,9] 8 13.ee [4,0,2,11] 4 13.ef [0,1,7,6] 0 13.f0 [8,10,3,6] 8 13.f1 [10,1,11,2] 10 13.f2 [1,10,2,11] 1 13.f3 [5,1,7,9] 5 13.f4 [8,10,6,11] 8 13.f5 [8,5,7,2] 8 13.f6 [5,4,6,3] 5 13.f7 [1,0,3,9] 1 13.f8 [0,1,9,3] 0 13.f9 [5,8,3,9] 5 13.fa [10,4,2,3] 10 13.fb [0,1,2,11] 0 13.fc [4,0,11,6] 4 13.fd [4,5,6,3] 4 13.fe [10,4,7,6] 10 13.ff [1,5,2,3] 1 #osd count first primary c wt wt osd.0 88 43 43 0.00999451 1 osd.1 86 35 35 0.00999451 1 osd.2 88 0 0 0.00999451 1 osd.3 85 0 0 0.00999451 1 osd.4 83 42 42 0.00999451 1 osd.5 81 48 48 0.00999451 1 osd.6 87 0 0 0.00999451 1 osd.7 87 0 0 0.00999451 1 osd.8 87 43 43 0.00999451 1 osd.9 81 0 0 0.00999451 1 osd.10 87 45 45 0.00999451 1 osd.11 84 0 0 0.00999451 1 in 12 avg 85 stddev 2.44949 (0.0288175x) (expected 8.84433 0.104051x)) min osd.5 81 max osd.0 88 size 4 256
[3] pool 13 pgs mapping for the same osdmap using osdmaptool build on PR#47189 (rebased with main) branch, ceph version 18.0.0-13652-g9363f165a55 (9363f165a550f1791085d3a90f102d9a4227f7bc) squid (dev)
$ ./bin/osdmaptool --test-map-pgs-dump --pool 13 ~/testcluster536.cluster.osdmap.epoch1849.stretch_rule_bad.bin pool 13 pg_num 256 13.0 [10,8,7,9] 10 13.1 [10,4,6,7] 10 13.2 [8,5,11,9] 8 13.3 [1,5,2,7] 1 13.4 [8,0,7,2] 8 13.5 [4,10,3,9] 4 13.6 [4,5,3,9] 4 13.7 [10,4,6,7] 10 13.8 [1,5,2,3] 1 13.9 [8,5,7,2] 8 13.a [5,8,2,11] 5 13.b [8,0,3,6] 8 13.c [5,8,6,3] 5 13.d [8,10,9,11] 8 13.e [8,5,3,6] 8 13.f [1,0,7,2] 1 13.10 [5,4,2,3] 5 13.11 [5,1,6,7] 5 13.12 [0,4,6,11] 0 13.13 [1,0,7,2] 1 13.14 [0,4,6,3] 0 13.15 [4,10,3,6] 4 13.16 [10,1,7,9] 10 13.17 [5,8,11,6] 5 13.18 [1,10,7,9] 1 13.19 [10,1,2,3] 10 13.1a [5,4,6,3] 5 13.1b [8,0,2,7] 8 13.1c [8,10,11,6] 8 13.1d [8,0,6,11] 8 13.1e [0,1,9,7] 0 13.1f [0,8,3,2] 0 13.20 [8,10,3,2] 8 13.21 [8,5,2,11] 8 13.22 [10,8,9,7] 10 13.23 [5,1,9,11] 5 13.24 [4,5,9,3] 4 13.25 [4,5,11,9] 4 13.26 [0,8,7,6] 0 13.27 [1,0,9,3] 1 13.28 [10,4,2,11] 10 13.29 [8,10,3,2] 8 13.2a [5,8,2,11] 5 13.2b [5,4,7,9] 5 13.2c [10,4,11,2] 10 13.2d [0,8,7,9] 0 13.2e [10,8,11,6] 10 13.2f [0,8,7,2] 0 13.30 [4,10,2,3] 4 13.31 [5,4,11,9] 5 13.32 [5,1,9,11] 5 13.33 [8,0,9,11] 8 13.34 [8,10,11,6] 8 13.35 [10,4,6,7] 10 13.36 [8,10,2,3] 8 13.37 [1,0,11,6] 1 13.38 [0,1,7,6] 0 13.39 [10,8,2,7] 10 13.3a [8,5,11,2] 8 13.3b [4,5,9,7] 4 13.3c [5,1,2,11] 5 13.3d [10,4,11,6] 10 13.3e [5,4,9,3] 5 13.3f [0,4,11,2] 0 13.40 [10,1,11,2] 10 13.41 [10,8,2,7] 10 13.42 [1,10,9,7] 1 13.43 [0,4,6,11] 0 13.44 [4,0,2,11] 4 13.45 [1,10,11,9] 1 13.46 [0,1,2,11] 0 13.47 [10,1,9,3] 10 13.48 [8,0,11,6] 8 13.49 [5,1,3,9] 5 13.4a [5,8,6,7] 5 13.4b [1,10,7,9] 1 13.4c [4,10,7,6] 4 13.4d [8,10,9,7] 8 13.4e [5,1,2,7] 5 13.4f [10,1,9,7] 10 13.50 [5,4,2,11] 5 13.51 [10,4,6,3] 10 13.52 [8,5,11,9] 8 13.53 [0,8,3,9] 0 13.54 [5,4,9,7] 5 13.55 [1,0,9,11] 1 13.56 [5,1,2,11] 5 13.57 [5,4,2,7] 5 13.58 [8,0,2,7] 8 13.59 [4,5,7,2] 4 13.5a [8,0,11,2] 8 13.5b [0,4,6,3] 0 13.5c [0,1,11,2] 0 13.5d [1,0,3,6] 1 13.5e [4,10,6,7] 4 13.5f [5,8,3,9] 5 13.60 [5,1,9,3] 5 13.61 [5,4,6,3] 5 13.62 [5,4,6,7] 5 13.63 [10,1,9,3] 10 13.64 [0,4,11,2] 0 13.65 [10,8,11,2] 10 13.66 [0,8,6,7] 0 13.67 [8,0,11,2] 8 13.68 [1,5,6,3] 1 13.69 [10,1,6,3] 10 13.6a [0,8,6,11] 0 13.6b [0,8,6,3] 0 13.6c [10,8,7,6] 10 13.6d [10,8,11,9] 10 13.6e [4,5,2,3] 4 13.6f [5,8,9,7] 5 13.70 [4,0,3,9] 4 13.71 [4,10,3,2] 4 13.72 [10,1,6,11] 10 13.73 [5,8,11,9] 5 13.74 [0,4,3,6] 0 13.75 [0,1,7,6] 0 13.76 [0,8,6,7] 0 13.77 [10,4,11,9] 10 13.78 [10,1,9,7] 10 13.79 [5,1,2,3] 5 13.7a [5,1,2,3] 5 13.7b [8,10,2,3] 8 13.7c [0,4,2,7] 0 13.7d [4,5,9,3] 4 13.7e [5,1,6,7] 5 13.7f [1,0,7,6] 1 13.80 [4,5,3,9] 4 13.81 [8,10,2,3] 8 13.82 [8,5,2,7] 8 13.83 [8,10,7,9] 8 13.84 [4,0,11,6] 4 13.85 [5,8,11,6] 5 13.86 [0,4,11,2] 0 13.87 [10,8,11,2] 10 13.88 [1,0,11,6] 1 13.89 [4,10,3,9] 4 13.8a [4,0,11,9] 4 13.8b [1,10,7,2] 1 13.8c [4,0,9,11] 4 13.8d [10,8,6,3] 10 13.8e [4,5,9,11] 4 13.8f [1,0,11,9] 1 13.90 [10,1,3,2] 10 13.91 [5,8,7,6] 5 13.92 [0,4,9,11] 0 13.93 [0,1,9,11] 0 13.94 [4,0,7,6] 4 13.95 [10,8,3,9] 10 13.96 [10,4,2,11] 10 13.97 [8,0,3,9] 8 13.98 [1,5,9,7] 1 13.99 [10,1,2,3] 10 13.9a [1,10,3,6] 1 13.9b [0,8,6,7] 0 13.9c [1,5,2,3] 1 13.9d [10,8,3,2] 10 13.9e [4,0,7,9] 4 13.9f [4,0,7,6] 4 13.a0 [5,4,6,7] 5 13.a1 [5,8,2,7] 5 13.a2 [1,10,3,9] 1 13.a3 [10,4,2,3] 10 13.a4 [4,10,3,9] 4 13.a5 [8,10,11,6] 8 13.a6 [4,10,9,11] 4 13.a7 [10,1,7,2] 10 13.a8 [5,1,3,6] 5 13.a9 [10,1,2,11] 10 13.aa [0,8,11,6] 0 13.ab [8,10,2,3] 8 13.ac [8,0,7,2] 8 13.ad [4,0,2,7] 4 13.ae [0,8,6,3] 0 13.af [0,4,7,9] 0 13.b0 [1,10,11,6] 1 13.b1 [0,1,9,7] 0 13.b2 [4,10,3,2] 4 13.b3 [4,10,7,9] 4 13.b4 [5,1,7,2] 5 13.b5 [8,0,3,9] 8 13.b6 [10,1,6,7] 10 13.b7 [10,8,3,6] 10 13.b8 [8,0,3,9] 8 13.b9 [8,10,6,3] 8 13.ba [5,4,6,7] 5 13.bb [4,0,2,3] 4 13.bc [0,1,3,2] 0 13.bd [5,1,7,6] 5 13.be [1,0,6,3] 1 13.bf [0,8,9,3] 0 13.c0 [5,8,3,6] 5 13.c1 [1,0,2,7] 1 13.c2 [4,10,6,7] 4 13.c3 [5,1,3,6] 5 13.c4 [0,4,6,3] 0 13.c5 [4,0,7,9] 4 13.c6 [8,5,2,7] 8 13.c7 [1,5,9,11] 1 13.c8 [4,0,6,7] 4 13.c9 [1,10,7,2] 1 13.ca [1,10,3,6] 1 13.cb [4,5,11,9] 4 13.cc [5,1,6,3] 5 13.cd [8,10,6,11] 8 13.ce [5,8,9,3] 5 13.cf [0,4,9,3] 0 13.d0 [4,0,9,11] 4 13.d1 [1,5,7,9] 1 13.d2 [5,8,11,2] 5 13.d3 [0,4,9,7] 0 13.d4 [10,1,3,2] 10 13.d5 [0,8,11,6] 0 13.d6 [10,1,6,3] 10 13.d7 [4,0,7,6] 4 13.d8 [5,1,7,2] 5 13.d9 [1,10,7,2] 1 13.da [4,5,11,2] 4 13.db [10,4,2,7] 10 13.dc [8,0,2,11] 8 13.dd [5,1,6,11] 5 13.de [10,1,9,11] 10 13.df [0,1,6,7] 0 13.e0 [4,0,7,9] 4 13.e1 [1,5,3,9] 1 13.e2 [0,4,2,11] 0 13.e3 [0,8,6,11] 0 13.e4 [0,1,11,2] 0 13.e5 [4,0,6,7] 4 13.e6 [10,1,11,2] 10 13.e7 [1,10,7,6] 1 13.e8 [8,0,11,9] 8 13.e9 [5,8,2,11] 5 13.ea [8,10,2,11] 8 13.eb [8,5,3,9] 8 13.ec [1,5,6,11] 1 13.ed [8,5,7,9] 8 13.ee [4,0,2,11] 4 13.ef [0,1,7,6] 0 13.f0 [8,10,3,6] 8 13.f1 [10,1,11,2] 10 13.f2 [1,10,2,11] 1 13.f3 [5,1,7,9] 5 13.f4 [8,10,6,11] 8 13.f5 [8,5,7,2] 8 13.f6 [5,4,6,3] 5 13.f7 [1,0,3,9] 1 13.f8 [0,1,9,3] 0 13.f9 [5,8,3,9] 5 13.fa [10,4,2,3] 10 13.fb [0,1,2,11] 0 13.fc [4,0,11,6] 4 13.fd [4,5,6,3] 4 13.fe [10,4,7,6] 10 13.ff [1,5,2,3] 1 #osd count first primary c wt wt osd.0 88 43 43 0.00999451 1 osd.1 86 35 35 0.00999451 1 osd.2 88 0 0 0.00999451 1 osd.3 85 0 0 0.00999451 1 osd.4 83 42 42 0.00999451 1 osd.5 81 48 48 0.00999451 1 osd.6 87 0 0 0.00999451 1 osd.7 87 0 0 0.00999451 1 osd.8 87 43 43 0.00999451 1 osd.9 81 0 0 0.00999451 1 osd.10 87 45 45 0.00999451 1 osd.11 84 0 0 0.00999451 1 in 12 avg 85 stddev 2.44949 (0.0288175x) (expected 8.84433 0.104051x)) min osd.5 81 max osd.0 88 size 4 256
We donot see any pg mapping difference using osdmaptool which proves that the PR#47189 changes does not cause data shuffling
$ diff3 /tmp/testcluster536.cluster_pg_mapping_pool13.txt /tmp/main_branch_pg_mapping_pool13.txt /tmp/wip-crush-df_branch_pg_mapping_pool13.txt
NOTE : The files used in diff3 command contains the osdmaptool command outputs from above.
RZ Updated by Radoslaw Zarzynski about 2 years ago
scrub note: approved.
KS Updated by Konstantin Shalygin almost 2 years ago
- Backport deleted (
quincy)