Skip to content

Commit

Permalink
chore: backups removed 119 volume and ignore 115
Browse files Browse the repository at this point in the history
119 was old robotoff-net container
115 is shutdown for now
  • Loading branch information
alexgarel authored and root committed Oct 11, 2024
1 parent b12a3fd commit 8bdb271
Showing 1 changed file with 109 additions and 8 deletions.
117 changes: 109 additions & 8 deletions confs/ovh3/sanoid/sanoid.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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]
Expand Down Expand Up @@ -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

0 comments on commit 8bdb271

Please sign in to comment.