mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-25 14:11:03 +01:00
Agtivated btrfs health check for all hosts
This commit is contained in:
parent
59c9ee68c8
commit
63445e8030
@ -8,11 +8,6 @@
|
|||||||
- native-journalctl
|
- native-journalctl
|
||||||
- native-disc-space-check
|
- native-disc-space-check
|
||||||
- native-free-disc-space
|
- native-free-disc-space
|
||||||
#- native-hostname
|
|
||||||
- name: setup btrfs health check
|
|
||||||
hosts: btrfs_health_check_hosts
|
|
||||||
become: true
|
|
||||||
roles:
|
|
||||||
- native-btrfs-health-check
|
- native-btrfs-health-check
|
||||||
- name: setup standard wireguard hosts
|
- name: setup standard wireguard hosts
|
||||||
hosts: wireguard_hosts
|
hosts: wireguard_hosts
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
exit_code=0
|
exit_code=0
|
||||||
for path in $(btrfs filesystem show | awk '/ path /{print $NF}')
|
for path in $(btrfs filesystem show | awk '/ path /{print $NF}')
|
||||||
do
|
do
|
||||||
echo "Checking healt for $path..."
|
echo "Checking health for $path..."
|
||||||
result=$(btrfs device stats $path)
|
result=$(btrfs device stats $path)
|
||||||
echo "$result"
|
echo "$result"
|
||||||
regex='\.(.*)_errs(\s*)[1-9]'
|
regex='\.(.*)_errs(\s*)[1-9]'
|
||||||
|
Loading…
Reference in New Issue
Block a user