• 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 Set CPU Affinity for SYSTEMD Process in CentOS/RHEL 7
  2. How to Configure Interface bonding (NIC Teaming) on Oracle Linux 6
  3. How to Install Apache, MariaDB, and PHP (FAMP) stack on FreeBSD 11
  4. How to install and configure MariaDB in CentOS / RHEL 7
  5. How To Create A SSH Banner in CentOS/RHEL Server
  6. Beginners Guide to Samba (Installation and Configuration)
  7. CentOS / RHEL : How to configure iptable rules to allow FTP ports 20/21
  8. Understanding /etc/login.defs file
  9. How to Enable Disk Quotas on an XFS File System
  10. How to Disable “Predictable Network Interface Device Names” in CentOS/RHEL 7

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright