Is production: true
#migrated

Title: How to resume a mdadm device

Created: 19 Mar 2023 Modified: 19 Mar 2023

Description:



[Legacy Link]

[Link]

Instructions

In my use case, i have an raid 1 device that the system crashed, nothing left in the system, but raid device kept.

So i have two raided hard disk. After installed the system, i have to rebuild the raid array.

  1. Install mdadm How to install mdadm on centos

  2. Rebuild mdadm

    #/dev/md0 is raid result device
    #/dev/sdb and /dev/sdc is the hard disk
    sudo mdadm --assemble /dev/md0 /dev/sdb /dev/sdc
    
  3. Mount the multiple device to mount point

    mkdir /data
    mount /dev/md0 /data