I have assembled a new raid array to replace an old one. However, this new array got assigned an automatic name of /dev/md127 and I want to rename it to /dev/md3, so that I don't have to change various other settings. How do I rename an mdadm raid array?
Start with
The first line shows the metadata version used by this array. Now, stop the array:
And assemble it again using the new name. If the metadata version is 1.0 or higher, use this:
For arrays using old metadata structure (most likely 0.90, as it allows for kernel auto-assembly), use this:
| |||||
feedback
|