User Tools

Site Tools


doc:appunti:linux:sa:raid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:linux:sa:raid [2022/06/21 11:03] – [Mdadm problem with Debian Jessie and degraded raid1] niccolodoc:appunti:linux:sa:raid [2024/04/17 10:44] (current) – [Gestione RAID con mdadm] niccolo
Line 50: Line 50:
 mdadm --manage /dev/md0 --fail /dev/sdb2 mdadm --manage /dev/md0 --fail /dev/sdb2
 mdadm --manage /dev/md0 --remove /dev/sdb2 mdadm --manage /dev/md0 --remove /dev/sdb2
 +</code>
 +
 +=== Distruggere un volume RAID ===
 +
 +Per eliminare definitivamente un volume raid è necessario fermarlo, quindi è opportuno azzerare il sperblock di ogni componente, per evitare che l'auto-run dei volumi trovi la signature nelle partizioni e provveda a fare l'assemblaggio al successivo reboot:
 +
 +<code>
 +mdadm --stop /dev/md4
 +mdadm --zero-superblock /dev/sda7
 +mdadm --zero-superblock /dev/sdb7
 </code> </code>
  
Line 183: Line 193:
 which actually does not run the array if it is degraded (where the previous start was not). which actually does not run the array if it is degraded (where the previous start was not).
  
-==== Rename device ====+==== Rename an MD device permanently ====
  
-To geneate the configuration file **/etc/mdadm/mdadm.conf** you can use the tool **/usr/share/mdadm/mkconf**, which gathers information from the existing RAID volumes. The information are read from the **superblock** of the MD arrays and contains the **name** and **homehost**, so the file created is something like this:+To geneate the configuration file **/etc/mdadm/mdadm.conf** you can use the tool **/usr/share/mdadm/mkconf**, which gathers information from the existing RAID volumes. The information are read from the **superblock** of the MD arrays and contains the **name** and **homehost**, so the file created contains lines like this:
  
 <file> <file>
doc/appunti/linux/sa/raid.1655809402.txt.gz · Last modified: 2022/06/21 11:03 by niccolo