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_ro: 'win10'
|
||||||
users_rw: 'annemariedroessler michaelgrote'
|
users_rw: 'annemariedroessler michaelgrote'
|
||||||
- name: 'proxmox'
|
- name: 'proxmox'
|
||||||
path: '/shares/proxmox'
|
path: '/shares_pve_backup'
|
||||||
users_ro: 'win10 michaelgrote'
|
users_ro: 'win10 michaelgrote'
|
||||||
users_rw: 'pve'
|
users_rw: 'pve'
|
||||||
smb_workgroup: WORKGROUP
|
smb_workgroup: WORKGROUP
|
||||||
|
|
|
@ -40,6 +40,14 @@
|
||||||
dnodesize: auto
|
dnodesize: auto
|
||||||
atime: on
|
atime: on
|
||||||
snapdir: hidden
|
snapdir: hidden
|
||||||
|
- dataset: hdd_data_raidz/pve_backup
|
||||||
|
state: present
|
||||||
|
compression: lz4
|
||||||
|
sync: disabled
|
||||||
|
xattr: sa
|
||||||
|
dnodesize: auto
|
||||||
|
atime: on
|
||||||
|
snapdir: hidden
|
||||||
### mgrote.apcupsd
|
### mgrote.apcupsd
|
||||||
apcupsd_nis_master: true
|
apcupsd_nis_master: true
|
||||||
apcupsd_nis_master_hostname: pve2.grote.lan
|
apcupsd_nis_master_hostname: pve2.grote.lan
|
||||||
|
@ -65,12 +73,16 @@
|
||||||
cron_hour_zfs_scrub: "23"
|
cron_hour_zfs_scrub: "23"
|
||||||
### mgrote.zfs_sanoid
|
### mgrote.zfs_sanoid
|
||||||
sanoid_datasets:
|
sanoid_datasets:
|
||||||
- path: 'hdd_data_raidz/videos'
|
|
||||||
template: 'hourly' # muss in Templates angelegt sein
|
|
||||||
recursive: ' yes'
|
|
||||||
- path: 'hdd_data_raidz/data_crypt'
|
- path: 'hdd_data_raidz/data_crypt'
|
||||||
template: 'fiveminutes'
|
template: 'fiveminutes'
|
||||||
|
recursive: 'no'
|
||||||
|
snapshots: true
|
||||||
|
- path: 'hdd_data_raidz/videos'
|
||||||
|
template: 'hourly'
|
||||||
recursive: 'yes'
|
recursive: 'yes'
|
||||||
|
snapshots: true
|
||||||
|
- path: 'hdd_data_raidz/pve_backup'
|
||||||
|
snapshots: false # deaktiviert sanoid für das dataset
|
||||||
sanoid_templates:
|
sanoid_templates:
|
||||||
- name: 'fiveminutes'
|
- name: 'fiveminutes'
|
||||||
keep_hourly: '24' # Aufheben (Stunde)
|
keep_hourly: '24' # Aufheben (Stunde)
|
||||||
|
|
|
@ -8,9 +8,13 @@
|
||||||
- path: 'hdd_data_raidz/data'
|
- path: 'hdd_data_raidz/data'
|
||||||
template: 'fiveminutes'
|
template: 'fiveminutes'
|
||||||
recursive: 'no'
|
recursive: 'no'
|
||||||
|
snapshots: true
|
||||||
- path: 'hdd_data_raidz/videos'
|
- path: 'hdd_data_raidz/videos'
|
||||||
template: 'hourly'
|
template: 'hourly'
|
||||||
recursive: 'yes'
|
recursive: 'yes'
|
||||||
|
snapshots: true
|
||||||
|
- path: 'hdd_data_raidz/test'
|
||||||
|
snapshots: false # deaktiviert sanoid für das dataset
|
||||||
|
|
||||||
### Templates
|
### Templates
|
||||||
sanoid_templates:
|
sanoid_templates:
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
{{ file_header | default () }}
|
{{ file_header | default () }}
|
||||||
## ZFS Section -------------------------------- ##
|
## 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 }}]
|
[{{ item.path }}]
|
||||||
use_template = {{ item.template }}
|
use_template = {{ item.template }}
|
||||||
recursive = {{ item.recursive }}
|
recursive = {{ item.recursive }}
|
||||||
## -------------------------------------------- ##
|
## -------------------------------------------- ##
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue