Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

5.9.9.2. Rebuilding a RAID array


Should /proc/mdstat show that a problem exists with one of the RAID arrays, you can rebuild it by performing the following steps:
  1. Remove the disk from the raid array.
    mdadm --manage /dev/md0 -r /dev/sdc3
  2. Remove the disk from the system.
  3. Using fdisk, replace the removed disk and re-format the replacement disk.
  4. Add the new disk back to the RAID array.
    mdadm --manage /dev/md0 -a /dev/sdc3
  5. To restore the disk, perform a "software fail" the previous spare slice:
    mdadm --manage --set-faulty /dev/md0 /dev/sdc3
  6. The system will now attempt to rebuild the array on the replaced disk. Use the following command to monitor status:
    watch -n 1 cat /proc/mdstat
  7. When the array is finished rebuilding, remove and then re-add the software-failed disk back to the array.
    mdadm --manage /dev/md0 -r /dev/sdc3
    mdadm --manage /dev/md0 -a /dev/sdc3
  8. Check the array.
    mdadm --detail /dev/md0
Red Hat logoGithubRedditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

© 2024 Red Hat, Inc.