fix(btrfs): update btrfs scrub path
update notes:
- from '{{ node['home_path'] }}/data' to '{{ storage['btrfs']['mount_point'] }}'
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=BTRFS auto scrub
|
Description=BTRFS auto scrub
|
||||||
ConditionPathIsMountPoint={{ node['home_path'] }}/data
|
ConditionPathIsMountPoint={{ storage['btrfs']['mount_point'] }}
|
||||||
RequiresMountsFor={{ node['home_path'] }}/data
|
RequiresMountsFor={{ storage['btrfs']['mount_point'] }}
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/bin/btrfs scrub start -Bd {{ node['home_path'] }}/data
|
ExecStart=/usr/bin/btrfs scrub start -Bd {{ storage['btrfs']['mount_point'] }}
|
||||||
Nice=19
|
Nice=19
|
||||||
IOSchedulingClass=idle
|
IOSchedulingClass=idle
|
||||||
|
|||||||
Reference in New Issue
Block a user