CentOS 7.x madam basic operations

From Notes_Wiki
Revision as of 10:02, 26 September 2019 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>CentOS_7.x_software_raid_using_mdadm|CentOS 7.x software raid using mdadm</yambe:breadcrumb> =CentOS 7.x mdadm basic operations= ==General software RAID sta...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>CentOS_7.x_software_raid_using_mdadm|CentOS 7.x software raid using mdadm</yambe:breadcrumb>

CentOS 7.x mdadm 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:


<yambe:breadcrumb>CentOS_7.x_software_raid_using_mdadm|CentOS 7.x software raid using mdadm</yambe:breadcrumb>