On Tue, 2020-06-23 at 09:23 -0700, Doug H. wrote:
> I'm assuming that once mdadm returns 0 the array is up and
running.
Perhaps a simpler way to assure that it is running is to check a static
file that you place on the raid. If it is there then the raid is up. It
would show the file as long as it is running, even if it is degraded.
If you want to be sure that it is running non-degraded then maybe look
for "[UU]" in /proc/mdstat, assuming you just have a single RAID 1.
Interesting ideas, thanks.
poc