From 8bdb271ae7c839f077708bf26230b2a0cda0b491 Mon Sep 17 00:00:00 2001 From: Alex Garel Date: Fri, 11 Oct 2024 10:13:39 +0000 Subject: [PATCH] chore: backups removed 119 volume and ignore 115 119 was old robotoff-net container 115 is shutdown for now --- confs/ovh3/sanoid/sanoid.conf | 117 +++++++++++++++++++++++++++++++--- 1 file changed, 109 insertions(+), 8 deletions(-) diff --git a/confs/ovh3/sanoid/sanoid.conf b/confs/ovh3/sanoid/sanoid.conf index aa33da87..37139e29 100644 --- a/confs/ovh3/sanoid/sanoid.conf +++ b/confs/ovh3/sanoid/sanoid.conf @@ -4,14 +4,6 @@ # This will avoid sanoid_checks from checking them # no_sanoid_checks:rpool/off-products-old # no_sanoid_checks:rpool/storage: -# no_sanoid_checks:rpool/subvol-100-disk-0:rpool/subvol-101-disk-0:rpool/subvol-102-disk-0:rpool/subvol-103-disk-0: -# no_sanoid_checks:rpool/subvol-104-disk-0:rpool/subvol-105-disk-0:rpool/subvol-106-disk-0:rpool/subvol-107-disk-0: -# no_sanoid_checks:rpool/subvol-108-disk-0:rpool/subvol-109-disk-0:rpool/subvol-110-disk-0:rpool/subvol-111-disk-0: -# no_sanoid_checks:rpool/subvol-112-disk-0:rpool/subvol-113-disk-0:rpool/subvol-115-disk-0:rpool/subvol-116-disk-0: -# no_sanoid_checks:rpool/subvol-117-disk-0:rpool/subvol-119-disk-0:rpool/subvol-120-disk-0:rpool/subvol-122-disk-0: -# no_sanoid_checks:rpool/subvol-130-disk-0:rpool/subvol-140-disk-0:rpool/subvol-150-disk-0:rpool/subvol-150-disk-1: -# no_sanoid_checks:rpool/vm-200-disk-0:rpool/vm-200-disk-0-old:rpool/vm-200-state-bef_alex_resize:rpool/vm-201-disk-0:rpool/vm-201-disk-1: -# no_sanoid_checks:rpool/vm-202-disk-0:rpool/vm-202-state-bef_upgrade:rpool/vm-203-disk-0:rpool/vm-203-state-before_more_space: # no_sanoid_checks:rpool/backups:rpool/backups/wild-ecoscore-111: # no_sanoid_checks:rpool/logs-nginx: # no_sanoid_checks:rpool/obf-old:rpool/opf-old: @@ -22,6 +14,96 @@ # no_sanoid_checks: rpool/staging-clones:rpool/staging-clones/off-images:rpool/staging-clones/off-products:rpool/staging-clones/orgs:rpool/staging-clones/users # no_sanoid_checks: rpool +# ovh3 hosts + +[rpool/subvol-150-disk-0] + use_template=local_data + +[rpool/subvol-150-disk-1] + use_template=local_data + +[rpool/subvol-100-disk-0] + use_template=local_data + +# sanoid is activated on ovh1 and ovh2 and snapshots sync happens through proxmox replication +# we configure it here for retention policy +[rpool/vm-200-disk-0] + use_template=replicated_volumes + +[rpool/vm-200-disk-2] + use_template=replicated_volumes + +[rpool/vm-201-disk-0] + use_template=replicated_volumes + +[rpool/vm-201-disk-1] + use_template=replicated_volumes + +[rpool/vm-202-disk-0] + use_template=replicated_volumes + +[rpool/vm-203-disk-0] + use_template=replicated_volumes + + +[rpool/subvol-108-disk-0] + use_template=replicated_volumes + +[rpool/subvol-101-disk-0] + use_template=replicated_volumes + +[rpool/subvol-109-disk-0] + use_template=replicated_volumes + +[rpool/subvol-120-disk-0] + use_template=replicated_volumes + +[rpool/subvol-102-disk-0] + use_template=replicated_volumes + +[rpool/subvol-110-disk-0] + use_template=replicated_volumes + +[rpool/subvol-122-disk-0] + use_template=replicated_volumes + +[rpool/subvol-103-disk-0] + use_template=replicated_volumes + +[rpool/subvol-112-disk-0] + use_template=replicated_volumes + +[rpool/subvol-130-disk-0] + use_template=replicated_volumes + +[rpool/subvol-104-disk-0] + use_template=replicated_volumes + +[rpool/subvol-113-disk-0] + use_template=replicated_volumes + +[rpool/subvol-140-disk-0] + use_template=replicated_volumes + +[rpool/subvol-105-disk-0] + use_template=replicated_volumes + +# ignore for now as this CT is shutdown +# no_sanoid_checks: rpool/subvol-115-disk-0 +[rpool/subvol-115-disk-0] + use_template=replicated_volumes + +[rpool/subvol-106-disk-0] + use_template=replicated_volumes + +[rpool/subvol-116-disk-0] + use_template=replicated_volumes + +[rpool/subvol-107-disk-0] + use_template=replicated_volumes + +[rpool/subvol-117-disk-0] + use_template=replicated_volumes # obf [rpool/obf] @@ -162,3 +244,22 @@ # remove eventual @vzdump snapshot (transient snapshot on source side) post_snapshot_script = /opt/openfoodfacts-infrastructure/scripts/zfs/sanoid_post_remove_vzdump.sh +# replicated volumes, keeps more snapshots than on ovh1/2 +[template_replicated_volumes] + # How often snapshots should be taken under an hour + frequent_period=0 + # What to keep + # number of sub-hourly snapshots + frequently = 0 + # number of hourly snapshots + hourly = 10 + # number of daily snashots + daily = 10 + # number of monthly snashots + monthly = 6 + # number of yearly snashots + yearly = 0 + # whether snapshots should be taken automatically + autosnap = no + # Should old snapshots be pruned + autoprune = yes