zfs_trim entfernt (#38)

zfs_trim entfernt

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#38
Co-Authored-By: mg <mg@noreply.git.mgrote.net>
Co-Committed-By: mg <mg@noreply.git.mgrote.net>
This commit is contained in:
Michael Grote 2021-03-13 22:11:10 +01:00
parent 20252c8b1c
commit c0ef189607
11 changed files with 0 additions and 40 deletions

View file

@ -50,7 +50,6 @@
zfs_extra_arc_max_size: "2147483648" # 2GB in Bytes
zfs_extra_zfs_pools:
- name: "rpool"
type: "ssd"
cron_minute_zfs_trim: "5"
cron_hour_zfs_trim: "22"
cron_month_zfs_trim: "4,8,12"
@ -59,7 +58,6 @@
cron_minutes_zfs_scrub: "0"
cron_hour_zfs_scrub: "23"
- name: "hdd_vm_mirror"
type: "hdd"
cron_minute_zfs_trim: "5"
cron_hour_zfs_trim: "23"
cron_month_zfs_trim: "4,8,12"

View file

@ -48,7 +48,6 @@
zfs_extra_max_usage_health: "75"
zfs_extra_zfs_pools:
- name: "rpool"
type: "ssd"
cron_minute_zfs_trim: "5"
cron_hour_zfs_trim: "22"
cron_month_zfs_trim: "4,8,12"
@ -57,7 +56,6 @@
cron_minutes_zfs_scrub: "0"
cron_hour_zfs_scrub: "23"
- name: "hdd_data_raidz"
type: "hdd"
cron_minute_zfs_trim: "5"
cron_hour_zfs_trim: "24"
cron_month_zfs_trim: "4,8,12"

View file

@ -38,7 +38,6 @@
zfs_extra_arc_max_size: "2147483648" # 2GB in Bytes
zfs_extra_zfs_pools:
- name: "rpool"
type: "ssd"
cron_minute_zfs_trim: "5"
cron_hour_zfs_trim: "22"
cron_month_zfs_trim: "4,8,12"

View file

@ -38,7 +38,6 @@
zfs_extra_arc_max_size: "6442450944" # 6GB in Bytes
zfs_extra_zfs_pools:
- name: "rpool"
type: "ssd"
cron_minute_zfs_trim: "5"
cron_hour_zfs_trim: "22"
cron_month_zfs_trim: "4,8,12"

View file

@ -38,7 +38,6 @@
zfs_extra_arc_max_size: "2147483648" # 2GB in Bytes
zfs_extra_zfs_pools:
- name: "rpool"
type: "ssd"
cron_minute_zfs_trim: "5"
cron_hour_zfs_trim: "22"
cron_month_zfs_trim: "4,8,12"

View file

@ -38,7 +38,6 @@
zfs_extra_arc_max_size: "6442450944" # 6GB in Bytes
zfs_extra_zfs_pools:
- name: "rpool"
type: "ssd"
cron_minute_zfs_trim: "5"
cron_hour_zfs_trim: "22"
cron_month_zfs_trim: "4,8,12"

View file

@ -5,7 +5,6 @@
- { role: mgrote.zfs_arc_mem, tags: "zfs_arc_mem" }
- { role: mgrote.zfs_manage_datasets, tags: "datasets" }
- { role: mgrote.zfs_scrub, tags: "zfs_scrub" }
- { role: mgrote.zfs_trim, tags: "zfs_trim" }
- { role: mgrote.zfs_zed, tags: "zfs_zed" }
- { role: mgrote.zfs_health, tags: "zfs_health" }
- { role: mgrote.zfs_sanoid,

View file

@ -1,12 +0,0 @@
## mgrote.zfs_trim
### Beschreibung
Richtet regelmaessigen Trim(alle 4 Monate) ein.
### Funktioniert auf
- [x] ProxMox 6.1
### Variablen + Defaults
- see [defaults](./defaults/main.yml)
- Variablen für mgrote.zfs_health/trim/scrub/zed/arc_mem/ sind zusammengefasst unter zfs_extra_*

View file

@ -1,2 +0,0 @@
---
zfs_extra_path_zpool: "/usr/sbin/zpool"

View file

@ -1,3 +0,0 @@
---
dependencies:
- role: mgrote.zfs_packages

View file

@ -1,14 +0,0 @@
---
- name: add cronjob "zfs-trim"
become: yes
ansible.builtin.cron:
name: zfs-trim - "{{ item.name }}"
state: present
job: "{{ zfs_extra_path_zpool }} trim {{ item.name }}"
minute: "{{ item.cron_minute_zfs_trim }}"
hour: "{{ item.cron_hour_zfs_trim }}"
month: "{{ item.cron_month_zfs_trim }}"
day: "{{ item.cron_day_zfs_trim }}"
# disabled: yes
when: item.type == 'ssd'
with_items: "{{ zfs_extra_zfs_pools }}"