2021-02-07 12:46:03 +01:00
|
|
|
---
|
|
|
|
### mgrote.zfs_manage_datasets
|
|
|
|
# "Daten"-Datasets verwalte ich händisch!
|
|
|
|
# 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-25 07:43:04 +01:00
|
|
|
# rpool
|
2021-02-25 08:55:28 +01:00
|
|
|
# zpool create -f -o ashift=12 rpool mirror /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi8 /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi10
|
2021-02-07 12:46:03 +01:00
|
|
|
# HDD_DATA_RAIDZ
|
2021-02-12 22:26:26 +01:00
|
|
|
# zpool create -f -o ashift=12 hdd_data_raidz raidz /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi9 /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi3 /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi4
|
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
|
|
|
|
|
2021-02-07 12:46:03 +01:00
|
|
|
### mgrote.apcupsd
|
|
|
|
apcupsd_nis_master: true
|
2021-02-12 10:32:22 +01:00
|
|
|
apcupsd_nis_master_hostname: pve2-test.grote.lan
|
2021-03-07 10:10:05 +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"
|
2021-04-12 20:55:37 +02:00
|
|
|
cron_minutes_zfs_scrub: "5"
|
2021-02-12 10:32:22 +01:00
|
|
|
cron_hour_zfs_scrub: "23"
|
2021-04-12 20:55:37 +02:00
|
|
|
cron_day_of_month_zfs_scrub: "14"
|
|
|
|
cron_day_of_week_zfs_scrub: "*"
|
|
|
|
cron_month_zfs_scrub: "*/2"
|
2021-02-12 10:32:22 +01:00
|
|
|
- name: "hdd_vm_mirror"
|
2021-04-12 20:55:37 +02:00
|
|
|
cron_minutes_zfs_scrub: "10"
|
|
|
|
cron_hour_zfs_scrub: "23"
|
|
|
|
cron_day_of_month_zfs_scrub: "14"
|
|
|
|
cron_day_of_week_zfs_scrub: "*"
|
|
|
|
cron_month_zfs_scrub: "*/2"
|