Please help me with some advice. In my test scheme with three data centers, I need to create an Erasure Code pool for cold data.
I used the documentation
https://pve.proxmox.com/pve-docs/chapter-pveceph.html#pve_ceph_ec_pools
My chosen k=6,m=3 (I also tried from the documentation k=4,m=2) in the command
Change the state of the cluster
I used the documentation
https://pve.proxmox.com/pve-docs/chapter-pveceph.html#pve_ceph_ec_pools
My chosen k=6,m=3 (I also tried from the documentation k=4,m=2) in the command
Bash:
# pveceph pool create ECpool --erasure-coding k=6,m=3,failure-domain=datacenter
Rich (BB code):
created new erasure code profile 'pve_ec_ECpool'
pool ECpool-data: applying allow_ec_overwrites = true
pool ECpool-data: applying application = rbd
pool ECpool-data: applying pg_autoscale_mode = warn
pool ECpool-data: applying pg_num = 128
pool ECpool-metadata: applying size = 3
pool ECpool-metadata: applying application = rbd
pool ECpool-metadata: applying min_size = 2
pool ECpool-metadata: applying pg_autoscale_mode = warn
pool ECpool-metadata: applying pg_num = 32
Change the state of the cluster
Rich (BB code):
HEALTH_WARN Reduced data availability: 128 pgs inactive, 128 pgs incomplete
[WRN] PG_AVAILABILITY: Reduced data availability: 128 pgs inactive, 128 pgs incomplete
pg 8.40 is stuck inactive for 85s, current state creating+incomplete, last acting [28,NONE,NONE,6,13,NONE,NONE,NONE,NONE] (reducing pool ECpool-data min_size from 7 may help; search ceph.com/docs for 'incomplete')
pg 8.41 is creating+incomplete, acting [21,12,28,NONE,NONE,NONE,NONE,NONE,NONE] (reducing pool ECpool-data min_size from 7 may help; search ceph.com/docs for 'incomplete')
....
Rich (BB code):
cluster:
id: dfce5bc5-428f-4ede-af8d-2d801e84578e
health: HEALTH_WARN
Reduced data availability: 128 pgs inactive, 128 pgs incomplete
services:
mon: 3 daemons, quorum pn1,pn2,pn3 (age 85m)
mgr: pn1(active, since 85m), standbys: pn2, pn3
osd: 34 osds: 34 up (since 77m), 34 in (since 45h)
data:
pools: 4 pools, 289 pgs
objects: 1.10k objects, 4.2 GiB
usage: 14 GiB used, 116 GiB / 131 GiB avail
pgs: 44.291% pgs not active
161 active+clean
128 creating+incomplete
Rich (BB code):
"active": true,
"last_optimize_duration": "0:00:00.000194",
"last_optimize_started": "Fri Mar 15 11:27:46 2024",
"mode": "upmap",
"no_optimization_needed": true,
"optimize_result": "Some PGs (0.442907) are inactive; try again later",
"plans": []
Rich (BB code):
ID CLASS WEIGHT TYPE NAME STATUS REWEIGHT PRI-AFF
-1 0.12711 root default
-33 0.04410 datacenter dc1
-3 0.01556 host pn1
0 hdd 0.00389 osd.0 up 1.00000 1.00000
1 hdd 0.00389 osd.1 up 1.00000 1.00000
2 hdd 0.00389 osd.2 up 1.00000 1.00000
3 hdd 0.00389 osd.3 up 1.00000 1.00000
-23 0.00130 host pn13
25 hdd 0.00130 osd.25 up 1.00000 1.00000
-25 0.00389 host pn16
26 hdd 0.00389 osd.26 up 1.00000 1.00000
-27 0.00389 host pn17
27 hdd 0.00389 osd.27 up 1.00000 1.00000
-29 0.00389 host pn18
28 hdd 0.00389 osd.28 up 1.00000 1.00000
-11 0.01556 host pn5
16 hdd 0.00389 osd.16 up 1.00000 1.00000
17 hdd 0.00389 osd.17 up 1.00000 1.00000
18 hdd 0.00389 osd.18 up 1.00000 1.00000
19 hdd 0.00389 osd.19 up 1.00000 1.00000
-34 0.04799 datacenter dc2
-17 0.00778 host pn10
22 hdd 0.00389 osd.22 up 1.00000 1.00000
32 hdd 0.00389 osd.32 up 1.00000 1.00000
-19 0.00778 host pn11
23 hdd 0.00389 osd.23 up 1.00000 1.00000
33 hdd 0.00389 osd.33 up 1.00000 1.00000
-21 0.00389 host pn12
24 hdd 0.00389 osd.24 up 1.00000 1.00000
-5 0.01556 host pn2
4 hdd 0.00389 osd.4 up 1.00000 1.00000
5 hdd 0.00389 osd.5 up 1.00000 1.00000
6 hdd 0.00389 osd.6 up 1.00000 1.00000
7 hdd 0.00389 osd.7 up 1.00000 1.00000
-13 0.00908 host pn6
20 hdd 0.00130 osd.20 up 1.00000 1.00000
30 hdd 0.00389 osd.30 up 1.00000 1.00000
31 hdd 0.00389 osd.31 up 1.00000 1.00000
-15 0.00389 host pn9
21 hdd 0.00389 osd.21 up 1.00000 1.00000
-37 0.03502 datacenter dc3
-31 0.00389 host pn19
29 hdd 0.00389 osd.29 up 1.00000 1.00000
-7 0.01556 host pn3
8 hdd 0.00389 osd.8 up 1.00000 1.00000
9 hdd 0.00389 osd.9 up 1.00000 1.00000
10 hdd 0.00389 osd.10 up 1.00000 1.00000
11 hdd 0.00389 osd.11 up 1.00000 1.00000
-9 0.01556 host pn4
12 hdd 0.00389 osd.12 up 1.00000 1.00000
13 hdd 0.00389 osd.13 up 1.00000 1.00000
14 hdd 0.00389 osd.14 up 1.00000 1.00000
15 hdd 0.00389 osd.15 up 1.00000 1.00000