Issues with RAID- creating as /dev/md127 instead of what's in the config
Hi,
Recently, I decided to change my partition scheme for my home server. I had a RAID0 that previously spanned three disks and now I only want it to span two. Getting rid of the old one was easy. But getting the new one to work has been a real pain. It's running Debian Jessie. For starters, here's my /etc/mdadm/mdadm.conf: Code:
root@maples-server:~# cat /etc/mdadm/mdadm.conf Code:
root@maples-server:~# cat /proc/mdstat Code:
root@maples-server:~# ls -l /dev/md* Code:
root@maples-server:~# mdadm --detail --scan Does anyone have any ideas? |
As the kids say "Too Much Information!". Change you mdadm.conf ARRAY line to:
Code:
ARRAY /dev/md0 UUID=032e4ab2:53ac5db8:98806abd:420716a5 |
Thanks for the reply!
Unfortunately, that doesn't seem to do the trick... Code:
root@maples-server:~# cat /etc/mdadm/mdadm.conf |
Have you changed the hostname since you created the array? Check the output from
Code:
mdadm --detail /dev/md127 |
No, the hostname is still the same.
Code:
root@maples-server:~# mdadm --detail /dev/md127 |
Check the log from the reboot
Code:
dmesg |grep md |
There is a lot of non-mdadm output, I've bolded (hopefully) all of the relevant parts. I've also "filled in" one line that applied to another mdadm line that just didn't happen to contain "md"
Code:
[ 0.000000] Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) |
The raid is being automatically assembled by the kernel, which is why mdadm.conf doesn't matter. I don't know why it isn't using the ":0" part of the name to make it md0.
|
So there's no way to make the kernel give it a certain name?
|
I suspect you can update the initramfs with the correct mdadm.conf to fix this. See this post:
http://unix.stackexchange.com/questi...bled-at-bootup |
Quote:
For me, all I had to do was run Code:
update-initramfs -u Thank you! |
All times are GMT -5. The time now is 10:50 AM. |