2015-04-01 21:21:25 +02:00
|
|
|
###################################################################################
|
|
|
|
# default template - DO NOT EDIT THIS FILE DIRECTLY. #
|
|
|
|
# If you wish to override default values, you can create your #
|
|
|
|
# own [template_default] in /etc/sanoid/sanoid.conf. #
|
|
|
|
# #
|
|
|
|
# you have been warned. #
|
|
|
|
###################################################################################
|
2017-11-08 22:08:02 +01:00
|
|
|
[version]
|
|
|
|
version = 2
|
2015-04-01 21:21:25 +02:00
|
|
|
|
|
|
|
[template_default]
|
|
|
|
|
2015-04-02 00:38:08 +02:00
|
|
|
# these settings don't make sense in a template, but we use the defaults file
|
2017-11-08 17:30:52 +01:00
|
|
|
# as our list of allowable settings also, so they need to be present here even if
|
2015-04-02 00:38:08 +02:00
|
|
|
# unset.
|
|
|
|
path =
|
|
|
|
recursive =
|
|
|
|
use_template =
|
2015-04-02 17:10:38 +02:00
|
|
|
process_children_only =
|
2018-12-04 15:51:51 +01:00
|
|
|
skip_children =
|
2015-04-02 00:38:08 +02:00
|
|
|
|
2018-01-13 14:26:26 +01:00
|
|
|
pre_snapshot_script =
|
|
|
|
post_snapshot_script =
|
2018-10-16 17:54:37 +02:00
|
|
|
pruning_script =
|
|
|
|
script_timeout = 5
|
2018-01-13 14:26:26 +01:00
|
|
|
no_inconsistent_snapshot =
|
|
|
|
force_post_snapshot_script =
|
2015-04-02 00:38:08 +02:00
|
|
|
|
2017-11-08 21:40:30 +01:00
|
|
|
# for snapshots shorter than one hour, the period duration must be defined
|
|
|
|
# in minutes. Because they are executed within a full hour, the selected
|
|
|
|
# value should divide 60 minutes without remainder so taken snapshots
|
|
|
|
# are apart in equal intervals. Values larger than 59 aren't practical
|
|
|
|
# as only one snapshot will be taken on each full hour in this case.
|
|
|
|
# examples:
|
|
|
|
# frequent_period = 15 -> four snapshot each hour 15 minutes apart
|
|
|
|
# frequent_period = 5 -> twelve snapshots each hour 5 minutes apart
|
|
|
|
# frequent_period = 45 -> two snapshots each hour with different time gaps
|
|
|
|
# between them: 45 minutes and 15 minutes in this case
|
2017-11-07 08:03:53 +01:00
|
|
|
frequent_period = 15
|
|
|
|
|
2015-04-01 21:21:25 +02:00
|
|
|
# If any snapshot type is set to 0, we will not take snapshots for it - and will immediately
|
|
|
|
# prune any of those type snapshots already present.
|
|
|
|
#
|
|
|
|
# Otherwise, if autoprune is set, we will prune any snapshots of that type which are older
|
|
|
|
# than (setting * periodicity) - so if daily = 90, we'll prune any dailies older than 90 days.
|
|
|
|
autoprune = yes
|
2017-11-07 08:03:53 +01:00
|
|
|
frequently = 0
|
2015-04-01 21:21:25 +02:00
|
|
|
hourly = 48
|
|
|
|
daily = 90
|
|
|
|
monthly = 6
|
|
|
|
yearly = 0
|
2018-11-21 00:34:21 +01:00
|
|
|
# pruning can be skipped based on the used capacity of the pool
|
|
|
|
# (0: always prune, 1-100: only prune if used capacity is greater than this value)
|
|
|
|
prune_defer = 0
|
2015-04-01 21:21:25 +02:00
|
|
|
|
|
|
|
# We will automatically take snapshots if autosnap is on, at the desired times configured
|
|
|
|
# below (or immediately, if we don't have one since the last preferred time for that type).
|
|
|
|
#
|
2017-11-08 17:30:52 +01:00
|
|
|
# Note that we will not take snapshots for a given type if that type is set to 0 above,
|
2015-04-01 21:21:25 +02:00
|
|
|
# regardless of the autosnap setting - for example, if yearly=0 we will not take yearlies
|
|
|
|
# even if we've defined a preferred time for yearlies and autosnap is on.
|
2017-09-07 18:08:10 +02:00
|
|
|
autosnap = 1
|
2015-04-01 21:21:25 +02:00
|
|
|
# hourly - top of the hour
|
2017-09-07 18:08:10 +02:00
|
|
|
hourly_min = 0
|
2015-04-01 21:21:25 +02:00
|
|
|
# daily - at 23:59 (most people expect a daily to contain everything done DURING that day)
|
2017-09-07 18:08:10 +02:00
|
|
|
daily_hour = 23
|
|
|
|
daily_min = 59
|
2015-04-01 21:21:25 +02:00
|
|
|
# monthly - immediately at the beginning of the month (ie 00:00 of day 1)
|
2017-09-07 18:08:10 +02:00
|
|
|
monthly_mday = 1
|
|
|
|
monthly_hour = 0
|
|
|
|
monthly_min = 0
|
2015-04-01 21:21:25 +02:00
|
|
|
# yearly - immediately at the beginning of the year (ie 00:00 on Jan 1)
|
2017-09-07 18:08:10 +02:00
|
|
|
yearly_mon = 1
|
|
|
|
yearly_mday = 1
|
|
|
|
yearly_hour = 0
|
|
|
|
yearly_min = 0
|
2015-04-01 21:21:25 +02:00
|
|
|
|
|
|
|
# monitoring plugin - define warn / crit levels for each snapshot type by age, in units of one period down
|
|
|
|
# example hourly_warn = 90 means issue WARNING if most recent hourly snapshot is not less than 90 minutes old,
|
|
|
|
# daily_crit = 36 means issue CRITICAL if most recent daily snapshot is not less than 36 hours old,
|
|
|
|
# monthly_warn = 36 means issue WARNING if most recent monthly snapshot is not less than 36 days old... etc.
|
|
|
|
#
|
|
|
|
# monitor_dont_warn = yes will cause the monitoring service to report warnings as text, but with status OK.
|
|
|
|
# monitor_dont_crit = yes will cause the monitoring service to report criticals as text, but with status OK.
|
|
|
|
#
|
|
|
|
# setting any value to 0 will keep the monitoring service from monitoring that snapshot type on that section at all.
|
|
|
|
monitor = yes
|
|
|
|
monitor_dont_warn = no
|
|
|
|
monitor_dont_crit = no
|
2017-11-09 17:44:04 +01:00
|
|
|
frequently_warn = 0
|
|
|
|
frequently_crit = 0
|
2015-04-01 21:21:25 +02:00
|
|
|
hourly_warn = 90
|
2017-11-08 17:30:52 +01:00
|
|
|
hourly_crit = 360
|
2015-04-01 21:21:25 +02:00
|
|
|
daily_warn = 28
|
|
|
|
daily_crit = 32
|
|
|
|
monthly_warn = 32
|
|
|
|
monthly_crit = 35
|
|
|
|
yearly_warn = 0
|
|
|
|
yearly_crit = 0
|
2018-03-01 09:22:22 +01:00
|
|
|
|
|
|
|
# default limits for capacity checks (if set to 0, limit will not be checked)
|
|
|
|
capacity_warn = 80
|
|
|
|
capacity_crit = 95
|