doc:appunti:linux:sa:raid
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:linux:sa:raid [2022/06/21 13:03] – [Mdadm problem with Debian Jessie and degraded raid1] niccolo | doc:appunti:linux:sa:raid [2025/09/12 15:33] (current) – [Gestione RAID con mdadm] niccolo | ||
|---|---|---|---|
| Line 35: | Line 35: | ||
| === Avviare un volume in modalità degradata === | === Avviare un volume in modalità degradata === | ||
| - | Se non è possibile montare un volume RAID nella sua completezza (ad esempio perché un componente di un RAID1 è guasto), il volume non viene attivato automaticamente. Per forzare l' | + | Se non è possibile montare un volume RAID nella sua completezza (ad esempio perché un componente di un RAID1 è guasto), il volume non viene attivato automaticamente. Per forzare l' |
| - | **ATTENZIONE**! Senza il parametro '' | + | < |
| + | mdadm --assemble /dev/md0 --run | ||
| + | mdadm --misc /dev/md0 --run | ||
| + | </ | ||
| + | |||
| + | Il modo **%%--misc%%** va usato se il device è stato assemblato | ||
| + | |||
| + | È possibile anche forzare | ||
| < | < | ||
| Line 50: | Line 57: | ||
| 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 | ||
| + | mdadm --zero-superblock /dev/sdb2 | ||
| + | </ | ||
| + | |||
| + | === Distruggere un volume RAID === | ||
| + | |||
| + | Per eliminare definitivamente un volume raid è necessario fermarlo, quindi è opportuno azzerare il sperblock di ogni componente, per evitare che l' | ||
| + | |||
| + | < | ||
| + | mdadm --stop /dev/md4 | ||
| + | mdadm --zero-superblock /dev/sda7 | ||
| + | mdadm --zero-superblock /dev/sdb7 | ||
| + | </ | ||
| + | |||
| + | |||
| + | === Vedere l'UUID di un volume RAID === | ||
| + | |||
| + | < | ||
| + | mdadm --detail /dev/md0 | ||
| </ | </ | ||
| Line 183: | Line 208: | ||
| 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 | + | ==== Rename |
| - | To geneate the configuration file **/ | + | To geneate the configuration file **/ |
| < | < | ||
doc/appunti/linux/sa/raid.1655809402.txt.gz · Last modified: by niccolo
