zfs: dataset tmp ausgelagert (#103)

sanoid

aufräumen

fileserver: tmp auf eigenes dataset

snapdir hidden

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#103
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-06-02 19:23:41 +02:00
parent b29e6c08fa
commit 7ab79f0903
2 changed files with 38 additions and 10 deletions

View file

@ -5,15 +5,14 @@
# pct set 109 -mp2 /hdd_data_raidz/vm_backup,mp=/shares_pve_backup
# pct set 109 -mp3 /hdd_data_raidz/papa_backup,mp=/shares_papa_backup
# pct set 109 -mp4 /hdd_data_raidz/music,mp=/shares_music
# pct set 109 -mp5 /hdd_data_raidz/tmp,mp=/shares_tmp
# Bind Mounts - fileserver-test
# pct set 158 -mp0 /rpool/vm/dir/vm-158/videos,mp=/shares_videos
# pct set 158 -mp1 /rpool/vm/dir/vm-158/data,mp=/shares
# pct set 158 -mp2 /rpool/vm/dir/vm-158/proxmox,mp=/shares_pve_backup
# pct set 158 -mp3 /rpool/vm/dir/vm-158/papa,mp=/shares_papa_backup
# pct set 158 -mp4 /rpool/vm/dir/vm-158/music,mp=/shares_music
### geerlingguy.munin-node
munin_node_remove_plugins:
- name: sensors
# pct set 158 -mp5 /rpool/vm/dir/vm-158/tmp,mp=/shares_tmp
### mgrote.smb_fileserver
smb_users:
- name: 'annemariedroessler'
@ -70,7 +69,7 @@
users_ro: 'navidrome kodi annemariedroessler '
users_rw: 'win10 michaelgrote'
- name: 'tmp'
path: '/shares/tmp'
path: '/shares_tmp'
users_ro: 'win10'
users_rw: 'kodi annemariedroessler restic win10 michaelgrote'
- name: 'bilder'

View file

@ -79,7 +79,15 @@
xattr: sa
dnodesize: auto
atime: on
snapdir: visible
snapdir: hidden
- dataset: hdd_data_raidz/tmp
state: present
compression: zstd
sync: disabled
xattr: sa
dnodesize: auto
atime: on
snapdir: hidden
- dataset: rpool/vm/dir/vm-158/data
state: present
compression: lz4
@ -87,7 +95,7 @@
xattr: sa
dnodesize: auto
atime: on
snapdir: visible
snapdir: hidden
- dataset: rpool/vm/dir/vm-158/papa
state: present
compression: lz4
@ -95,7 +103,7 @@
xattr: sa
dnodesize: auto
atime: on
snapdir: visible
snapdir: hidden
- dataset: rpool/vm/dir/vm-158/proxmox
state: present
compression: lz4
@ -103,7 +111,7 @@
xattr: sa
dnodesize: auto
atime: on
snapdir: visible
snapdir: hidden
- dataset: rpool/vm/dir/vm-158/videos
state: present
compression: lz4
@ -111,7 +119,7 @@
xattr: sa
dnodesize: auto
atime: on
snapdir: visible
snapdir: hidden
- dataset: rpool/vm/dir/vm-158/music
state: present
compression: lz4
@ -119,7 +127,15 @@
xattr: sa
dnodesize: auto
atime: on
snapdir: visible
snapdir: hidden
- dataset: rpool/vm/dir/vm-158/tmp
state: present
compression: lz4
sync: disabled
xattr: sa
dnodesize: auto
atime: on
snapdir: hidden
### mgrote.apcupsd
apcupsd_nis_master: true
@ -160,6 +176,10 @@
template: '14tage'
recursive: 'yes'
snapshots: true
- path: 'hdd_data_raidz/tmp'
template: '3tage'
recursive: 'yes'
snapshots: true
- path: 'hdd_data_raidz/pve_backup'
snapshots: false # deaktiviert sanoid für das dataset
sanoid_templates:
@ -181,6 +201,15 @@
frequent_period: '0'
autosnap: 'yes'
autoprune: 'yes'
- name: '3tage'
keep_hourly: '0'
keep_daily: '3'
keep_monthly: '0'
keep_yearly: '0'
frequently: '0'
frequent_period: '0'
autosnap: 'yes'
autoprune: 'yes'
### mgrote.cv4pve-autosnap
cv4pve_api_user: root@pam!cv4pve-autosnap
cv4pve_api_token: "{{ lookup('keepass', 'cv4pve_api_token', 'password') }}"