Open ldrrp opened 2 years ago
root@cloud:/docker-nas/server# udevadm info -q property -n /dev/sdq | grep -i type
DEVTYPE=disk
SCSI_TYPE=disk
ID_TYPE=disk
ID_PART_TABLE_TYPE=gpt
root@cloud:/docker-nas/server# udevadm info -q property -n /dev/md127 | grep -i type
DEVTYPE=disk
ID_PART_TABLE_TYPE=gpt
root@cloud:/docker-nas/server# udevadm info -q property -n /dev/md0 | grep -i type
DEVTYPE=disk
ID_FS_TYPE=ext4
root@cloud:/docker-nas/server# udevadm info -q property -n /dev/sda | grep -i type
DEVTYPE=disk
SCSI_TYPE=disk
ID_TYPE=disk
ID_FS_TYPE=linux_raid_member
Problem
Currently there are no checks for disk health. This is a problem if we want to ensure data is not lost.
Solution
On a cron check for the health of the disks and if any are unhealthy we should notify the user and log the issue.
Example:
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 disk check directly.
Steps to Reproduce the Problem