neues Dataset für PVE-Backups (#46)
Housekeeping neues dataset als smb_share neues dataset für pve-backups erstellt Bugfix sanoid conf neues dataset angelegt sanoid mit option snapshots zu deaktivieren Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#46 Co-Authored-By: mg <mg@noreply.git.mgrote.net> Co-Committed-By: mg <mg@noreply.git.mgrote.net>
This commit is contained in:
parent
2d36bf6ee5
commit
513c7bda3a
4 changed files with 26 additions and 8 deletions
|
@ -64,7 +64,7 @@
|
|||
users_ro: 'win10'
|
||||
users_rw: 'annemariedroessler michaelgrote'
|
||||
- name: 'proxmox'
|
||||
path: '/shares/proxmox'
|
||||
path: '/shares_pve_backup'
|
||||
users_ro: 'win10 michaelgrote'
|
||||
users_rw: 'pve'
|
||||
smb_workgroup: WORKGROUP
|
||||
|
|
|
@ -40,6 +40,14 @@
|
|||
dnodesize: auto
|
||||
atime: on
|
||||
snapdir: hidden
|
||||
- dataset: hdd_data_raidz/pve_backup
|
||||
state: present
|
||||
compression: lz4
|
||||
sync: disabled
|
||||
xattr: sa
|
||||
dnodesize: auto
|
||||
atime: on
|
||||
snapdir: hidden
|
||||
### mgrote.apcupsd
|
||||
apcupsd_nis_master: true
|
||||
apcupsd_nis_master_hostname: pve2.grote.lan
|
||||
|
@ -65,12 +73,16 @@
|
|||
cron_hour_zfs_scrub: "23"
|
||||
### mgrote.zfs_sanoid
|
||||
sanoid_datasets:
|
||||
- path: 'hdd_data_raidz/videos'
|
||||
template: 'hourly' # muss in Templates angelegt sein
|
||||
recursive: ' yes'
|
||||
- path: 'hdd_data_raidz/data_crypt'
|
||||
template: 'fiveminutes'
|
||||
recursive: 'no'
|
||||
snapshots: true
|
||||
- path: 'hdd_data_raidz/videos'
|
||||
template: 'hourly'
|
||||
recursive: 'yes'
|
||||
snapshots: true
|
||||
- path: 'hdd_data_raidz/pve_backup'
|
||||
snapshots: false # deaktiviert sanoid für das dataset
|
||||
sanoid_templates:
|
||||
- name: 'fiveminutes'
|
||||
keep_hourly: '24' # Aufheben (Stunde)
|
||||
|
|
|
@ -8,9 +8,13 @@
|
|||
- path: 'hdd_data_raidz/data'
|
||||
template: 'fiveminutes'
|
||||
recursive: 'no'
|
||||
snapshots: true
|
||||
- path: 'hdd_data_raidz/videos'
|
||||
template: 'hourly'
|
||||
recursive: 'yes'
|
||||
snapshots: true
|
||||
- path: 'hdd_data_raidz/test'
|
||||
snapshots: false # deaktiviert sanoid für das dataset
|
||||
|
||||
### Templates
|
||||
sanoid_templates:
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
{{ file_header | default () }}
|
||||
## ZFS Section -------------------------------- ##
|
||||
{% for item in sanoid_datasets %}
|
||||
{% for item in sanoid_datasets if item.snapshots is sameas true %}
|
||||
{% if item.snapshots is sameas true %}
|
||||
[{{ item.path }}]
|
||||
use_template = {{ item.template }}
|
||||
recursive = {{ item.recursive }}
|
||||
## -------------------------------------------- ##
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue