06 Sep, 2009

Chuleta de MDADM (Raid Software)

Posted by: leopoldomaestro In: Almacenamiento|Linux|RAID

Obtener información del RAID:

# cat /proc/mdstat

Detalles de las unidades RAID:

# mdadm –query /dev/md0

# mdadm –detail /dev/md0

Detalles de las unidades físicas:

# mdadm –query /dev/sdb1

# mdadm –examine /dev/sdb1

Administración de una RAID y sus discos

* Establecer un disco como faulty/failed:

$ sudo mdadm –fail /dev/md0 /dev/sdb1

No utilizar en RAID0 ó RAID en modo linear. Pueden perderse los datos!

* Quitar un disco fallido de una RAID:

$ sudo mdadm –remove /dev/md0 /dev/sdb1

* Limpiar cualquier información previa de un disco RAID (Ej. al reutilizar un disco de otra raid antigua)

$ sudo mdadm –zero-superblock /dev/sdb1

* Añadir un disco a la RAID

$ sudo mdadm –add /dev/md0 /dev/sdb1

* Añadir soporte “bitmap” a un RAID

$ sudo mdadm –grow /dev/mdX –bitmap=internal

* Quitar el soporte de “bitmap” a un RAID

$ sudo mdadm –grow /dev/mdX –bitmap=none

* Crear un RAID

mdadm --create --verbose /dev/md0 --level=1 /dev/sda1 /dev/sdb2

* Generar el mdadm.conf con la configuración actua

mdadm --detail --scan >> /etc/mdadm.conf

Fuente:  Ruddyger & Ducea

5 Respuestas en "Chuleta de MDADM (Raid Software)"

1 | burff

junio 19th, 2010 at 11:02 pm


excelente uno nunca sabe cuando hace falta una chuleta asi

2 | burff

octubre 29th, 2011 at 5:38 pm


si te falla creando el raid agrega –raid-devices=2

3 | fortato

junio 27th, 2012 at 9:53 am


Gracias por el aporte. Ya he usado la chuleta varias veces.

4 | Sistema de discos en espejo, configurar RAID por software. | Jose Alberto Benítez Andrades

octubre 24th, 2013 at 10:24 am


[…] Y os dejo también una “chuleta” de comandos mdam => http://www.leopoldomaestro.com/chuleta-de-mdadm-raid-software/ […]

5 | Paulo

julio 17th, 2014 at 11:13 pm


Too often in our lives experiments are put on real smsetys, whether the country’s economy, a separate organization or system management of a complex intersection. The person accepting the decision, hopes thus for the insight, intuition and good luck. To a bowl of all it in anything good does not result. Decision-maker, is hoping with its insight, intuition and luck. Most often it is any good does not. ” Wanted as better, and it has turned out as always ” the usual characteristic of such decisions. ” We wanted the best, but it turned out as always ” This is the usual characteristics of such solutions.Low efficiency of the administrative decisions made on the basis of intuition, speaks that, that causes and effects in complex(difficult) smsetys are carried in time and space, therefore it is difficult for person to predict, what consequences will be caused with this or that decision. The low efficiency of management decisions made based on intuition, because the cause and effect in complex smsetys are separated in time and space, so the man is hard to predict what impact will a decision. When for a rating of accepted decisions experiment with real smsetys is impossible or expensive, modelling is used. In cases where the assessment for decision-making experiment with real smsetys is impossible or too expensive, using simulation.Imitating modelling is a development of computer models and production of experiments on them. The purpose of modelling finally is acceptance adequate (i.e. proved, expedient and sold) administrative decisions. Simulation is the development of computer models and the experiments on them. The purpose of modeling is ultimately the adoption of adequate (ie sound, feasible and implementable) management decisions. Computer modelling becomes today an obligatory stage in acceptance of critical decisions in all spheres of activity of the person in connection with complication of smsetys within the framework of which the person should operate and which it(he) should operate. Computer simulation is now an obligatory stage in making responsible decisions in all areas of human activity in relation to the complexity of smsetys in which a man must act, and that it must manage. The knowledge of concepts, principles and opportunities of imitating modelling, skill to build and use model are necessary requirements to a polic

Haz un comentario



Sobre el blog

Blog personal de Leopoldo Maestro en el que se cubren noticias, curiosidades y experiencias relacionadas con la Administración de Sistemas, Networking, Negocios, Tecnología...