Skip to content
CryptoDedicated
Menu

How do I check the RAID 1 status of a dedicated server?

How to check RAID 1 status on a Linux dedicated server with mdadm, read the result, get alerted when a drive drops, and what to do next.

Updated , by the CryptoDedicated team, 5 min read

Quick answer

How do I check the RAID 1 status of a dedicated server?

Run cat /proc/mdstat: [UU] means both mirror halves are active, [U_] means one drive dropped out. Then mdadm --detail /dev/md0 gives the state, failed members and rebuild progress. Every CryptoDedicated machine ships with 2 NVMe drives in software RAID 1, from $83.69 per 30 days, paid in crypto such as Monero.

In brief
  • Quick look: cat /proc/mdstat, one line per array, [UU] for healthy, [U_] or [_U] for degraded.
  • Full report: mdadm --detail /dev/mdX shows State, Active Devices, Failed Devices and each member.
  • Drive health: smartctl -a /dev/nvme0n1 reads wear, media errors and temperature for each NVMe.
  • Alerts: port 25 is closed, so point mdadm's PROGRAM hook at a script instead of local mail.
  • RAID is not a backup: a mirror copies deletions and ransomware too; keep copies off the machine.

How do I read the output of /proc/mdstat?

The bracket at the end of each array line is the verdict: one letter per member, U for up, underscore for missing.

Common /proc/mdstat states for a two-drive RAID 1 array, their meaning and the action to take
What the line showsMeaningAction
[2/2] [UU]Both members active, mirror healthyNone
[2/1] [U_]Degraded: second member missing or failedRun mdadm --detail and smartctl, then contact support
(F) after a member nameMember marked faulty by the kernelRemove it from the array before any replacement
recovery = 37.5%Rebuild onto a new or re-added memberWait; avoid heavy writes until it ends
resync = 12.0%Halves being made identical after an unclean stopWait; normal after a crash or hard reboot
check = 80.1%Scheduled consistency scrubNone; read mismatch_cnt when it ends

Which commands check the mirror end to end?

  1. List the arrays

    cat /proc/mdstat prints every md device, its RAID level, its members and the [UU] bracket.

  2. Read the detailed state

    mdadm --detail /dev/md0 (and md1, md2 if present) should show State : clean and Failed Devices : 0.

  3. Check both NVMe drives

    Install smartmontools and run smartctl -a on nvme0n1 and nvme1n1; look at Percentage Used, Media and Data Integrity Errors, and Critical Warning.

  4. Run a scrub

    Write check to /sys/block/md0/md/sync_action, follow it in /proc/mdstat, then read mismatch_cnt; 0 is the expected value.

  5. Wire up alerts

    Add a PROGRAM line to mdadm.conf pointing at a script, then test it with mdadm --monitor --scan --oneshot --test.

Status, drive health, scrub and an alert hook (Debian and Ubuntu paths)
cat /proc/mdstat
mdadm --detail /dev/md0
lsblk -o NAME,SIZE,TYPE,MOUNTPOINT

apt install -y smartmontools
smartctl -a /dev/nvme0n1 | grep -E 'Critical Warning|Percentage Used|Media and Data Integrity Errors|Temperature:'
smartctl -a /dev/nvme1n1 | grep -E 'Critical Warning|Percentage Used|Media and Data Integrity Errors|Temperature:'

echo check > /sys/block/md0/md/sync_action
cat /sys/block/md0/md/mismatch_cnt

# alert hook: mdadm runs the script with the event name and the device
echo 'PROGRAM /usr/local/bin/raid-alert' >> /etc/mdadm/mdadm.conf
systemctl restart mdmonitor
mdadm --monitor --scan --oneshot --test

What should I do when the array shows [U_]?

Stop writing large amounts of data, take a fresh backup of what matters, then send support the outputs of mdadm --detail and smartctl -a for both drives. A degraded mirror still serves every file, but one more failure loses the machine's data.

After the faulty drive is replaced, the new one is empty. The usual sequence copies the partition table from the healthy drive and adds the new partitions back:

  • sfdisk -d /dev/nvme0n1 | sfdisk /dev/nvme1n1
  • mdadm --manage /dev/md0 --add /dev/nvme1n1p2 for each array
  • reinstall the boot loader on the new drive so either one can start the system

If the hardware cannot be repaired, the paid days the machine was unusable are credited back to the balance, under the refund rules.

Why send RAID alerts to a script instead of email?

Because outbound port 25 is closed on every CryptoDedicated machine, so the default MAILADDR line of mdadm cannot deliver anything. The PROGRAM line runs any executable with the event name (Fail, DegradedArray, SpareActive…) and the device as arguments.

A three-line script can post that to a chat webhook with curl, or send mail through an outside provider on port 587 with a tool such as msmtp. Test it once with --test, which fires a TestMessage event for every array. The same alerting habit helps the restic backup guide: a failed nightly job should reach a human.

Is RAID 1 enough to protect the data on a dedicated server?

No: RAID 1 keeps the machine running through one drive failure, but it copies every mistake to both drives at once. A deleted directory, a corrupted database or encrypted files are mirrored within milliseconds.

CryptoDedicated sells daily backups kept 7 days as an option, and any customer can run their own off-site copies. The difference between hardware types is explained in what is a bare metal server. According to CryptoDedicated's survey of 30 October 2026, the price comparison covered 229 dedicated plans from 18 hosts. Each of the five CryptoDedicated plans carries two identical NVMe drives.

Frequently asked questions

How often should I check RAID status?

Let mdadm's monitor watch it continuously and alert on events. A manual look with cat /proc/mdstat after each reboot is a cheap extra check.

Is a RAID 0 or two-separate-disk layout available?

Yes, if asked before delivery. Support can also deliver two separate drives, for ZFS or for two independent file systems.

Does a scrub slow the server down?

Slightly, on disk-heavy workloads. The kernel limits the scrub speed through /proc/sys/dev/raid/speed_limit_min and speed_limit_max.

Is the RAID on CryptoDedicated hardware or software?

Software RAID 1 with Linux mdadm on two identical NVMe drives. It is visible and manageable from the system with the commands on this page.

Verdict
  • cat /proc/mdstat plus mdadm --detail answer the RAID question in seconds; [UU] is the only state to accept.
  • Add a PROGRAM alert hook and a monthly scrub, because port 25 mail will never leave the machine.
  • Treat the mirror as uptime, not backup: keep a restic or provider backup on top.
Sources (4)
  1. mdadm(8) — Linux man-pages (read 2026-11-30)
  2. mdadm.conf(5) — Linux man-pages (read 2026-11-30)
  3. RAID administration (md) — The Linux kernel documentation (read 2026-11-30)
  4. smartctl(8) — smartmontools (read 2026-11-30)

Two NVMe drives in RAID 1 on every plan

Ryzen 9700X, 2 × 1 TB NVMe in RAID 1, 64 GB DDR5: $154.54 per 30 days.

Read next

$154.54 Ryzen 9700X, per 30 days

Order