Re: [opensuse-autoinstall] Redundant bootloader with mdraid
Hmmm, when I manually create my partitions and the raid sets the bootloader is installed on both disks. If I shut down the system and remove the sda, the system boots from sdb, everything is fine. Thats all I want from autoyast. How can I boot the system when there is no grub on the second disk? Regards Daniel Am 30.06.2016 um 14:39 schrieb Eric Rothweiler:
That is completely normal for software raid. The mdraid module can't be loaded until the bootloader is loaded and running, therefore it cannot boot off of the secondary mirror disk without manual intervention. You can create a /boot partition on the secondary disk manually and copy the contents manually but you would still need to intervene to set it as your boot disk in case of primary disk failure.
On Thu, Jun 30, 2016 at 8:33 AM, Daniel Spannbauer
mailto:ds@marco.de> wrote: Hello,
I try to install a machine with a mdraid configuration (raid 1). Raid is working fine, but how do I get a bootloader on both harddisks? At the moment the bootloader is only installed on sda.
Regards
Daniel
-- Daniel Spannbauer Systemadministration marco Systemanalyse und Entwicklung GmbH Tel +49 8333 9233-27 tel:%2B49%208333%209233-27 Fax -11 Rechbergstr. 4-6, D 87727 Babenhausen Mobil +49 171 4033220 tel:%2B49%20171%204033220 http://www.marco.de/ Email ds@marco.de mailto:ds@marco.de Geschäftsführer Martin Reuter HRB 171775 Amtsgericht München -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org mailto:opensuse-autoinstall%2Bunsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org mailto:opensuse-autoinstall%2Bowner@opensuse.org
-- Daniel Spannbauer Systemadministration marco Systemanalyse und Entwicklung GmbH Tel +49 8333 9233-27 Fax -11 Rechbergstr. 4-6, D 87727 Babenhausen Mobil +49 171 4033220 http://www.marco.de/ Email ds@marco.de Geschäftsführer Martin Reuter HRB 171775 Amtsgericht München -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um den Listen Administrator zu erreichen, schicken Sie eine Mail an: opensuse-de+owner@opensuse.org
Hi, ----------------------- Am Donnerstag, 30. Juni 2016 um 15:43 schrieb Daniel Spannbauer:
when I manually create my partitions and the raid sets the bootloader is installed on both disks.
If I shut down the system and remove the sda, the system boots from sdb, everything is fine. Thats all I want from autoyast. How can I boot the system when there is no grub on the second disk?
AFAIK this can be done in the grub shell. But not shure if this still works. A time ago I did it this way: type grub with root privileges to swith to the grub shell. Then type device (hd0) /dev/sda device (hd1) /dev/sdb root (hd0,0) setup (hd0) root (hd1,0) setup (hd1) quit But the bootloader can also be written to the other disk via dd. Check with "fdisk -lu" where the first partition starts. By default the first sector starts at 1 MB now (sector 2048). Then write the first 1 MB from sda to sdb: dd if=/dev/sda of=/dev/sdb bs=1M count=1 Of course the boot partiotion has also to be copied to sdb and it has to be at the same position. regards, Richard -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um den Listen Administrator zu erreichen, schicken Sie eine Mail an: opensuse-de+owner@opensuse.org
participants (2)
-
Daniel Spannbauer
-
Richard Hafenscher