CentOS 7.x madam basic operations

From Notes_Wiki
Revision as of 06:43, 25 August 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > CentOS > CentOS 7.x > System Administration > File system management > CentOS 7.x software raid using mdadm > CentOS 7.x madam basic operations

General software RAID status

At any time to see software RAID status eg rebuilding or device failure use:

cat /proc/mdstat


Detect array with mdadm.conf during rescue boot after a component raid device has failed

Auto-detect array created arrays during rescue mode without mdadm.conf file. To auto-detect (assemble) array during rescue mode after a failed device is removed use:

  mdadm --assemble --scan

Then if the failed device is still listed it can be removed using:

  mdadm --remove /dev/md<n> /dev/sd<n>

If the device is not in failed state, it can be set to failed state using:

  mdadm --fail /dev/md<n> /dev/sd<n>


See details of raid device

At any time see detail of raid device using:

  mdadm --detail /dev/md<n>

Similarly a component drive of raid can be examined using:

  mdadm --examine /dev/sd<n>

Refer:


Home > CentOS > CentOS 7.x > System Administration > File system management > CentOS 7.x software raid using mdadm > CentOS 7.x madam basic operations