Update to 2022-03-07 17:00

This commit is contained in:
Daniel Berteaud
2022-03-07 17:00:06 +01:00
parent 1065df387c
commit 714e44f5c5
42 changed files with 92 additions and 136 deletions

View File

@@ -11,9 +11,6 @@ pve_ksm_thres_coef: 35
pve_ksm_thres_const: 8000
pve_ksm_npages_boost: 1200
pve_ocfs2: False
pve_ocfs2_heartbeat_thres: 8
pve_online: False
# pve_online_api_key:
pve_wan_bridge: vmbr1

View File

@@ -1,14 +1,8 @@
---
- include: ../common/handlers/main.yml
- name: restart ksmtuned
service: name=ksmtuned state=restarted
- name: restart o2cb
service: name=o2cb state=restarted
when: pve_ocfs2 == True
- name: restart pveproxy
service: name=pveproxy state=restarted

View File

@@ -36,16 +36,6 @@
when: pve_modules.changed
tags: pve
- name: Enable ocfs2 support
set_fact: pve_ocfs2=True
when: fstab | default([]) | selectattr('fstype','equalto','ocfs2') | list | length > 0
tags: pve
- name: Install ocfs2 support
apt: name=ocfs2-tools state=present
when: pve_ocfs2 == True
tags: pve
- name: Check proxmox cluster status
command: pvesh get /cluster/status --output-format=json
register: pve_cluster_status_1
@@ -70,22 +60,6 @@
when: pve_cluster_status_1.rc != 0
tags: pve
- name: Deploy ocfs2 config
template: src=ocfs2.conf.j2 dest=/etc/ocfs2/cluster.conf
when: pve_ocfs2 == True
notify: restart o2cb
tags: pve
- name: Deploy o2cb conf
template: src=o2cb.j2 dest=/etc/default/o2cb
when: pve_ocfs2 == True
tags: pve
- name: Handle o2cb service
service: name=o2cb state=started enabled=True
when: pve_ocfs2 == True
tags: pve
- name: Deploy the unlock_dev script
copy: src=unlock_dev dest=/usr/local/bin/unlock_dev mode=755
tags: pve

View File

@@ -1,17 +0,0 @@
# O2CB_ENABLED: 'true' means to load the driver on boot.
O2CB_ENABLED=true
# O2CB_BOOTCLUSTER: If not empty, the name of a cluster to start.
O2CB_BOOTCLUSTER=ocfs2
# O2CB_HEARTBEAT_THRESHOLD: Iterations before a node is considered dead.
O2CB_HEARTBEAT_THRESHOLD={{ pve_ocfs2_heartbeat_thres }}
# O2CB_IDLE_TIMEOUT_MS: Time in ms before a network connection is considered dead.
O2CB_IDLE_TIMEOUT_MS=30000
# O2CB_KEEPALIVE_DELAY_MS: Max. time in ms before a keepalive packet is sent.
O2CB_KEEPALIVE_DELAY_MS=2000
# O2CB_RECONNECT_DELAY_MS: Min. time in ms between connection attempts.
O2CB_RECONNECT_DELAY_MS=2000

View File

@@ -1,12 +0,0 @@
{% for element in pve_cluster | selectattr("type","equalto","node") | sort(attribute='id')%}
node:
ip_port = 7777
ip_address = {{ element.ip }}
number = {{ loop.index0 }}
name = {{ element.name }}
cluster = ocfs2
{% endfor %}
cluster:
node_count = {{ pve_cluster | selectattr("type","equalto","node") | list | length }}
name = ocfs2