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

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • 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. Linux OS service ‘iscsid’
  2. CentOS / RHEL : How to install a specific version of rpm package using YUM
  3. CentOS / RHEL : How to disable BASH shell history
  4. How to Remove virbr0 and lxcbr0 Interfaces on CentOS/RHEL 6,7
  5. How to Count lines in a file in UNIX/Linux
  6. Unable To Remove Files From Directory with Error “Argument list too long”
  7. iSCSI troubleshooting : Targets Not Detected After Reboot
  8. CentOS / RHEL 5 : How to Boot into Rescue Mode
  9. Beginners Guide to Tuning Profiles in CentOS/RHEL
  10. How to install/remove/query/update RPM packages in Linux (Cheat Sheet)

You May Also Like

Primary Sidebar

Recent Posts

  • How to Disable IPv6 on Ubuntu 18.04 Bionic Beaver Linux
  • How to Capture More Logs in /var/log/dmesg for CentOS/RHEL
  • Unable to Start RDMA Services on CentOS/RHEL 7
  • How to rename a KVM VM with virsh
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary