# Software RAID - mdadm

## Software RAID erstellen

[http://www.prontosystems.org/tux/software\_raid](http://www.prontosystems.org/tux/software_raid)

## RAID Device umbenennen

Quelle: [https://serverfault.com/questions/267480/how-do-i-rename-an-mdadm-raid-array](https://serverfault.com/questions/267480/how-do-i-rename-an-mdadm-raid-array)

Start with `mdadm --detail /dev/md127`:

<div id="bkmrk-version-%3A-0.90-creat"><div>```
Version : 0.90
Creation Time : Wed Apr 13 20:03:21 2011
Raid Level : raid10
Array Size : 656765952 (626.34 GiB 672.53 GB)
Used Dev Size : 437843968 (417.56 GiB 448.35 GB)
Raid Devices : 3
Total Devices : 2
Preferred Minor : 8
Persistence : Superblock is persistent

```

</div></div>The first line shows the metadata version used by this array. Now, stop the array:

<div id="bkmrk-mdadm---stop-%2Fdev%2Fmd"><div>```
mdadm --stop /dev/md127
mdadm --remove /dev/md127

```

</div></div>And assemble it again using the new name. If the metadata version is 1.0 or higher, use this:

<div id="bkmrk-mdadm---assemble-%2Fde"><div>```
mdadm --assemble /dev/md3 /dev/sd[abcdefghijk]3 --update=name

```

</div></div>For arrays using old metadata structure (most likely 0.90, as it allows for kernel auto-assembly), use this:

<div id="bkmrk-mdadm---assemble-%2Fde-0">```
mdadm --assemble /dev/md3 --update=super-minor /dev/sd[abcdefghijk]3

```

</div>