Mailinglist Archive: opensuse-autoinstall (28 mails)

< Previous Next >
[opensuse-autoinstall] How to install bootloader on both disks with software RAID 1 (openSUSE 11.0)
  • From: Alan Keng <akeng@xxxxxxxx>
  • Date: Tue, 26 Aug 2008 12:41:56 -0700
  • Message-id: <200808261241.56135.akeng@xxxxxxxx>
Hi,

When I used AutoYast with Software RAID 1 partition, I installed the GRUB
bootloader on MBR.

Apparently, the bootloader was only installed on one of the physical hard
disk. How can I set it up to install the bootloader on both of the disks, so
whenever one of the disk's gone bad and doesn't matter which on it is, I am
still able to boot the system?

This is extracted from my control XML file if it helps:

<bootloader>
<device_map config:type="list">
<device_map_entry>
<firmware>fd0</firmware>
<linux>/dev/fd0</linux>
</device_map_entry>
<device_map_entry>
<firmware>hd0</firmware>
<linux>/dev/sda</linux>
</device_map_entry>
<device_map_entry>
<firmware>hd1</firmware>
<linux>/dev/sdb</linux>
</device_map_entry>
</device_map>
<global>
<activate>true</activate>
<boot_mbr>true</boot_mbr>
<default>openSUSE 11.0 - 2.6.25.5-1.1</default>
<gfxmenu>/boot/message</gfxmenu>
<lines_cache_id>3</lines_cache_id>
<timeout config:type="integer">8</timeout>
</global>
<initrd_modules config:type="list">
<initrd_module>
<module>processor</module>
</initrd_module>
<initrd_module>
<module>thermal</module>
</initrd_module>
<initrd_module>
<module>sata_nv</module>
</initrd_module>
<initrd_module>
<module>pata_amd</module>
</initrd_module>
<initrd_module>
<module>fan</module>
</initrd_module>
<initrd_module>
<module>reiserfs</module>
</initrd_module>
<initrd_module>
<module>raid1</module>
</initrd_module>
<initrd_module>
<module>edd</module>
</initrd_module>
</initrd_modules>
<loader_type>grub</loader_type>
<sections config:type="list">
<section>
<append>resume=/dev/md1 splash=silent showopts</append>
<image>/boot/vmlinuz-2.6.25.5-1.1-default</image>
<initial>1</initial>
<initrd>/boot/initrd-2.6.25.5-1.1-default</initrd>
<lines_cache_id>0</lines_cache_id>
<name>openSUSE 11.0 - 2.6.25.5-1.1</name>
<original_name>linux</original_name>
<root>/dev/md2</root>
<type>image</type>
<vga>0x317</vga>
<vgamode>0x317</vgamode>
</section>
<section>
<append>showopts ide=nodma apm=off acpi=off noresume edd=off
x11failsafe</append>
<image>/boot/vmlinuz-2.6.25.5-1.1-default</image>
<initrd>/boot/initrd-2.6.25.5-1.1-default</initrd>
<lines_cache_id>1</lines_cache_id>
<name>Failsafe -- openSUSE 11.0 - 2.6.25.5-1.1</name>
<original_name>failsafe</original_name>
<root>/dev/md2</root>
<type>image</type>
<vga>0x317</vga>
<vgamode>0x317</vgamode>
</section>
<section>
<blockoffset>1</blockoffset>
<chainloader>/dev/fd0</chainloader>
<lines_cache_id>2</lines_cache_id>
<name>Floppy</name>
<noverifyroot>true</noverifyroot>
<original_name>floppy</original_name>
<type>other</type>
</section>
</sections>
</bootloader>

<partitioning config:type="list">
<drive>
<device>/dev/md</device>
<partitions config:type="list">
<partition>
<create config:type="boolean">true</create>
<filesystem config:type="symbol">reiser</filesystem>
<format config:type="boolean">true</format>
<mount>/boot</mount>
<mountby config:type="symbol">device</mountby>
<partition_nr config:type="integer">0</partition_nr>
<raid_options>
<persistent_superblock
config:type="boolean">false</persistent_superblock>
<raid_type>raid1</raid_type>
</raid_options>
</partition>
<partition>
<create config:type="boolean">true</create>
<mount>swap</mount>
<mountby config:type="symbol">device</mountby>
<partition_nr config:type="integer">1</partition_nr>
<raid_options>
<persistent_superblock
config:type="boolean">false</persistent_superblock>
<raid_type>raid_unknown</raid_type>
</raid_options>
</partition>
<partition>
<create config:type="boolean">true</create>
<filesystem config:type="symbol">reiser</filesystem>
<format config:type="boolean">true</format>
<mount>/</mount>
<mountby config:type="symbol">device</mountby>
<partition_nr config:type="integer">2</partition_nr>
<raid_options>
<persistent_superblock
config:type="boolean">false</persistent_superblock>
<raid_type>raid1</raid_type>
</raid_options>
</partition>
<partition>
<create config:type="boolean">true</create>
<filesystem config:type="symbol">reiser</filesystem>
<format config:type="boolean">true</format>
<mount>/home</mount>
<mountby config:type="symbol">device</mountby>
<partition_nr config:type="integer">3</partition_nr>
<raid_options>
<persistent_superblock
config:type="boolean">false</persistent_superblock>
<raid_type>raid1</raid_type>
</raid_options>
</partition>
</partitions>
<type config:type="symbol">CT_MD</type>
<use>all</use>
</drive>
<drive>
<device>/dev/sda</device>
<partitions config:type="list">
<partition>
<create config:type="boolean">true</create>
<filesystem_id config:type="integer">253</filesystem_id>
<partition_id config:type="integer">253</partition_id>
<partition_nr config:type="integer">1</partition_nr>
<partition_type>primary</partition_type>
<raid_name>/dev/md0</raid_name>
<size>2gb</size>
</partition>
<partition>
<create config:type="boolean">true</create>
<filesystem_id config:type="integer">253</filesystem_id>
<partition_id config:type="integer">253</partition_id>
<partition_nr config:type="integer">2</partition_nr>
<partition_type>primary</partition_type>
<size>8gb</size>
</partition>
<partition>
<create config:type="boolean">true</create>
<filesystem_id config:type="integer">253</filesystem_id>
<partition_id config:type="integer">253</partition_id>
<partition_nr config:type="integer">3</partition_nr>
<partition_type>primary</partition_type>
<raid_name>/dev/md2</raid_name>
<size>20gb</size>
</partition>
<partition>
<create config:type="boolean">true</create>
<filesystem_id config:type="integer">253</filesystem_id>
<partition_id config:type="integer">253</partition_id>
<partition_nr config:type="integer">4</partition_nr>
<partition_type>primary</partition_type>
<raid_name>/dev/md3</raid_name>
<size>max</size>
</partition>
</partitions>
<type config:type="symbol">CT_DISK</type>
<use>all</use>
</drive>
<drive>
<device>/dev/sdb</device>
<partitions config:type="list">
<partition>
<create config:type="boolean">true</create>
<filesystem_id config:type="integer">253</filesystem_id>
<partition_id config:type="integer">253</partition_id>
<partition_nr config:type="integer">1</partition_nr>
<partition_type>primary</partition_type>
<raid_name>/dev/md0</raid_name>
<size>2gb</size>
</partition>
<partition>
<create config:type="boolean">true</create>
<filesystem_id config:type="integer">253</filesystem_id>
<partition_id config:type="integer">253</partition_id>
<partition_nr config:type="integer">2</partition_nr>
<partition_type>primary</partition_type>
<raid_name>/dev/md1</raid_name>
<size>8gb</size>
</partition>
<partition>
<create config:type="boolean">true</create>
<filesystem_id config:type="integer">253</filesystem_id>
<partition_id config:type="integer">253</partition_id>
<partition_nr config:type="integer">3</partition_nr>
<partition_type>primary</partition_type>
<raid_name>/dev/md2</raid_name>
<size>20gb</size>
</partition>
<partition>
<create config:type="boolean">true</create>
<filesystem_id config:type="integer">253</filesystem_id>
<partition_id config:type="integer">253</partition_id>
<partition_nr config:type="integer">4</partition_nr>
<partition_type>primary</partition_type>
<raid_name>/dev/md3</raid_name>
<size>max</size>
</partition>
</partitions>
<type config:type="symbol">CT_DISK</type>
<use>all</use>
</drive>
</partitioning>




Thanks,
Alan

--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References