2021-02-07 10:53:08 +01:00
|
|
|
---
|
2021-02-07 12:46:03 +01:00
|
|
|
### mgrote.zfs_manage_datasets
|
|
|
|
# zfs create -o encryption=aes-256-gcm -o keyformat=passphrase hdd_data_raidz/data_crypt
|
|
|
|
# zfs create hdd_data_raidz/videos
|
|
|
|
# Pools müssen vorher erstellt sein!
|
2021-02-12 22:26:26 +01:00
|
|
|
# rpool
|
2022-05-27 11:36:06 +02:00
|
|
|
# zpool create -f -o ashift=12 rpool mirror ata-SAMSUNG_MZ7LH960HAJR-00005_S45NNC0R105094 /dev/disk/by-id/ata-SAMSUNG_MZ7LH960HAJR-00005_S45NNC0R105095 mirror /dev/disk/by-id/ata-SAMSUNG_MZ7LH960HAJR-00005_S45NNC0T380959 /dev/disk/by-id/ata-SAMSUNG_MZ7LH960HAJR-00005_S45NNC0T380961 # ungetestet, wurde nachträglich erweitert
|
2021-02-07 12:46:03 +01:00
|
|
|
# HDD_DATA_RAIDZ
|
2022-06-17 11:30:48 +02:00
|
|
|
# zpool create -f -o ashift=12 hdd_data_raidz raidz /dev/disk/by-id/ata-WDC_WD80EZAZ-11TDBA0_2SG991TJ /dev/disk/by-id/ata-WDC_WD80EZAZ-11TDBA0_2SGA23EJ /dev/disk/by-id/ata-ST8000DM004-2CX188_ZCT1AK0F (alt)
|
|
|
|
# sudo zpool create -o ashift=12 -o feature@encryption=enabled -O encryption=on -O keylocation=prompt -O keyformat=passphrase hdd_data_raidz_neu mirror /dev/disk/by-id/ata-TOSHIBA_MG09ACA18TE_Z1B0A27KFJDH /dev/disk/by-id/ata-TOSHIBA_MG09ACA18TE_Z1B0A28LFJDH (neu)
|
2021-10-09 20:23:23 +02:00
|
|
|
|
|
|
|
|
|
|
|
### mgrote.zfs_extra
|
|
|
|
# Variablen für mgrote.zfs_health/trim/scrub/zed/arc_mem/ sind zusammengefasst unter zfs_extra_*
|
2021-02-18 07:54:24 +01:00
|
|
|
zfs_datasets: # DatenPools werden hier nicht verwaltet
|
2022-06-17 11:30:48 +02:00
|
|
|
# rpool
|
|
|
|
- dataset: rpool
|
2021-02-18 08:36:43 +01:00
|
|
|
state: present
|
2021-10-11 07:49:40 +02:00
|
|
|
compression: zstd
|
2021-02-18 08:36:43 +01:00
|
|
|
sync: disabled
|
|
|
|
xattr: sa
|
|
|
|
dnodesize: auto
|
|
|
|
atime: on
|
|
|
|
snapdir: hidden
|
2022-06-17 11:30:48 +02:00
|
|
|
- dataset: rpool/vm
|
|
|
|
state: present
|
2021-10-10 16:59:30 +02:00
|
|
|
- dataset: rpool/vm/dir/fileserver2_test
|
|
|
|
state: present
|
2021-02-12 22:26:26 +01:00
|
|
|
- dataset: rpool/vm/dir
|
2021-02-07 12:46:03 +01:00
|
|
|
state: present
|
2021-02-12 22:26:26 +01:00
|
|
|
- dataset: rpool/vm/zvol
|
|
|
|
state: present
|
|
|
|
- dataset: rpool/vm/qcow
|
2021-02-07 12:46:03 +01:00
|
|
|
state: present
|
2022-06-17 11:30:48 +02:00
|
|
|
# hdd_data_raidz
|
|
|
|
- dataset: hdd_data_raidz
|
|
|
|
state: present
|
2021-10-11 07:49:40 +02:00
|
|
|
compression: zstd
|
2021-02-07 12:46:03 +01:00
|
|
|
sync: disabled
|
|
|
|
xattr: sa
|
|
|
|
dnodesize: auto
|
|
|
|
atime: on
|
|
|
|
snapdir: hidden
|
2021-03-27 13:25:42 +01:00
|
|
|
- dataset: hdd_data_raidz/papa_backup
|
|
|
|
state: present
|
|
|
|
- dataset: hdd_data_raidz/pve_backup
|
|
|
|
state: present
|
2021-10-09 20:23:23 +02:00
|
|
|
recordsize: 1M
|
2021-03-27 13:25:42 +01:00
|
|
|
- dataset: hdd_data_raidz/videos
|
|
|
|
state: present
|
2021-10-09 20:23:23 +02:00
|
|
|
recordsize: 1M
|
2021-05-08 21:03:40 +02:00
|
|
|
- dataset: hdd_data_raidz/music
|
|
|
|
state: present
|
2022-06-17 11:30:48 +02:00
|
|
|
recordsize: 1M
|
2021-06-02 19:23:41 +02:00
|
|
|
- dataset: hdd_data_raidz/tmp
|
|
|
|
state: present
|
2021-06-14 08:34:02 +02:00
|
|
|
- dataset: hdd_data_raidz/archiv
|
|
|
|
state: present
|
2021-10-09 20:23:23 +02:00
|
|
|
- dataset: hdd_data_raidz/amd
|
2021-05-09 18:23:35 +02:00
|
|
|
state: present
|
2021-10-09 20:23:23 +02:00
|
|
|
- dataset: hdd_data_raidz/bilder
|
2021-05-09 18:23:35 +02:00
|
|
|
state: present
|
2022-06-17 11:30:48 +02:00
|
|
|
recordsize: 1M
|
2021-10-09 20:23:23 +02:00
|
|
|
- dataset: hdd_data_raidz/hm
|
2021-05-09 18:23:35 +02:00
|
|
|
state: present
|
2021-10-09 20:23:23 +02:00
|
|
|
- dataset: hdd_data_raidz/scans
|
2021-05-09 18:23:35 +02:00
|
|
|
state: present
|
2021-10-09 20:23:23 +02:00
|
|
|
- dataset: hdd_data_raidz/restic
|
2021-06-02 19:23:41 +02:00
|
|
|
state: present
|
2021-10-09 20:23:23 +02:00
|
|
|
- dataset: hdd_data_raidz/backup
|
2021-06-14 08:34:02 +02:00
|
|
|
state: present
|
2021-10-12 13:06:30 +02:00
|
|
|
- dataset: hdd_data_raidz/buecher
|
|
|
|
state: present
|
|
|
|
- dataset: hdd_data_raidz/programme
|
|
|
|
state: present
|
2021-12-20 12:48:50 +01:00
|
|
|
- dataset: hdd_data_raidz/vm
|
|
|
|
state: present
|
2022-06-17 11:30:48 +02:00
|
|
|
|
2021-07-14 19:48:50 +02:00
|
|
|
zfs_extra_arc_max_size: "8589934592" # 8GB in Bytes
|
2021-02-13 16:18:29 +01:00
|
|
|
zfs_extra_zfs_pools:
|
2021-02-18 08:36:43 +01:00
|
|
|
- name: "rpool"
|
2022-03-19 13:28:41 +01:00
|
|
|
systemd_timer_schedule: "*-01,04,07,10-01 23:00" # jeden ersten eines jeden Quartals
|
2021-02-12 10:32:22 +01:00
|
|
|
- name: "hdd_data_raidz"
|
2022-03-19 13:28:41 +01:00
|
|
|
systemd_timer_schedule: "*-01,04,07,10-01 23:00"
|
2021-04-12 20:55:37 +02:00
|
|
|
|
2021-02-12 10:32:22 +01:00
|
|
|
### mgrote.zfs_sanoid
|
|
|
|
sanoid_datasets:
|
2021-03-19 23:07:23 +01:00
|
|
|
- path: 'hdd_data_raidz/videos'
|
2021-05-08 21:03:40 +02:00
|
|
|
template: '14tage'
|
|
|
|
recursive: 'yes'
|
|
|
|
snapshots: true
|
|
|
|
- path: 'hdd_data_raidz/music'
|
2021-05-25 14:44:52 +02:00
|
|
|
template: '14tage'
|
2021-03-19 23:07:23 +01:00
|
|
|
recursive: 'yes'
|
|
|
|
snapshots: true
|
2021-03-24 18:35:20 +01:00
|
|
|
- path: 'hdd_data_raidz/papa_backup'
|
2021-05-08 21:03:40 +02:00
|
|
|
template: '14tage'
|
2021-03-24 18:35:20 +01:00
|
|
|
recursive: 'yes'
|
|
|
|
snapshots: true
|
2021-06-02 19:23:41 +02:00
|
|
|
- path: 'hdd_data_raidz/tmp'
|
|
|
|
template: '3tage'
|
|
|
|
recursive: 'yes'
|
|
|
|
snapshots: true
|
2021-03-19 23:07:23 +01:00
|
|
|
- path: 'hdd_data_raidz/pve_backup'
|
2021-10-27 07:06:15 +02:00
|
|
|
template: '3tage'
|
|
|
|
recursive: 'yes'
|
|
|
|
snapshots: true
|
2021-06-14 08:34:02 +02:00
|
|
|
- path: 'hdd_data_raidz/archiv'
|
2021-10-09 20:23:23 +02:00
|
|
|
template: '14tage'
|
2021-06-14 08:34:02 +02:00
|
|
|
recursive: 'yes'
|
|
|
|
snapshots: true
|
2021-10-09 20:23:23 +02:00
|
|
|
- path: hdd_data_raidz/amd
|
|
|
|
recursive: 'no'
|
|
|
|
snapshots: true
|
|
|
|
template: '31tage'
|
|
|
|
- path: hdd_data_raidz/bilder
|
|
|
|
recursive: 'no'
|
|
|
|
snapshots: true
|
|
|
|
template: '14tage'
|
|
|
|
- path: hdd_data_raidz/hm
|
|
|
|
recursive: 'no'
|
|
|
|
snapshots: true
|
|
|
|
template: '14tage'
|
|
|
|
- path: hdd_data_raidz/scans
|
|
|
|
recursive: 'no'
|
|
|
|
snapshots: true
|
|
|
|
template: '3tage'
|
|
|
|
- path: hdd_data_raidz/backup
|
|
|
|
recursive: 'no'
|
|
|
|
snapshots: true
|
|
|
|
template: '31tage'
|
|
|
|
- path: hdd_data_raidz/restic
|
|
|
|
recursive: 'no'
|
2021-10-10 16:47:36 +02:00
|
|
|
snapshots: true
|
|
|
|
template: '3tage'
|
2021-10-12 13:06:30 +02:00
|
|
|
- path: hdd_data_raidz/programme
|
|
|
|
recursive: 'no'
|
|
|
|
snapshots: true
|
|
|
|
template: '14tage'
|
|
|
|
- path: hdd_data_raidz/buecher
|
|
|
|
recursive: 'no'
|
|
|
|
snapshots: true
|
|
|
|
template: '14tage'
|
2021-12-20 12:48:50 +01:00
|
|
|
- path: hdd_data_raidz/vm
|
|
|
|
recursive: 'no'
|
|
|
|
snapshots: true
|
|
|
|
template: '3tage'
|
|
|
|
|
2021-02-12 10:32:22 +01:00
|
|
|
### mgrote.cv4pve-autosnap
|
|
|
|
cv4pve_api_user: root@pam!cv4pve-autosnap
|
2022-03-28 14:48:31 +02:00
|
|
|
cv4pve_api_token: "{{ lookup('keepass', 'cv4pve_api_token_pve2', 'password') }}"
|
2022-05-10 06:42:37 +02:00
|
|
|
cv4pve_vmid: all,-127,-112,-116,-105
|
2021-09-30 12:49:12 +02:00
|
|
|
cv4pve_keep_snapshots: 5
|
2021-03-19 11:05:06 +01:00
|
|
|
cv4pve_dl_link: "https://github.com/Corsinvest/cv4pve-autosnap/releases/download/v1.10.0/cv4pve-autosnap-linux-x64.zip"
|
2021-10-10 16:47:36 +02:00
|
|
|
|
|
|
|
### mgrote.proxmox_bind_mounts
|
|
|
|
pve_bind_mounts:
|
|
|
|
- vmid: 105
|
|
|
|
mp_nr: 1
|
|
|
|
mp_path_host: /rpool/vm/dir/fileserver2_test
|
|
|
|
mp_path_guest: /share
|
|
|
|
- vmid: 127
|
|
|
|
mp_nr: 0
|
|
|
|
mp_path_host: /hdd_data_raidz/videos
|
|
|
|
mp_path_guest: /shares_videos
|
|
|
|
- vmid: 127
|
|
|
|
mp_nr: 2
|
|
|
|
mp_path_host: /hdd_data_raidz/pve_backup
|
|
|
|
mp_path_guest: /shares_pve_backup
|
|
|
|
- vmid: 127
|
|
|
|
mp_nr: 3
|
|
|
|
mp_path_host: /hdd_data_raidz/papa_backup
|
|
|
|
mp_path_guest: /shares_papa_backup
|
|
|
|
- vmid: 127
|
|
|
|
mp_nr: 4
|
|
|
|
mp_path_host: /hdd_data_raidz/music
|
|
|
|
mp_path_guest: /shares_music
|
|
|
|
- vmid: 127
|
|
|
|
mp_nr: 5
|
|
|
|
mp_path_host: /hdd_data_raidz/tmp
|
|
|
|
mp_path_guest: /shares_tmp
|
|
|
|
- vmid: 127
|
|
|
|
mp_nr: 6
|
|
|
|
mp_path_host: /hdd_data_raidz/archiv
|
|
|
|
mp_path_guest: /shares_archiv
|
|
|
|
- vmid: 127
|
|
|
|
mp_nr: 7
|
|
|
|
mp_path_host: /hdd_data_raidz/bilder
|
|
|
|
mp_path_guest: /shares_bilder
|
|
|
|
- vmid: 127
|
|
|
|
mp_nr: 8
|
|
|
|
mp_path_host: /hdd_data_raidz/hm
|
|
|
|
mp_path_guest: /shares_hm
|
|
|
|
- vmid: 127
|
|
|
|
mp_nr: 9
|
|
|
|
mp_path_host: /hdd_data_raidz/scans
|
|
|
|
mp_path_guest: /shares_scans
|
|
|
|
- vmid: 127
|
|
|
|
mp_nr: 10
|
|
|
|
mp_path_host: /hdd_data_raidz/restic
|
|
|
|
mp_path_guest: /shares_restic
|
|
|
|
- vmid: 127
|
|
|
|
mp_nr: 11
|
|
|
|
mp_path_host: /hdd_data_raidz/amd
|
|
|
|
mp_path_guest: /shares_amd
|
|
|
|
- vmid: 127
|
|
|
|
mp_nr: 12
|
|
|
|
mp_path_host: /hdd_data_raidz/backup
|
|
|
|
mp_path_guest: /shares_backup
|
2021-10-12 13:06:30 +02:00
|
|
|
- vmid: 127
|
|
|
|
mp_nr: 14
|
|
|
|
mp_path_host: /hdd_data_raidz/buecher
|
|
|
|
mp_path_guest: /shares_buecher
|
|
|
|
- vmid: 127
|
|
|
|
mp_nr: 15
|
|
|
|
mp_path_host: /hdd_data_raidz/programme
|
|
|
|
mp_path_guest: /shares_programme
|
2021-12-20 12:48:50 +01:00
|
|
|
- vmid: 127
|
|
|
|
mp_nr: 16
|
|
|
|
mp_path_host: /hdd_data_raidz/vm
|
|
|
|
mp_path_guest: /shares_vm
|