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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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 Configure Device File owner/group with udev rules
  2. what does .tar file mean
  3. Bash for loop Examples
  4. cut: command not found
  5. avahi-browse Command Examples in Linux
  6. Linux OS Service ‘cpuspeed’
  7. How to Install and Configure Device Mapper Multipath in CentOS/RHEL 6,7
  8. How to disable Ctrl+Alt+Del causing system reboot in CentOS/RHEL 6
  9. namcap: command not found
  10. http-prompt Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright