Re: Bash expression to detect dying RAID devices
On Tue, 24 Dec 2024 15:45:31 +0100 (CET)
Roger Price <debian@rogerprice.org> wrote:
> File /proc/mdstat indicates a dying RAID device with an output
> section such as
>
> md3 : active raid1 sdg6[0]
> 871885632 blocks super 1.0 [2/1] [U_]
> bitmap: 4/7 pages [16KB], 65536KB chunk
>
> Note the [U-]. The "-" says /dev/sdh is dead. I would like to scan
> /proc/mdstat and set a flag if [U-], [-U] or [--] occur.
You might look at systray-mdstat.
--
Does anybody read signatures any more?
https://charlescurley.com
https://charlescurley.com/blog/
Reply to: