2021-02-07 12:46:03 +01:00
|
|
|
---
|
|
|
|
### mgrote.zfs_manage_datasets
|
2021-02-25 07:43:04 +01:00
|
|
|
# rpool
|
2022-02-07 20:24:21 +01:00
|
|
|
# zpool create -f -o ashift=12 rpool mirror /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1 /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi2
|
2021-02-07 12:46:03 +01:00
|
|
|
# HDD_DATA_RAIDZ
|
2022-02-07 20:24:21 +01:00
|
|
|
# zpool create -f -o ashift=12 hdd_data_raidz raidz /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi3 /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi4 /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi5
|
2021-02-18 08:36:43 +01:00
|
|
|
zfs_datasets: # DatenPools werden hier nicht verwaltet
|
|
|
|
- dataset: rpool/vm
|
|
|
|
state: present
|
|
|
|
compression: lz4
|
|
|
|
sync: disabled
|
|
|
|
xattr: sa
|
|
|
|
dnodesize: auto
|
|
|
|
atime: on
|
|
|
|
snapdir: hidden
|
2021-02-12 22:26:26 +01:00
|
|
|
- dataset: rpool/vm/dir
|
2021-02-07 12:46:03 +01:00
|
|
|
state: present
|
|
|
|
compression: lz4
|
|
|
|
sync: disabled
|
|
|
|
xattr: sa
|
|
|
|
dnodesize: auto
|
|
|
|
atime: on
|
|
|
|
snapdir: hidden
|
2021-02-12 22:26:26 +01:00
|
|
|
- dataset: rpool/vm/zvol
|
2021-02-07 12:46:03 +01:00
|
|
|
state: present
|
|
|
|
compression: lz4
|
|
|
|
sync: disabled
|
|
|
|
xattr: sa
|
|
|
|
dnodesize: auto
|
|
|
|
atime: on
|
|
|
|
snapdir: hidden
|
2021-02-12 22:26:26 +01:00
|
|
|
- dataset: rpool/vm/qcow
|
|
|
|
state: present
|
|
|
|
compression: lz4
|
|
|
|
sync: disabled
|
|
|
|
xattr: sa
|
|
|
|
dnodesize: auto
|
|
|
|
atime: on
|
|
|
|
snapdir: hidden
|
2022-04-03 11:04:27 +02:00
|
|
|
- dataset: hdd_data_raidz/snapshot_test
|
|
|
|
state: present
|
|
|
|
compression: lz4
|
|
|
|
sync: disabled
|
|
|
|
xattr: sa
|
|
|
|
dnodesize: auto
|
|
|
|
atime: on
|
|
|
|
snapdir: hidden
|
2021-02-12 22:26:26 +01:00
|
|
|
|
2021-02-13 16:18:29 +01:00
|
|
|
### mgrote.zfs_extra # Variablen für mgrote.zfs_health/trim/scrub/zed/arc_mem/ sind zusammengefasst unter zfs_extra_*
|
|
|
|
zfs_extra_arc_max_size: "2147483648" # 2GB in Bytes
|
|
|
|
zfs_extra_zfs_pools:
|
2021-03-07 10:10:05 +01:00
|
|
|
- name: "rpool"
|
2022-03-19 13:28:41 +01:00
|
|
|
systemd_timer_schedule: "*-01,04,07,10-01 23:00"
|
2021-02-12 10:32:22 +01:00
|
|
|
- name: "hdd_vm_mirror"
|
2022-03-19 13:28:41 +01:00
|
|
|
systemd_timer_schedule: "*-01,04,07,10-01 23:00"
|
2022-03-28 14:48:31 +02:00
|
|
|
|
|
|
|
### mgrote.cv4pve-autosnap
|
|
|
|
cv4pve_api_user: root@pam!cv4pve-autosnap
|
|
|
|
cv4pve_api_token: "{{ lookup('keepass', 'cv4pve_api_token_pve2-test2', 'password') }}"
|
|
|
|
cv4pve_vmid: all,-127,-112,-100,-116,-105
|
|
|
|
cv4pve_keep_snapshots: 5
|
|
|
|
cv4pve_dl_link: "https://github.com/Corsinvest/cv4pve-autosnap/releases/download/v1.10.0/cv4pve-autosnap-linux-x64.zip"
|
2022-04-03 11:04:27 +02:00
|
|
|
|
|
|
|
### mgrote.zfs_sanoid
|
|
|
|
sanoid_datasets:
|
|
|
|
- path: 'hdd_data_raidz/snapshot_test'
|
|
|
|
template: '14tage'
|
|
|
|
recursive: 'yes'
|
|
|
|
snapshots: true
|