SiloCityLabs / lochnas

Docker configuration for all-in-one nas setup
https://lochnas.com
GNU General Public License v3.0
51 stars 3 forks source link

Raid health check #47

Open ldrrp opened 2 years ago

ldrrp commented 2 years ago

Problem

Currently there are no checks for raid health. This is a problem if we want to ensure data is not lost.

Solution

On a cron check for the health of the raids and if any are unhealthy we should notify the user and log the issue.

Example:

 - raid:
    - uuid: AISDYIAYSIDYUA
      options:
        - notification:
            enabled: true
        - log: true
    - uuid: BISDASDSAJFYUA
      options:
        - notification:
            enabled: true
        - log: true

Notify may be "true", "false" or "email" etc. Parsed as string. True will use server default.

Additionally we should allow the user to call the raid check directly.

Steps to Reproduce the Problem

  1. ./server.bin -system raid-check