Btrfs.monitor

From etbemon
Revision as of 03:45, 27 August 2017 by Etbe (talk | contribs) (Created page with "The BTRFS monitor takes a list of mount points for BTRFS filesystems on the command-line and checks how many errors there have been via the "btrfs device stats" command. If th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The BTRFS monitor takes a list of mount points for BTRFS filesystems on the command-line and checks how many errors there have been via the "btrfs device stats" command. If there have been errors then it looks for a file named /var/lib/mon/btrfs-$MOUNTPOINT.count and gives an alert if that file doesn't exist or if the number in that file is less than the number of errors. This is so that if a filesystem has a few errors and you think that's OK you can count that as being OK. If you are monitoring the root filesystem then /var/lib/mon/btrfs-root.count will have the count.