Properly disable autoscaling PGs
This commit is contained in:
parent
b267db8474
commit
6908f7070c
|
@ -387,8 +387,17 @@
|
||||||
- name: disable default pg autoscaler
|
- name: disable default pg autoscaler
|
||||||
command: ceph config set global osd_pool_default_pg_autoscale_mode off
|
command: ceph config set global osd_pool_default_pg_autoscale_mode off
|
||||||
|
|
||||||
- name: disable pg autoscaler
|
- name: get pools
|
||||||
command: ceph osd pool set noautoscale
|
shell: "ceph osd lspools | awk '{ $1=\"\"; print $0 }' | tr -d ' '"
|
||||||
|
register: pool_output
|
||||||
|
|
||||||
|
- name: set pools fact
|
||||||
|
set_fact:
|
||||||
|
ceph_pools: "{{ pool_output.stdout.split('\n') | list }}"
|
||||||
|
|
||||||
|
- name: disable pg autoscaler on each pool
|
||||||
|
command: "ceph osd pool set {{ item }} pg_autoscale_mode off"
|
||||||
|
loop: "{{ ceph_pools }}"
|
||||||
|
|
||||||
- name: set OSDs to require pacific
|
- name: set OSDs to require pacific
|
||||||
command: ceph osd require-osd-release pacific
|
command: ceph osd require-osd-release pacific
|
||||||
|
|
Loading…
Reference in New Issue