FG
💻 Software

Possible mdadm RAID states?

Fresh5 days ago
Mar 15, 20267818 views
Confidence Score0%
0%

Problem

I'm writing a monitoring plugin for a home server RAID, mdadm on Ubuntu 10.4. Using I get output like this: I'm looking for the possible values of "state" but can't seem to find it anywhere, neither nor the online documentation I have found seem to have a list. Does anyone know where to find a list…

Error Output

/dev/md0:
        Version : 00.90
  Creation Time : Thu Dec 17 14:31:49 2009
     Raid Level : raid5
     Array Size : 4395407808 (4191.79 GiB 4500.9…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Possible mdadm RAID states?

Low Risk

Based on the source code, ("clean" or "active") and ("degraded" or "") and ("" or "resyncing" or "recovering") and ("" or "Not Started"). You didn't ask about , but here is the relevant source code:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment