I did it all and got
mdadm: No md superblock detected on /dev/sdb2.
mdadm: No md superblock detected on /dev/sdc2.
The output is redirected to the file /mountpoint/environment, except these ones, because this are error messages.
The command to create a new array is:
- Code: Select all
mdadm --create --assume-clean --metadata=1.0 --layout=left-symmetric --chunk=512K --level=raid5 --raid-devices=5 /dev/md0 /dev/sd[abcde]2
As far as I see this will create an array with the same characteristics as the current one. (chunksize, layout, ...)
Because the role of the partition in the array is imposed by the sequence [abcde] it's important that the device nodes are in the same order as the physical disks. So check if the minors of
- Code: Select all
ls -l /dev/sd*2
match the ones in
- Code: Select all
cat /proc/partitions
before going on.