• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS / RHEL : How to assemble a software RAID in Rescue mode

by admin

mdadm (multiple devices admin) is an extremely useful tool for running RAID systems. It’s is a tool for creating, managing, and monitoring RAID devices using the md driver. It can be used as a replacement for the raidtools, or as a supplement. The pos describes a way to assemble a software RAID in rescue mode.

1. Boot into rescue mode.

2. First create the mdadm.conf file with the disks available

# mdadm --examine --scan >> /etc/mdadm.conf

3. Assemble the array

# mdadm --assemble --scan /dev/md0

4. If you do not use LVM, you can stop here and mount the partitions available on the software raid device md0
For example,

# mkdir /test
# mount /dev/md0 /test

If you use LVM, please continue at step 5.

5. Scan the lvm devices

# pvscan
# vgscan

6. Activate the lvm volumes

# vgchange -ay

7. Similar to step 4., mount the logical volumes

# mkdir /data
# mount /dev/mapper/rootvg-lv_root /data

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to Change or Rename a Mount Point in Linux
  2. grep Command Examples in Linux (Cheat Sheet)
  3. A little trick: select a random file or line in the file with shuf
  4. How to Kill VNC Window Sessions in Linux
  5. geth: The go-ethereum command-line interface
  6. kcadm.sh Command Examples
  7. alias Command Examples in Linux
  8. duperemove Command Examples in Linux
  9. Nginx load balancing
  10. notify-send Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright