Difference between revisions of "CentOS 7.x madam basic operations"

From Notes_Wiki
(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...")
 
m
 
Line 1: Line 1:
<yambe:breadcrumb>CentOS_7.x_software_raid_using_mdadm|CentOS 7.x software raid using mdadm</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x system administration|System Administration]] > [[CentOS 7.x file system management|File system management]] > [[CentOS 7.x software raid using mdadm]] > [[CentOS 7.x madam basic operations]]
=CentOS 7.x mdadm basic operations=


==General software RAID status==
==General software RAID status==
Line 42: Line 41:




<yambe:breadcrumb>CentOS_7.x_software_raid_using_mdadm|CentOS 7.x software raid using mdadm</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x system administration|System Administration]] > [[CentOS 7.x file system management|File system management]] > [[CentOS 7.x software raid using mdadm]] > [[CentOS 7.x madam basic operations]]

Latest revision as of 06:43, 25 August 2022

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