N
N
Nikolai Savelyev2017-04-26 07:58:05
linux
Nikolai Savelyev, 2017-04-26 07:58:05

How to boot from an existing mdadm raid array?

In general, I had to set up and restore, but then something hit a dead end. The server on ubuntu 12.04 worked for about three years. The system was booted from a mirror array made using mdadm. md0 - root, md1 - swap.
Due to 12.04 technical support expiring, I decided to update it to the next version. The update was successful, but after rebooting the system falls into the grub rescue.
grub sees both drives, sees arrays, but there are no md0 and md1 devices in (md/0)/dev/.
When booting from LiveSD, the md0 array is assembled, it can be mounted, chrooted into it, and so on.
After my manipulations, normal grub began to load, but then I get incrementally starting raid arrays incrementally started raid arrays (update-initramfs -u does not help).
Actually, in 3 days I tried almost all the tips from Google. It would be faster to reinstall everything, but this is not sporty.
Can someone tell me how to make grub see the existing raid array?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Vasilyev, 2017-04-28
@mickvav

modprobe raid1
in rescue mode what does it say?
Actually, there are few options:
1) modules didn't get into initrd
2) mdadm didn't get into initrd
3) the boot script in initrd doesn't call mdadm properly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question