Este contenido no está disponible en el idioma seleccionado.

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

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

© 2024 Red Hat, Inc.