bk node and refactor

This commit is contained in:
il
2026-06-23 10:57:10 +09:00
parent 927b5b4934
commit fe146b25c7
131 changed files with 2310 additions and 920 deletions
@@ -0,0 +1,10 @@
[Unit]
Description=BTRFS backup auto scrub
ConditionPathIsMountPoint={{ hardware['disk']['backup']['fs']['mount_point'] }}
RequiresMountsFor={{ hardware['disk']['backup']['fs']['mount_point'] }}
[Service]
Type=oneshot
ExecStart=/usr/bin/btrfs scrub start -Bd {{ hardware['disk']['backup']['fs']['mount_point'] }}
Nice=19
IOSchedulingClass=idle
@@ -0,0 +1,10 @@
[Unit]
Description=BTRFS data auto scrub
ConditionPathIsMountPoint={{ hardware['disk']['data']['fs']['mount_point'] }}
RequiresMountsFor={{ hardware['disk']['data']['fs']['mount_point'] }}
[Service]
Type=oneshot
ExecStart=/usr/bin/btrfs scrub start -Bd {{ hardware['disk']['data']['fs']['mount_point'] }}
Nice=19
IOSchedulingClass=idle
@@ -0,0 +1,10 @@
[Unit]
Description=Monthly BTRFS auto scrub
[Timer]
OnCalendar=*-*-01 04:00:00
Persistent=true
RandomizedDelaySec=300
[Install]
WantedBy=timers.target
@@ -1,10 +0,0 @@
[Unit]
Description=BTRFS auto scrub
ConditionPathIsMountPoint={{ hardware['btrfs']['mount_point'] }}
RequiresMountsFor={{ hardware['btrfs']['mount_point'] }}
[Service]
Type=oneshot
ExecStart=/usr/bin/btrfs scrub start -Bd {{ hardware['btrfs']['mount_point'] }}
Nice=19
IOSchedulingClass=idle