PDA

View Full Version : [ubuntu] 11.04 Server only booting from 1 HDD of RAID-1



dharma_initiative
August 6th, 2011, 06:15 PM
Hello Community,

in the past i`ve found man helpful hints in this forum but now i have a problem which i can`t solve via google.

I`ve set up Ubuntu 11.04 Server x64 on a RAID-1 containing 3 Discs.
On each disc there are three Partitions:


/dev/sda1 -> /
/dev/sda2 -> SWAP
/dev/sda3 -> data

/dev/sdb1 -> /
/dev/sdb2 -> SWAP
/dev/sdb3 -> data

/dev/sdc1 -> /
/dev/sdc2 -> SWAP
/dev/sdc3 -> data/ and SWAP are both RAID-1 arrays, data will be a RAID-5 array later.

The Installation went fine but after that i started to test the RAID-functionality.
So i removed each of the hard discs on its own, strating with the third then the second and last the first disc.

Booting with HDD1&2 went fine and booting with HDD1&3 went fine too.
After removing the disc i plugged it in again and did a mdadm --re-add before unplugging the next ;-) )
But when i removed the first Hard Disc, my System doesn`t boot anymore.
When the GRUB Boot-Menu should appear, the PC does a reboot again and again.

So i came to the decision that the machine is only booting from the first hard disc.

I`ve tried all i know at the moment about Linux:



dd if=/dev/sda of=/dev/sdb bs=512 count=1
dd if=/dev/sda of=/dev/sdc bs=512 count=1
grub-install /dev/sdb
grub-install /dev/sdc

But the system isn`t booting without the HDD1.

Can anybody help me with this problem? I cannot sleep well if i know the system won`t boot without the first Hard Disc.:D

Thanks in advance for your help

Attached some information:



fdisk -l

Platte /dev/sdb: 2000.4 GByte, 2000398934016 Byte
255 Köpfe, 63 Sektoren/Spur, 243201 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006f27f

Gerät boot. Anfang Ende Blöcke Id System
/dev/sdb1 1 1306 10485760+ fd Linux raid autodetect
/dev/sdb2 1306 1698 3145728+ fd Linux raid autodetect
/dev/sdb3 1698 243202 1939883063+ fd Linux raid autodetect

Platte /dev/sdc: 2000.4 GByte, 2000398934016 Byte
255 Köpfe, 63 Sektoren/Spur, 243201 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006f27f

Gerät boot. Anfang Ende Blöcke Id System
/dev/sdc1 * 1 1306 10485760+ fd Linux raid autodetect
/dev/sdc2 1306 1698 3145728+ fd Linux raid autodetect
/dev/sdc3 1698 243202 1939883063+ fd Linux raid autodetect

Platte /dev/sda: 2000.4 GByte, 2000398934016 Byte
255 Köpfe, 63 Sektoren/Spur, 243201 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006f27f

Gerät boot. Anfang Ende Blöcke Id System
/dev/sda1 1 1306 10485760+ fd Linux raid autodetect
/dev/sda2 1306 1698 3145728+ fd Linux raid autodetect
/dev/sda3 1698 243202 1939883063+ fd Linux raid autodetect

Platte /dev/md0: 10.7 GByte, 10736295936 Byte
2 Köpfe, 4 Sektoren/Spur, 2621166 Zylinder
Einheiten = Zylinder von 8 × 512 = 4096 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Platte /dev/md1: 3220 MByte, 3220164608 Byte
2 Köpfe, 4 Sektoren/Spur, 786173 Zylinder
Einheiten = Zylinder von 8 × 512 = 4096 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Platte /dev/sdd: 4011 MByte, 4011851776 Byte
124 Köpfe, 62 Sektoren/Spur, 1019 Zylinder
Einheiten = Zylinder von 7688 × 512 = 3936256 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18

Gerät boot. Anfang Ende Blöcke Id System
/dev/sdd1 1 1019 3917005 83 Linux



/boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod raid
insmod mdraid1x
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md/0)'
search --no-floppy --fs-uuid --set=root 1b45dc91-2424-45b6-b1d6-5b781e83a6d2
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod raid
insmod mdraid1x
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md/0)'
search --no-floppy --fs-uuid --set=root 1b45dc91-2424-45b6-b1d6-5b781e83a6d2
set locale_dir=($root)/boot/grub/locale
set lang=de_DE
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, mit Linux 2.6.38-8-server' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod raid
insmod mdraid1x
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md/0)'
search --no-floppy --fs-uuid --set=root 1b45dc91-2424-45b6-b1d6-5b781e83a6d2
linux /boot/vmlinuz-2.6.38-8-server root=UUID=1b45dc91-2424-45b6-b1d6-5b781e83a6d2 ro quiet
initrd /boot/initrd.img-2.6.38-8-server
}
menuentry 'Ubuntu, mit Linux 2.6.38-8-server (Wiederherstellungsmodus)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod raid
insmod mdraid1x
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md/0)'
search --no-floppy --fs-uuid --set=root 1b45dc91-2424-45b6-b1d6-5b781e83a6d2
echo 'Loading Linux 2.6.38-8-server ...'
linux /boot/vmlinuz-2.6.38-8-server root=UUID=1b45dc91-2424-45b6-b1d6-5b781e83a6d2 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-8-server
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod raid
insmod mdraid1x
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md/0)'
search --no-floppy --fs-uuid --set=root 1b45dc91-2424-45b6-b1d6-5b781e83a6d2
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod raid
insmod mdraid1x
insmod part_msdos
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md/0)'
search --no-floppy --fs-uuid --set=root 1b45dc91-2424-45b6-b1d6-5b781e83a6d2
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###



mdadm --misc -D /dev/md0

/dev/md0:
Version : 1.2
Creation Time : Sat Aug 6 18:12:19 2011
Raid Level : raid1
Array Size : 10484664 (10.00 GiB 10.74 GB)
Used Dev Size : 10484664 (10.00 GiB 10.74 GB)
Raid Devices : 3
Total Devices : 3
Persistence : Superblock is persistent

Update Time : Sat Aug 6 18:50:03 2011
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0

Name : perle:0 (local to host perle)
UUID : 8ab71602:40b58f7e:246e418f:e5a2babc
Events : 25

Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 17 1 active sync /dev/sdb1
2 8 33 2 active sync /dev/sdc1



mdadm --misc -D /dev/md1

/dev/md1:
Version : 1.2
Creation Time : Sat Aug 6 18:12:29 2011
Raid Level : raid1
Array Size : 3144692 (3.00 GiB 3.22 GB)
Used Dev Size : 3144692 (3.00 GiB 3.22 GB)
Raid Devices : 3
Total Devices : 3
Persistence : Superblock is persistent

Update Time : Sat Aug 6 18:30:20 2011
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0

Name : perle:1 (local to host perle)
UUID : 0c782af2:8e1345c2:b8baf41d:d88a336a
Events : 19

Number Major Minor RaidDevice State
0 8 2 0 active sync /dev/sda2
1 8 18 1 active sync /dev/sdb2
2 8 34 2 active sync /dev/sdc2





cat /proc/mdstat

Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md1 : active raid1 sdc2[2] sdb2[1] sda2[0]
3144692 blocks super 1.2 [3/3] [UUU]

md0 : active raid1 sdc1[2] sdb1[1] sda1[0]
10484664 blocks super 1.2 [3/3] [UUU]

unused devices: <none>


grub-install /dev/sda (same for sdb & sdc)

Installation finished. No error reported.




Edit:

I`ve read in an other Thread to try
sudo grub-install --root-directory=/boot /dev/sda

After doing this the PC isn`t rebooting and shows me the following picture

http://www.abload.de/thumb/2011-08-0619.36.160c38.jpg (http://www.abload.de/image.php?img=2011-08-0619.36.160c38.jpg)

MAFoElffen
August 6th, 2011, 10:17 PM
Hello Community,

in the past i`ve found man helpful hints in this forum but now i have a problem which i can`t solve via google.

I`ve set up Ubuntu 11.04 Server x64 on a RAID-1 containing 3 Discs.
On each disc there are three Partitions:


/dev/sda1 -> /
/dev/sda2 -> SWAP
/dev/sda3 -> data

/dev/sdb1 -> /
/dev/sdb2 -> SWAP
/dev/sdb3 -> data

/dev/sdc1 -> /
/dev/sdc2 -> SWAP
/dev/sdc3 -> data/ and SWAP are both RAID-1 arrays, data will be a RAID-5 array later.

The Installation went fine but after that i started to test the RAID-functionality.
So i removed each of the hard discs on its own, strating with the third then the second and last the first disc.

Booting with HDD1&2 went fine and booting with HDD1&3 went fine too.
After removing the disc i plugged it in again and did a mdadm --re-add before unplugging the next ;-) )
But when i removed the first Hard Disc, my System doesn`t boot anymore.
When the GRUB Boot-Menu should appear, the PC does a reboot again and again.

So i came to the decision that the machine is only booting from the first hard disc.

I`ve tried all i know at the moment about Linux:


dd if=/dev/sda of=/dev/sdb bs=512 count=1
dd if=/dev/sda of=/dev/sdc bs=512 count=1
grub-install /dev/sdb
grub-install /dev/sdc

But the system isn`t booting without the HDD1.

Can anybody help me with this problem? I cannot sleep well if i know the system won`t boot without the first Hard Disc.:D

Attached some information:


grub-install /dev/sda (same for sdb & sdc)

Installation finished. No error reported.Edit:
I`ve read in an other Thread to try
sudo grub-install --root-directory=/boot /dev/sda

When I first read this... I said to myself - I know what's wrong,but then I read more and...

Well RAID 1 is a mirror, so when you install Grub it should be installed in the MBR pointing to the /boot/grub of that disk- in each disk of the array. That is where they are not mirrors/are different. So that If a disk fails, the next disk could boot. One of the work-arounds for that is to add menuitems into the 40_custom to boot single disks in case of failures...

But you (at the end of your post) said that Grubs installed fine with no errors on all 3 disks(?)

Could you post the results of the boot info script in my sig line? That would tell us where grub iis installed and where each instance of grub is pointing to for the boot menu.

dharma_initiative
August 6th, 2011, 10:37 PM
Could you post the results of the boot info script in my sig line? That would tell us where grub iis installed and where each instance of grub is pointing to for the boot menu.

Thanks for your Reply.
Here`s the output of your script:



RESULTS.txt
Boot Info Script 0.60 from 17 May 2011


============================= Boot Info Summary: ===============================

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for ?? on this drive.
=> Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for ?? on this drive.
=> Grub2 (v1.99) is installed in the MBR of /dev/sdc and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for ?? on this drive.
=> Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sdd.

sda1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: Unknown
Boot sector info:

sda2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sda3: __________________________________________________ ________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: unbekannter Dateisystemtyp „“

sdb1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: Unknown
Boot sector info:

sdb2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdb3: __________________________________________________ ________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: unbekannter Dateisystemtyp „“
mount: unbekannter Dateisystemtyp „“

sdc1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: Unknown
Boot sector info:

sdc2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdc3: __________________________________________________ ________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: unbekannter Dateisystemtyp „“
mount: unbekannter Dateisystemtyp „“
mount: unbekannter Dateisystemtyp „“

sdd1: __________________________________________________ ________________________

File system: vfat
Boot sector type: FAT32
Boot sector info: According to the info in the boot sector, sdd1 starts
at sector 0. But according to the info from fdisk,
sdd1 starts at sector 62.
Operating System:
Boot files:

md/0: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Mounting failed: mount: unbekannter Dateisystemtyp „“
mount: unbekannter Dateisystemtyp „“
mount: unbekannter Dateisystemtyp „“
mount: /dev/md0 ist bereits eingehängt oder MDRaid/md/0 wird gerade benutzt
mount: Laut mtab ist /dev/md0 auf / eingehängt

md/1: __________________________________________________ ________________________

File system: swap
Boot sector type: -
Boot sector info:

============================ Drive/Partition Info: =============================

Drive: sda __________________________________________________ ___________________

Platte /dev/sda: 2000.4 GByte, 2000398934016 Byte
255 Köpfe, 63 Sektoren/Spur, 243201 Zylinder, zusammen 3907029168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 63 20,971,583 20,971,521 fd Linux raid autodetect
/dev/sda2 20,971,584 27,263,040 6,291,457 fd Linux raid autodetect
/dev/sda3 27,263,041 3,907,029,167 3,879,766,127 fd Linux raid autodetect


Drive: sdb __________________________________________________ ___________________

Platte /dev/sdb: 2000.4 GByte, 2000398934016 Byte
255 Köpfe, 63 Sektoren/Spur, 243201 Zylinder, zusammen 3907029168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 63 20,971,583 20,971,521 fd Linux raid autodetect
/dev/sdb2 20,971,584 27,263,040 6,291,457 fd Linux raid autodetect
/dev/sdb3 27,263,041 3,907,029,167 3,879,766,127 fd Linux raid autodetect


Drive: sdc __________________________________________________ ___________________

Platte /dev/sdc: 2000.4 GByte, 2000398934016 Byte
255 Köpfe, 63 Sektoren/Spur, 243201 Zylinder, zusammen 3907029168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdc1 * 63 20,971,583 20,971,521 fd Linux raid autodetect
/dev/sdc2 20,971,584 27,263,040 6,291,457 fd Linux raid autodetect
/dev/sdc3 27,263,041 3,907,029,167 3,879,766,127 fd Linux raid autodetect


Drive: sdd __________________________________________________ ___________________

Platte /dev/sdd: 4011 MByte, 4011851776 Byte
124 Köpfe, 62 Sektoren/Spur, 1019 Zylinder, zusammen 7835648 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdd1 62 7,834,071 7,834,010 83 Linux


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/md0 1b45dc91-2424-45b6-b1d6-5b781e83a6d2 ext4
/dev/md1 75a9c9f2-1c1a-43b6-b408-b5c237bd29f9 swap
/dev/sda1 8ab71602-40b5-8f7e-246e-418fe5a2babc linux_raid_member perle:0
/dev/sda2 0c782af2-8e13-45c2-b8ba-f41dd88a336a linux_raid_member perle:1
/dev/sdb1 8ab71602-40b5-8f7e-246e-418fe5a2babc linux_raid_member perle:0
/dev/sdb2 0c782af2-8e13-45c2-b8ba-f41dd88a336a linux_raid_member perle:1
/dev/sdc1 8ab71602-40b5-8f7e-246e-418fe5a2babc linux_raid_member perle:0
/dev/sdc2 0c782af2-8e13-45c2-b8ba-f41dd88a336a linux_raid_member perle:1
/dev/sdd1 05E7-D585 vfat

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/md0 / ext4 (rw,errors=remount-ro)
/dev/sdd1 /mnt/usb vfat (rw)


======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda1

00000000 f9 ad 18 a1 0f 77 6b b4 2d 17 56 22 15 64 2e 8e |.....wk.-.V".d..|
00000010 3c c3 35 3e 6f 41 14 01 5f 06 17 6a d4 d4 ac 29 |<.5>oA.._..j...)|
00000020 03 36 0e 30 1c c3 a5 89 e4 33 43 66 bd c6 94 d0 |.6.0.....3Cf....|
00000030 d7 7b e7 b4 ed 94 20 ba 02 2d 72 2c d6 4e 89 e7 |.{.... ..-r,.N..|
00000040 d3 51 2d 17 8d f5 3d 4b ba 77 b4 87 df 45 fc 9f |.Q-...=K.w...E..|
00000050 94 6d be de 8c bf 3e b3 e4 3a 79 51 a6 bb 01 6d |.m....>..:yQ...m|
00000060 7b 45 eb c2 a4 4b 7a 01 91 73 82 b0 bc 6a 95 34 |{E...Kz..s...j.4|
00000070 44 7b 20 e1 dc 37 39 a9 4b 3b 75 f9 07 a4 40 3c |D{ ..79.K;u...@<|
00000080 d9 cc 08 29 ab bb 2f 86 10 a1 c8 6e ce d8 42 64 |...)../....n..Bd|
00000090 0e b8 32 44 62 eb 68 30 0e 7e 2d d6 b7 e9 84 c3 |..2Db.h0.~-.....|
000000a0 26 79 e7 31 c1 c9 57 f5 3f 56 88 a6 3a 74 fc 80 |&y.1..W.?V..:t..|
000000b0 dd b7 9c 82 02 ba 7f 48 59 51 81 96 02 c7 33 11 |.......HYQ....3.|
000000c0 79 5b 92 f3 dd 09 52 3a 92 2f 6a 5f 7c 10 71 69 |y[....R:./j_|.qi|
000000d0 7f c3 f6 16 a6 4f b8 93 c8 b2 18 30 37 de 51 bd |.....O.....07.Q.|
000000e0 e8 81 ab 95 47 9e b0 3a 2d 4c 80 e7 a9 14 ca b6 |....G..:-L......|
000000f0 ad 6d 53 6a 58 0e 1b 5e 15 c6 c8 64 70 9c ae ef |.mSjX..^...dp...|
00000100 53 7c 43 82 51 3b fc 41 d8 1d 1e 2a 73 f9 48 43 |S|C.Q;.A...*s.HC|
00000110 e8 2c 4d d8 de 6c b1 31 2e 2d b7 93 fe a8 16 99 |.,M..l.1.-......|
00000120 8a d2 ea ce be ba b2 fd 93 86 cd fa cd 8b fb c3 |................|
00000130 88 c9 77 1b 94 36 5b 23 a8 2d 74 62 f5 a8 1a 73 |..w..6[#.-tb...s|
00000140 98 a3 95 0c 31 e2 5c 58 0e 6d fa 8d c4 14 9b a4 |....1.\X.m......|
00000150 f5 8d 95 9a 2f 7e 0f 91 f4 38 74 23 9d 19 f2 c6 |..../~...8t#....|
00000160 07 6d fe 6d 79 8c 20 0c 62 8c 33 4f d6 ae f9 fd |.m.my. .b.3O....|
00000170 4a 2a f8 3c d6 85 76 10 04 e5 ce 39 39 af 55 41 |J*.<..v....99.UA|
00000180 8f c2 6a ed 29 53 25 03 a7 34 45 a4 8e 46 88 1a |..j.)S%..4E..F..|
00000190 9e dd b6 a3 a5 0d 88 ab 4c ca 6a 3f 6b 3f c1 ce |........L.j?k?..|
000001a0 46 5b f0 11 5d 32 ad 2c 24 ba a8 32 a3 ee dd 8b |F[..]2.,$..2....|
000001b0 6b 80 d8 95 af e8 1b e2 fa 48 4e a5 bf 01 8f 4a |k........HN....J|
000001c0 cc 9d fd 94 87 74 0d ce 50 ca 95 5d 24 11 c3 24 |.....t..P..]$..$|
000001d0 8c 2a 20 c8 5a b1 d0 69 75 dd 5d c0 0a ef 8e e7 |.* .Z..iu.].....|
000001e0 af c8 df b2 8f 04 29 02 d7 18 bb 4b 2b 69 48 76 |......)....K+iHv|
000001f0 14 8b a1 75 ef 65 6a d4 b2 b0 dc 88 54 2e 5c fc |...u.ej.....T.\.|
00000200

Unknown BootLoader on sda3

00000000 8f 9b 78 cf 4d fd ac c2 91 63 91 4c c7 9f cf 30 |..x.M....c.L...0|
00000010 95 df ee b4 4a e9 df 5f 59 70 2f 28 c5 79 f1 2a |....J.._Yp/(.y.*|
00000020 1c 8f dc 83 f2 01 41 fe 14 43 b3 8f 67 19 85 63 |......A..C..g..c|
00000030 89 2c 41 54 51 6d c8 10 0f 62 4e 46 77 4a 04 47 |.,ATQm...bNFwJ.G|
00000040 fc 52 62 8c 11 c5 0f ec ed 8f 8f 1c ef d8 e0 47 |.Rb............G|
00000050 10 30 9b b3 63 8c 56 a4 24 1b 0f 55 5d ab a2 f4 |.0..c.V.$..U]...|
00000060 fb ec e5 7e 69 d3 42 cc 5b 2f a3 28 5d 7b 8e 5e |...~i.B.[/.(]{.^|
00000070 b0 34 93 de 1e d4 eb 12 96 7d b8 2f 2e 0a 35 89 |.4.......}./..5.|
00000080 eb f5 cc 96 02 69 86 ac 4f b9 79 4b 5e 75 3c 97 |.....i..O.yK^u<.|
00000090 72 07 f8 d4 47 20 30 6b 6c 71 fb f7 df b2 04 e4 |r...G 0klq......|
000000a0 6e c3 54 29 22 41 02 df ec f1 92 88 03 1e f4 3e |n.T)"A.........>|
000000b0 cd 6e d0 c4 fb 9f 75 54 b7 a4 3f 41 b7 8c 42 85 |.n....uT..?A..B.|
000000c0 21 9b 03 08 bf 0b c5 02 04 b2 1d 54 e1 72 45 66 |!..........T.rEf|
000000d0 ad 37 92 79 42 c4 ee 85 b7 e0 67 8d 48 57 13 ec |.7.yB.....g.HW..|
000000e0 20 58 8a 3c 0e 1c 64 aa 01 51 0d ec 8c 5e dc ea | X.<..d..Q...^..|
000000f0 2c bc 0b e7 ae 90 dc f1 55 84 78 1f a5 79 22 31 |,.......U.x..y"1|
00000100 e9 e9 e2 75 25 0f 9f a6 da 67 08 fa 61 74 cc a3 |...u%....g..at..|
00000110 1b 8d f0 fd 80 79 8c 40 35 73 56 62 be 86 22 fb |.....y.@5sVb..".|
00000120 bb a3 71 b0 a4 d0 f9 20 eb 20 32 92 39 d5 1a 18 |..q.... . 2.9...|
00000130 f8 99 3d 03 77 9a 0f d9 cb 85 10 34 4a 3f 18 7e |..=.w......4J?.~|
00000140 82 47 fd 9b 67 20 51 da a2 5e f6 c0 b1 8c 5f cf |.G..g Q..^...._.|
00000150 c1 e0 3d 0c 48 1a 07 c1 c5 b5 ba 73 6a 08 77 f2 |..=.H......sj.w.|
00000160 78 05 ee a0 8d e1 a1 ab 67 2a 6e d5 32 b4 c4 04 |x.......g*n.2...|
00000170 d9 9c d3 20 eb 8b 79 c9 49 46 87 21 c0 a4 2f ca |... ..y.IF.!../.|
00000180 eb 85 28 99 7b 54 ef 8c 83 eb 62 15 b9 f5 a1 07 |..(.{T....b.....|
00000190 7f c0 23 ab c1 d3 73 ca 81 4a 80 cb 46 04 2a 52 |..#...s..J..F.*R|
000001a0 1b eb 68 bf 62 fa 7a 7e a1 ff eb 0b cd 5e 21 0b |..h.b.z~.....^!.|
000001b0 b5 ce d0 79 14 ea 04 66 5b 62 fe 96 77 1c 2d 5e |...y...f[b..w.-^|
000001c0 53 90 aa 07 69 53 6a 7a e0 69 69 36 f1 11 39 d5 |S...iSjz.ii6..9.|
000001d0 db fa 70 de 49 75 2d b9 b6 c6 e5 db f9 9a a0 f4 |..p.Iu-.........|
000001e0 c6 60 ce 04 03 b0 f2 fe 72 08 c1 67 85 ad d9 4d |.`......r..g...M|
000001f0 fd 07 75 7d 8d 79 30 23 ac f0 b3 5a 10 9b b3 b1 |..u}.y0#...Z....|
00000200

Unknown BootLoader on sdb1

00000000 f9 ad 18 a1 0f 77 6b b4 2d 17 56 22 15 64 2e 8e |.....wk.-.V".d..|
00000010 3c c3 35 3e 6f 41 14 01 5f 06 17 6a d4 d4 ac 29 |<.5>oA.._..j...)|
00000020 03 36 0e 30 1c c3 a5 89 e4 33 43 66 bd c6 94 d0 |.6.0.....3Cf....|
00000030 d7 7b e7 b4 ed 94 20 ba 02 2d 72 2c d6 4e 89 e7 |.{.... ..-r,.N..|
00000040 d3 51 2d 17 8d f5 3d 4b ba 77 b4 87 df 45 fc 9f |.Q-...=K.w...E..|
00000050 94 6d be de 8c bf 3e b3 e4 3a 79 51 a6 bb 01 6d |.m....>..:yQ...m|
00000060 7b 45 eb c2 a4 4b 7a 01 91 73 82 b0 bc 6a 95 34 |{E...Kz..s...j.4|
00000070 44 7b 20 e1 dc 37 39 a9 4b 3b 75 f9 07 a4 40 3c |D{ ..79.K;u...@<|
00000080 d9 cc 08 29 ab bb 2f 86 10 a1 c8 6e ce d8 42 64 |...)../....n..Bd|
00000090 0e b8 32 44 62 eb 68 30 0e 7e 2d d6 b7 e9 84 c3 |..2Db.h0.~-.....|
000000a0 26 79 e7 31 c1 c9 57 f5 3f 56 88 a6 3a 74 fc 80 |&y.1..W.?V..:t..|
000000b0 dd b7 9c 82 02 ba 7f 48 59 51 81 96 02 c7 33 11 |.......HYQ....3.|
000000c0 79 5b 92 f3 dd 09 52 3a 92 2f 6a 5f 7c 10 71 69 |y[....R:./j_|.qi|
000000d0 7f c3 f6 16 a6 4f b8 93 c8 b2 18 30 37 de 51 bd |.....O.....07.Q.|
000000e0 e8 81 ab 95 47 9e b0 3a 2d 4c 80 e7 a9 14 ca b6 |....G..:-L......|
000000f0 ad 6d 53 6a 58 0e 1b 5e 15 c6 c8 64 70 9c ae ef |.mSjX..^...dp...|
00000100 53 7c 43 82 51 3b fc 41 d8 1d 1e 2a 73 f9 48 43 |S|C.Q;.A...*s.HC|
00000110 e8 2c 4d d8 de 6c b1 31 2e 2d b7 93 fe a8 16 99 |.,M..l.1.-......|
00000120 8a d2 ea ce be ba b2 fd 93 86 cd fa cd 8b fb c3 |................|
00000130 88 c9 77 1b 94 36 5b 23 a8 2d 74 62 f5 a8 1a 73 |..w..6[#.-tb...s|
00000140 98 a3 95 0c 31 e2 5c 58 0e 6d fa 8d c4 14 9b a4 |....1.\X.m......|
00000150 f5 8d 95 9a 2f 7e 0f 91 f4 38 74 23 9d 19 f2 c6 |..../~...8t#....|
00000160 07 6d fe 6d 79 8c 20 0c 62 8c 33 4f d6 ae f9 fd |.m.my. .b.3O....|
00000170 4a 2a f8 3c d6 85 76 10 04 e5 ce 39 39 af 55 41 |J*.<..v....99.UA|
00000180 8f c2 6a ed 29 53 25 03 a7 34 45 a4 8e 46 88 1a |..j.)S%..4E..F..|
00000190 9e dd b6 a3 a5 0d 88 ab 4c ca 6a 3f 6b 3f c1 ce |........L.j?k?..|
000001a0 46 5b f0 11 5d 32 ad 2c 24 ba a8 32 a3 ee dd 8b |F[..]2.,$..2....|
000001b0 6b 80 d8 95 af e8 1b e2 fa 48 4e a5 bf 01 8f 4a |k........HN....J|
000001c0 cc 9d fd 94 87 74 0d ce 50 ca 95 5d 24 11 c3 24 |.....t..P..]$..$|
000001d0 8c 2a 20 c8 5a b1 d0 69 75 dd 5d c0 0a ef 8e e7 |.* .Z..iu.].....|
000001e0 af c8 df b2 8f 04 29 02 d7 18 bb 4b 2b 69 48 76 |......)....K+iHv|
000001f0 14 8b a1 75 ef 65 6a d4 b2 b0 dc 88 54 2e 5c fc |...u.ej.....T.\.|
00000200

Unknown BootLoader on sdb3

00000000 3a 6a 38 cc cd 8d 9a a3 63 72 2c 47 a0 93 d4 b1 |:j8.....cr,G....|
00000010 d0 7f fe 8f fe 5c 76 c4 93 83 8b aa 45 e8 bc 47 |.....\v.....E..G|
00000020 ed 73 23 74 99 57 56 38 37 65 81 4e ae 79 a9 61 |.s#t.WV87e.N.y.a|
00000030 c4 8d b8 cd c8 f4 da 1c 5c 2c 4b c4 06 12 ec 7e |........\,K....~|
00000040 e8 cc 4b 9a 0e 29 83 ac 81 50 75 ae 74 e5 0e a3 |..K..)...Pu.t...|
00000050 c7 da 5c aa 45 0d 35 1e 4a ec 0e 8f a5 09 be ff |..\.E.5.J.......|
00000060 ff ff ff dd 27 be 7d fb 1b 2f a3 34 1d 39 9d fd |....'.}../.4.9..|
00000070 ff ff ff 2d 56 54 1b 00 a3 0d 48 57 00 9e 24 cc |...-VT....HW..$.|
00000080 38 bc f1 1b 32 8d d4 a6 c6 fd db 19 ac c4 cd 68 |8...2..........h|
00000090 be cb 35 1e e4 91 20 1b 84 11 86 ff fb 92 00 e9 |..5... .........|
000000a0 00 f3 14 41 56 05 61 a0 00 5d c6 ca b0 63 0b 5c |...AV.a..]...c.\|
000000b0 11 a9 2d 50 19 99 00 01 81 a0 2a 41 97 ad 71 12 |..-P......*A..q.|
000000c0 f2 69 f4 09 03 13 c5 c3 79 a3 17 4a 90 29 a2 fc |.i......y..J.)..|
000000d0 d5 34 92 5a 6c a4 8e 2d 04 53 5b b7 5f fb 39 d4 |.4.Zl..-.S[._.9.|
000000e0 3a 7a a8 1e 52 94 b7 d1 fe af e8 bd 54 8f ac 02 |:z..R.......T...|
000000f0 4c 20 89 a4 ad 13 21 f9 61 c0 d1 e0 7c 21 8a b4 |L ....!.a...|!..|
00000100 8f a6 9d ad 92 3e 60 c3 cd 77 bf af 32 1e dc a4 |.....>`..w..2...|
00000110 18 8d 67 31 6f 52 bb d2 b1 b5 d3 03 be 24 20 d4 |..g1oR.......$ .|
00000120 50 40 3c d2 eb 89 23 77 3a 7b 21 c2 61 d3 14 9a |P@<...#w:{!.a...|
00000130 db ff db 33 9f a4 c2 c8 88 56 55 39 6e 55 e7 81 |...3.....VU9nU..|
00000140 a1 e0 02 60 f5 20 9c 50 00 84 c3 91 a2 00 65 2d |...`. .P......e-|
00000150 9a c6 97 2e 39 9d 5b 8a b5 46 f8 bd 5a a3 fe a0 |....9.[..F..Z...|
00000160 66 6d 07 14 18 90 50 6f 79 72 64 6d 82 c0 f8 60 |fm....Poyrdm...`|
00000170 0e 62 8b ba 0d 34 87 77 67 28 ab 5c 50 c8 ed 36 |.b...4.wg(.\P..6|
00000180 a9 fe 46 47 ea 6b 10 aa 2f 20 98 bc a1 f3 a1 09 |..FG.k../ ......|
00000190 ff a0 8b 8d 0e 09 0b 84 67 22 00 f1 17 5d 1b 0c |........g"...]..|
000001a0 81 81 21 a1 c3 5f 87 6b 63 4b 97 1c c6 56 e2 ad |..!.._.kcK...V..|
000001b0 53 fc 5e ad 51 ff 50 33 41 0f a9 69 54 bb dc 9d |S.^.Q.P3A..iT...|
000001c0 4f 20 c1 60 7c 30 4c c5 17 74 1a 69 0e ee ce c2 |O .`|0L..t.i....|
000001d0 ad 71 41 22 0b 0e 43 67 27 f9 1a fd 53 21 54 5e |.qA"..Cg'...S!T^|
000001e0 82 63 f3 9d 10 9f fa 0d 71 a0 82 43 c6 ae cc 12 |.c......q..C....|
000001f0 2e 34 36 cd 9d 35 82 22 6d a4 3e fb 58 90 5d 69 |.46..5."m.>.X.]i|
00000200

Unknown BootLoader on sdc1

00000000 f9 ad 18 a1 0f 77 6b b4 2d 17 56 22 15 64 2e 8e |.....wk.-.V".d..|
00000010 3c c3 35 3e 6f 41 14 01 5f 06 17 6a d4 d4 ac 29 |<.5>oA.._..j...)|
00000020 03 36 0e 30 1c c3 a5 89 e4 33 43 66 bd c6 94 d0 |.6.0.....3Cf....|
00000030 d7 7b e7 b4 ed 94 20 ba 02 2d 72 2c d6 4e 89 e7 |.{.... ..-r,.N..|
00000040 d3 51 2d 17 8d f5 3d 4b ba 77 b4 87 df 45 fc 9f |.Q-...=K.w...E..|
00000050 94 6d be de 8c bf 3e b3 e4 3a 79 51 a6 bb 01 6d |.m....>..:yQ...m|
00000060 7b 45 eb c2 a4 4b 7a 01 91 73 82 b0 bc 6a 95 34 |{E...Kz..s...j.4|
00000070 44 7b 20 e1 dc 37 39 a9 4b 3b 75 f9 07 a4 40 3c |D{ ..79.K;u...@<|
00000080 d9 cc 08 29 ab bb 2f 86 10 a1 c8 6e ce d8 42 64 |...)../....n..Bd|
00000090 0e b8 32 44 62 eb 68 30 0e 7e 2d d6 b7 e9 84 c3 |..2Db.h0.~-.....|
000000a0 26 79 e7 31 c1 c9 57 f5 3f 56 88 a6 3a 74 fc 80 |&y.1..W.?V..:t..|
000000b0 dd b7 9c 82 02 ba 7f 48 59 51 81 96 02 c7 33 11 |.......HYQ....3.|
000000c0 79 5b 92 f3 dd 09 52 3a 92 2f 6a 5f 7c 10 71 69 |y[....R:./j_|.qi|
000000d0 7f c3 f6 16 a6 4f b8 93 c8 b2 18 30 37 de 51 bd |.....O.....07.Q.|
000000e0 e8 81 ab 95 47 9e b0 3a 2d 4c 80 e7 a9 14 ca b6 |....G..:-L......|
000000f0 ad 6d 53 6a 58 0e 1b 5e 15 c6 c8 64 70 9c ae ef |.mSjX..^...dp...|
00000100 53 7c 43 82 51 3b fc 41 d8 1d 1e 2a 73 f9 48 43 |S|C.Q;.A...*s.HC|
00000110 e8 2c 4d d8 de 6c b1 31 2e 2d b7 93 fe a8 16 99 |.,M..l.1.-......|
00000120 8a d2 ea ce be ba b2 fd 93 86 cd fa cd 8b fb c3 |................|
00000130 88 c9 77 1b 94 36 5b 23 a8 2d 74 62 f5 a8 1a 73 |..w..6[#.-tb...s|
00000140 98 a3 95 0c 31 e2 5c 58 0e 6d fa 8d c4 14 9b a4 |....1.\X.m......|
00000150 f5 8d 95 9a 2f 7e 0f 91 f4 38 74 23 9d 19 f2 c6 |..../~...8t#....|
00000160 07 6d fe 6d 79 8c 20 0c 62 8c 33 4f d6 ae f9 fd |.m.my. .b.3O....|
00000170 4a 2a f8 3c d6 85 76 10 04 e5 ce 39 39 af 55 41 |J*.<..v....99.UA|
00000180 8f c2 6a ed 29 53 25 03 a7 34 45 a4 8e 46 88 1a |..j.)S%..4E..F..|
00000190 9e dd b6 a3 a5 0d 88 ab 4c ca 6a 3f 6b 3f c1 ce |........L.j?k?..|
000001a0 46 5b f0 11 5d 32 ad 2c 24 ba a8 32 a3 ee dd 8b |F[..]2.,$..2....|
000001b0 6b 80 d8 95 af e8 1b e2 fa 48 4e a5 bf 01 8f 4a |k........HN....J|
000001c0 cc 9d fd 94 87 74 0d ce 50 ca 95 5d 24 11 c3 24 |.....t..P..]$..$|
000001d0 8c 2a 20 c8 5a b1 d0 69 75 dd 5d c0 0a ef 8e e7 |.* .Z..iu.].....|
000001e0 af c8 df b2 8f 04 29 02 d7 18 bb 4b 2b 69 48 76 |......)....K+iHv|
000001f0 14 8b a1 75 ef 65 6a d4 b2 b0 dc 88 54 2e 5c fc |...u.ej.....T.\.|
00000200

Unknown BootLoader on sdc3

00000000 b5 f1 40 03 80 70 36 61 f2 11 bd 0b 67 0c 1b 81 |..@..p6a....g...|
00000010 45 a0 10 3b b4 b5 a9 9b ca f3 a4 82 80 91 4d 6d |E..;..........Mm|
00000020 f1 fc ff f7 6b 56 17 c6 23 26 32 c1 c9 60 2c 02 |....kV..#&2..`,.|
00000030 4d a1 f9 99 99 99 12 0c 53 4e 05 82 71 58 e8 39 |M.......SN..qX.9|
00000040 14 9e 29 16 1f ec 8c 40 6c df fa b2 9b 3d ee e4 |..)....@l....=..|
00000050 d7 ea c7 19 26 81 63 ba 6e f7 01 da f8 a2 1c 0b |....&.c.n.......|
00000060 04 13 1a a3 4e 6d 3f 37 40 00 00 1c 40 42 13 a3 |....Nm?7@...@B..|
00000070 4f cb 6c f3 48 80 f0 12 35 70 f0 78 2e 94 11 45 |O.l.H...5p.x...E|
00000080 d3 49 3d 8d 30 e4 52 0a 89 44 a2 52 f2 b1 f1 ff |.I=.0.R..D.R....|
00000090 cc cc cd ca a3 b1 10 70 e8 60 7d 08 24 20 04 0d |.......p.`}.$ ..|
000000a0 6e 30 40 68 74 44 63 7f ec ac 54 42 b3 7d ff 62 |n0@htDc...TB.}.b|
000000b0 dc c7 fd 94 e2 06 75 55 36 04 15 00 20 21 33 97 |......uU6... !3.|
000000c0 d3 f2 f7 01 bc 18 00 c1 7d 11 0a 1e 71 5b e7 9a |........}...q[..|
000000d0 78 03 00 23 2e 60 60 a8 b3 b3 3c 3a 17 ac 2a 38 |x..#.``...<:..*8|
000000e0 1a 22 22 22 5c 88 d3 7b ff fe e5 51 d8 d1 70 e8 |."""\..{...Q..p.|
000000f0 60 9c 82 43 03 83 fd 08 34 44 a9 ff d9 58 a8 85 |`..C....4D...X..|
00000100 66 4f 7f d8 b7 31 ff 65 17 10 b7 55 53 6a 10 07 |fO...1.e...USj..|
00000110 03 00 97 cc ef 2b 37 92 84 c6 85 61 00 a2 02 2f |.....+7....a.../|
00000120 eb e3 4d 62 4f 59 da 57 d1 5b 13 50 58 06 0e 82 |..MbOY.W.[.PX...|
00000130 23 66 e6 30 e8 3e cd 11 43 d3 45 0d 24 6a ff ff |#f.0.>..C.E.$j..|
00000140 23 a7 ff fb 92 00 cd 8a a2 da 35 51 13 8c 3a e2 |#.........5Q..:.|
00000150 5b 26 aa 22 71 87 5c 4b 70 f3 42 ce 30 ab 89 52 |[&."q.\Kp.B.0..R|
00000160 1e 68 e9 b4 95 71 f1 c4 1e 58 0a b8 b0 74 3c 64 |.h...q...X...t<d|
00000170 d7 fe 58 9a e6 bf fe be 2e 6e 2c 7d 90 6c c2 fc |..X......n,}.l..|
00000180 42 7b 6e de 91 3f ff 26 ac cb fa a9 18 06 00 0e |B{n..?.&........|
00000190 80 60 a8 26 cf da 78 4e e6 68 80 3a 51 59 31 5e |.`.&..xN.h.:QY1^|
000001a0 9a 6a 49 1e a1 a5 fd 15 c2 b4 7c 17 0b 08 c3 a6 |.jI.......|.....|
000001b0 e6 32 8e d4 45 15 54 55 1a 6d 57 ff 23 a7 f1 c3 |.2..E.TU.mW.#...|
000001c0 1c b0 6b 67 15 63 26 bf f7 1d 73 5f ff ff f7 17 |..kg.c&...s_....|
000001d0 76 8b 31 fc 42 7b 6e de 91 3f ff 26 aa bb f4 aa |v.1.B{n..?.&....|
000001e0 44 03 3d 99 13 2f 08 f3 03 a8 43 24 43 03 15 5f |D.=../....C$C.._|
000001f0 d3 33 43 b0 10 4c b2 01 c1 54 8d a1 48 0b ee d8 |.3C..L...T..H...|
00000200


=============================== StdErr Messages: ===============================

To be able to see for which directory Grub2 (v1.99) looks for, install "unlzma".
To be able to see for which directory Grub2 (v1.99) looks for, install "unlzma".
To be able to see for which directory Grub2 (v1.99) looks for, install "unlzma".



Update: apt-get install doesn`t find "unlzma" :-?

MAFoElffen
August 6th, 2011, 11:17 PM
Did you use similar steps to this in your install?
http://ubuntuforums.org/showpost.php?p=11115299&postcount=34

Notice that those instructions work from the Server Edition Install disk also, partionoing and installing LVM.

What concerns me in your script output was that grub seemsed to installed "all over the place"... then there was the output saying there were unknown boot loaders installed in 6-7 places(?)

Maybe a uninstall --purge Grub, then install again. Cleaner might be a complete new/fresh install before you get too much lint built up that gets misplaced and lingers in the corners.

dharma_initiative
August 7th, 2011, 10:20 AM
Hi,

first i have to say: I`m not using LVM.
I`ve looked at the thread you`ve posted and did it the same way.
I wiped the discs completely and started the installation again.
Wiping the discs was done by doing the following:





boot Ubuntu 11.04 Desktop
delete all partitions with fdisk
Run disk utility and write new partition table (MBR)
terminal -> dd if=/dev/zero of=/dev/sdX [a/b/c] bs=512 count=1

Then I reinstalled Ubuntu 11.04 Server to the complete empty discs.

Partitioning:




Create a 10GB and a 3GB Partition with Type Linux Raid on each disc
Manage Software Raid
Create
3 Discs
0 Spare
sda1/sdb1/sdc1 -> Raid1
sda2/sdb2/sdc2 -> Raid1
2 New RAID-1 Devices
Use First Ext4 /
Use second SWAP

Then the Installation goes on and at the end it asks me to install grub to the mbr.
When i say yes, the ubuntu installer says it`s installing grub to all three hard discs.
I`m not ask where grub shall be installed

I`ve attached photos so you can see what i mean.

Here`s the RESULT.txt. This time i made it after the installation without changing or grub-installing anything manually


Boot Info Script 0.60 from 17 May 2011


============================= Boot Info Summary: ===============================

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for ?? on this drive.
=> Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for ?? on this drive.
=> Grub2 (v1.99) is installed in the MBR of /dev/sdc and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for ?? on this drive.
=> No boot loader is installed in the MBR of /dev/sdd.

sda1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sda2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdb1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdb2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdc1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdc2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdd1: __________________________________________________ ________________________

File system: vfat
Boot sector type: FAT32
Boot sector info: According to the info in the boot sector, sdd1 starts
at sector 0. But according to the info from fdisk,
sdd1 starts at sector 62.
Operating System:
Boot files:

md/0: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Mounting failed: mount: /dev/md0 ist bereits eingehängt oder MDRaid/md/0 wird gerade benutzt
mount: Laut mtab ist /dev/md0 auf / eingehängt

md/1: __________________________________________________ ________________________

File system: swap
Boot sector type: -
Boot sector info:

============================ Drive/Partition Info: =============================

Drive: sda __________________________________________________ ___________________

Platte /dev/sda: 2000.4 GByte, 2000398934016 Byte
255 Köpfe, 63 Sektoren/Spur, 243201 Zylinder, zusammen 3907029168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 2,048 19,531,775 19,529,728 fd Linux raid autodetect
/dev/sda2 19,531,776 25,391,103 5,859,328 fd Linux raid autodetect


Drive: sdb __________________________________________________ ___________________

Platte /dev/sdb: 2000.4 GByte, 2000398934016 Byte
255 Köpfe, 63 Sektoren/Spur, 243201 Zylinder, zusammen 3907029168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 2,048 19,531,775 19,529,728 fd Linux raid autodetect
/dev/sdb2 19,531,776 25,391,103 5,859,328 fd Linux raid autodetect


Drive: sdc __________________________________________________ ___________________

Platte /dev/sdc: 2000.4 GByte, 2000398934016 Byte
255 Köpfe, 63 Sektoren/Spur, 243201 Zylinder, zusammen 3907029168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdc1 * 2,048 19,531,775 19,529,728 fd Linux raid autodetect
/dev/sdc2 19,531,776 25,391,103 5,859,328 fd Linux raid autodetect


Drive: sdd __________________________________________________ ___________________

Platte /dev/sdd: 4011 MByte, 4011851776 Byte
124 Köpfe, 62 Sektoren/Spur, 1019 Zylinder, zusammen 7835648 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdd1 62 7,834,071 7,834,010 83 Linux


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/md0 b1d32465-c5bc-4eeb-998f-866ef79c6001 ext4
/dev/md1 2bba6cc8-a880-4a6f-85f7-422d11bcada7 swap
/dev/sda1 73c89d59-6946-5f2a-4d89-77ace5ef9321 linux_raid_member schwan:0
/dev/sda2 9080e6ef-9dbf-798c-02f9-e78f6e99af50 linux_raid_member schwan:1
/dev/sdb1 73c89d59-6946-5f2a-4d89-77ace5ef9321 linux_raid_member schwan:0
/dev/sdb2 9080e6ef-9dbf-798c-02f9-e78f6e99af50 linux_raid_member schwan:1
/dev/sdc1 73c89d59-6946-5f2a-4d89-77ace5ef9321 linux_raid_member schwan:0
/dev/sdc2 9080e6ef-9dbf-798c-02f9-e78f6e99af50 linux_raid_member schwan:1
/dev/sdd1 391A-293F vfat

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/md0 / ext4 (rw,errors=remount-ro)
/dev/sdd1 /mnt/usb vfat (rw)


=============================== StdErr Messages: ===============================

To be able to see for which directory Grub2 (v1.99) looks for, install "unlzma".
To be able to see for which directory Grub2 (v1.99) looks for, install "unlzma".
To be able to see for which directory Grub2 (v1.99) looks for, install "unlzma".

Thanks


http://www.abload.de/thumb/img_11889umz.jpg (http://www.abload.de/image.php?img=img_11889umz.jpg)
http://www.abload.de/thumb/img_1189ouv2.jpg (http://www.abload.de/image.php?img=img_1189ouv2.jpg)
http://www.abload.de/thumb/img_1190nu7l.jpg (http://www.abload.de/image.php?img=img_1190nu7l.jpg)
http://www.abload.de/thumb/img_11917uo1.jpg (http://www.abload.de/image.php?img=img_11917uo1.jpg)

http://www.abload.de/thumb/img_1193ju5i.jpg (http://www.abload.de/image.php?img=img_1193ju5i.jpg)
http://www.abload.de/thumb/img_1194rui4.jpg (http://www.abload.de/image.php?img=img_1194rui4.jpg)
http://www.abload.de/thumb/img_1195pu3t.jpg (http://www.abload.de/image.php?img=img_1195pu3t.jpg)
http://www.abload.de/thumb/img_1196auvl.jpg (http://www.abload.de/image.php?img=img_1196auvl.jpg)

EDIT: It works with 10.10 but when i do a dist-upgrade it`s the same as before

MAFoElffen
August 8th, 2011, 02:24 AM
Hi,

first i have to say: I`m not using LVM.
I`ve looked at the thread you`ve posted and did it the same way.
I wiped the discs completely and started the installation again.
Wiping the discs was done by doing the following:





boot Ubuntu 11.04 Desktop
delete all partitions with fdisk
Run disk utility and write new partition table (MBR)
terminal -> dd if=/dev/zero of=/dev/sdX [a/b/c] bs=512 count=1

Then I reinstalled Ubuntu 11.04 Server to the complete empty discs.

Partitioning:




Create a 10GB and a 3GB Partition with Type Linux Raid on each disc
Manage Software Raid
Create
3 Discs
0 Spare
sda1/sdb1/sdc1 -> Raid1
sda2/sdb2/sdc2 -> Raid1
2 New RAID-1 Devices
Use First Ext4 /
Use second SWAP

Then the Installation goes on and at the end it asks me to install grub to the mbr.
When i say yes, the ubuntu installer says it`s installing grub to all three hard discs.
I`m not ask where grub shall be installed

I`ve attached photos so you can see what i mean.

Here`s the RESULT.txt. This time i made it after the installation without changing or grub-installing anything manually


Boot Info Script 0.60 from 17 May 2011


============================= Boot Info Summary: ===============================

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for ?? on this drive.
=> Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for ?? on this drive.
=> Grub2 (v1.99) is installed in the MBR of /dev/sdc and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for ?? on this drive.
=> No boot loader is installed in the MBR of /dev/sdd.

=============================== StdErr Messages: ===============================

To be able to see for which directory Grub2 (v1.99) looks for, install "unlzma".
To be able to see for which directory Grub2 (v1.99) looks for, install "unlzma".
To be able to see for which directory Grub2 (v1.99) looks for, install "unlzma".

Thanks
EDIT: It works with 10.10 but when i do a dist-upgrade it`s the same as before
You said you couldn't install "unlzma". thats because it is a tool within "lzma"
[quote]
lzma (4.43-14ubuntu2) lucid; urgency=low
[/qoute]
Works on 10.10 but not 11.04? Hmm, thinking on that one.

YesWeCan
August 8th, 2011, 10:16 AM
Something is broken in the 11.04 installation process. :(
Would you post the output of
sudo sfdisk -luS

MAFoElffen
August 8th, 2011, 05:33 PM
Something is broken in the 11.04 installation process. :(
Would you post the output of
sudo sfdisk -luS
@YesWeCan:

Thanks for stepping in with this....

I also started noticing this on this "latest" 11.04 Server ISO Image... And a glich with the install script/image name with the current 10.04 Server ISO image--

The older images do okay. Current Images? I installed 4 servers on Saturday night - Sunday. (32bit PAE OS, mutiiple-processor server mobo's) If I was running hardware RAID, The install disks did fine, even with Grub booting off RAID 5.. If I did fakeRAID, especially with RAID0 or RAID1, it was a real challenge. I think there's a consistent work-around here somewhere... or a launchpad kind of report to get things fixed.

What I see with this user initially (and I might be out there on this) is that the MBR's of the individual physical disks have the first part of grub i MBR, seemingly loaded correctly, but "on" all 3 disks:

=> Grub2 (v1.99) is installed in the MBR of /dev/sdx and looks at sector 1 of the same hard drive for core.img. core.img is at this location and looks for ?? on this drive.
So it's hard to verify if Grub is loaded correctly. Then this message:

========================== StdErr Messages: ==========================
To be able to see for which directory Grub2 (v1.99) looks for, install "unlzma".
Which may explain why the boot loaders are showing up as unknown bootloader(?)... "unlzma" is a compression tool inside the package "lzma", which is a base installed package of Ubuntu and should be on the install disk, as it is one of the compression types used on the LiveCD and Install Disk Images...

I know I'm probably over-thinking their problem... But somethings going on there.

psusi
August 8th, 2011, 07:10 PM
Everything looks good there except for the part about needing unlzma. Get that package installed to get the missing output and make sure it is correct, but everything else looks good.

When you say it doesn't boot, what DOES it do?

You might try reinstalling grub by running sudo dpkg-reconfigure grub-pc. Make sure to check all 3 disks in the menu.

By the way, why a 3 disk raid-1? If you have 3 disks you can get more usable space and faster performance using raid-5 or raid-10.

dharma_initiative
August 8th, 2011, 07:48 PM
Hi :D



apt-get install lzma
./boot...sh

Boot Info Script 0.60 from 17 May 2011


============================= Boot Info Summary: ===============================

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (md/0)/boot/grub on this drive.
=> Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (md/0)/boot/grub on this drive.
=> Grub2 (v1.99) is installed in the MBR of /dev/sdc and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (md/0)/boot/grub on this drive.
=> No boot loader is installed in the MBR of /dev/sdd.

sda1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sda2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdb1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdb2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdc1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdc2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdd1: __________________________________________________ ________________________

File system: vfat
Boot sector type: FAT32
Boot sector info: According to the info in the boot sector, sdd1 starts
at sector 0. But according to the info from fdisk,
sdd1 starts at sector 62.
Operating System:
Boot files:

md/0: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Mounting failed: mount: /dev/md0 ist bereits eingehängt oder MDRaid/md/0 wird gerade benutzt
mount: Laut mtab ist /dev/md0 auf / eingehängt

md/1: __________________________________________________ ________________________

File system: swap
Boot sector type: -
Boot sector info:

============================ Drive/Partition Info: =============================

Drive: sda __________________________________________________ ___________________

Platte /dev/sda: 2000.4 GByte, 2000398934016 Byte
255 Köpfe, 63 Sektoren/Spur, 243201 Zylinder, zusammen 3907029168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 2,048 20,973,567 20,971,520 fd Linux raid autodetect
/dev/sda2 20,973,568 27,265,023 6,291,456 fd Linux raid autodetect


Drive: sdb __________________________________________________ ___________________

Platte /dev/sdb: 2000.4 GByte, 2000398934016 Byte
255 Köpfe, 63 Sektoren/Spur, 243201 Zylinder, zusammen 3907029168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 2,048 20,973,567 20,971,520 fd Linux raid autodetect
/dev/sdb2 20,973,568 27,265,023 6,291,456 fd Linux raid autodetect


Drive: sdc __________________________________________________ ___________________

Platte /dev/sdc: 2000.4 GByte, 2000398934016 Byte
255 Köpfe, 63 Sektoren/Spur, 243201 Zylinder, zusammen 3907029168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdc1 * 2,048 20,973,567 20,971,520 fd Linux raid autodetect
/dev/sdc2 20,973,568 27,265,023 6,291,456 fd Linux raid autodetect


Drive: sdd __________________________________________________ ___________________

Platte /dev/sdd: 4011 MByte, 4011851776 Byte
124 Köpfe, 62 Sektoren/Spur, 1019 Zylinder, zusammen 7835648 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdd1 62 7,834,071 7,834,010 83 Linux


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/md0 004d9b8a-be28-4aa3-b562-0cbf4951df01 ext4
/dev/md1 a5e89514-a88a-4f0e-90d4-ac9807b27165 swap
/dev/sda1 7bcf9f1a-002d-3035-c304-589601e82120 linux_raid_member schwan:0
/dev/sda2 fc1a8a81-84b8-07a1-5462-f0e0ffff10dc linux_raid_member schwan:1
/dev/sdb1 7bcf9f1a-002d-3035-c304-589601e82120 linux_raid_member schwan:0
/dev/sdb2 fc1a8a81-84b8-07a1-5462-f0e0ffff10dc linux_raid_member schwan:1
/dev/sdc1 7bcf9f1a-002d-3035-c304-589601e82120 linux_raid_member schwan:0
/dev/sdc2 fc1a8a81-84b8-07a1-5462-f0e0ffff10dc linux_raid_member schwan:1
/dev/sdd1 391A-293F vfat

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/md0 / ext4 (rw,errors=remount-ro)
/dev/sdd1 /mnt/usb vfat (rw)


=============================== StdErr Messages: ===============================

unlzma: Decoder error
unlzma: Decoder error
unlzma: Decoder error



sfdisk -luS


Festplatte /dev/sda: 243201 Zylinder, 255 Köpfe, 63 Sektoren/Spur
Einheit = Sektoren von 512 Bytes, Zählung beginnt bei 0

Gerät boot. Anfang Ende #Sektoren Id System
/dev/sda1 2048 20973567 20971520 fd Linux raid autodetect
/dev/sda2 20973568 27265023 6291456 fd Linux raid autodetect
/dev/sda3 0 - 0 0 Leer
/dev/sda4 0 - 0 0 Leer

Festplatte /dev/sdc: 243201 Zylinder, 255 Köpfe, 63 Sektoren/Spur
Einheit = Sektoren von 512 Bytes, Zählung beginnt bei 0

Gerät boot. Anfang Ende #Sektoren Id System
/dev/sdc1 * 2048 20973567 20971520 fd Linux raid autodetect
/dev/sdc2 20973568 27265023 6291456 fd Linux raid autodetect
/dev/sdc3 0 - 0 0 Leer
/dev/sdc4 0 - 0 0 Leer

Festplatte /dev/sdb: 243201 Zylinder, 255 Köpfe, 63 Sektoren/Spur
Einheit = Sektoren von 512 Bytes, Zählung beginnt bei 0

Gerät boot. Anfang Ende #Sektoren Id System
/dev/sdb1 2048 20973567 20971520 fd Linux raid autodetect
/dev/sdb2 20973568 27265023 6291456 fd Linux raid autodetect
/dev/sdb3 0 - 0 0 Leer
/dev/sdb4 0 - 0 0 Leer

Festplatte /dev/md0: 2621166 Zylinder, 2 Köpfe, 4 Sektoren/Spur

Festplatte /dev/md1: 786173 Zylinder, 2 Köpfe, 4 Sektoren/Spur

Festplatte /dev/sdd: 1019 Zylinder, 124 Köpfe, 62 Sektoren/Spur
Einheit = Sektoren von 512 Bytes, Zählung beginnt bei 0

Gerät boot. Anfang Ende #Sektoren Id System
/dev/sdd1 62 7834071 7834010 83 Linux
/dev/sdd2 0 - 0 0 Leer
/dev/sdd3 0 - 0 0 Leer
/dev/sdd4 0 - 0 0 Leer
Thank you

MAFoElffen
August 8th, 2011, 08:16 PM
Boot Info Script 0.60 from 17 May 2011
=================== Boot Info Summary: =====================

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (md/0)/boot/grub on this drive.
=> Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (md/0)/boot/grub on this drive.
=> Grub2 (v1.99) is installed in the MBR of /dev/sdc and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (md/0)/boot/grub on this drive.
=> No boot loader is installed in the MBR of /dev/sdd.

This looks good now... But curious about this Entry:



md/0: __________________________________________________ _____________________
File system: ext4
Boot sector type: -
Boot sector info:
Mounting failed: mount: /dev/md0 ist bereits eingehängt oder MDRaid/md/0 wird gerade benutzt mount: Laut mtab ist /dev/md0 auf / eingehängt
Does that mean that the RAID1 array is not working -or- that the mount for it is not working?

Edit--

mount: /dev/md0 is hung up or MDRaid/md/0 straight used is already mount: Loud mtab /dev/md0 is on/hung up

psusi
August 8th, 2011, 09:18 PM
Everything looks good there, so the question is, what actually happens when you try to boot without the first drive?

YesWeCan
August 8th, 2011, 10:52 PM
Can you do sudo sfdisk --english -luS please?
:P just kidding.

I agree with psusi.
When you say it won't boot without the first disk (it just keeps rebooting before Grub appears) what exactly do you mean?
Do you mean without a disk in SATA slot 0?
Do you mean without the current sda disk installed in any slot, or will it work if the sda disk is in another slot?
What if the current sdb disk is connected to the slot that sda is in?

Have you made sure that your bios will boot off the second disk if the first is missing, and then the third if the second is missing?

dharma_initiative
August 9th, 2011, 11:35 AM
Sorry for ignoring the posts.



When you say it doesn't boot, what DOES it do?




Everything looks good there, so the question is, what actually happens when you try to boot without the first drive?
I see the BIOS messages as usually und then i see for 1-2 seconds a blinking cursor and then it does a reboot.

Over and over again :)



You might try reinstalling grub by running sudo dpkg-reconfigure grub-pc.
Will do this when i`m at home aftzer work.


By the way, why a 3 disk raid-1? If you have 3 disks you can get more usable space and faster performance using raid-5 or raid-10.
At the moment there are only 3 discs but when the machine works fine there will be 5 discs.

EDIT: The question wasn`t "why raid-1 with 3 discs". It was "why no raid-5 if i have at least 3 discs".
Should read more concentrated:D

Really good question.
I `wanted to keep it as simple as possible.

When a disc fails i`ve to do nothing more than:



Add new disc to array
grub-install /dev/sd[new]
dd if=/dev/sd[working] of =/dev/sd[new] bs=512 count=1
But now when i`m thinking about it it`s the same with a raid-5, isn`t it?


Do you mean without a disk in SATA slot 0?
Do you mean without the current sda disk installed in any slot, or will it work if the sda disk is in another slot?
What if the current sdb disk is connected to the slot that sda is in?
It`s rather the 6th Port. there is a SATA-COntroller in the PCIe-Slot but there are no discs on it beacuse it`s not possible to boot from this controller. On the first Port of the board is the DVD drive.



Current Situation:
Port 6: SATA 2TB
Port 7: SATA 2TB
Port 8: SATA 2TB

Everythings fine.

Shutdown

Port 6: unplugged
Port 7: SATA 2TB
Port 8: SATA 2TB

not booting(see above)




[QUOTE]
Have you made sure that your bios will boot off the second disk if the first is missing, and then the third if the second is missing?
[QUOTE]

I`ve tested it with Ubuntu 10.10 and it worked without changing any BIOS-settings. So i think the Board boots of the second if the first is missing, yes.

I`ll test more constellations after work.

Thank you.

psusi
August 9th, 2011, 02:47 PM
I see the BIOS messages as usually und then i see for 1-2 seconds a blinking cursor and then it does a reboot.

Over and over again :)


You actually disconnected the disk from the SATA cable right? As opposed to just disconnecting its power? This is very strange.



When a disc fails i`ve to do nothing more than:



Add new disc to array
grub-install /dev/sd[new]
dd if=/dev/sd[working] of =/dev/sd[new] bs=512 count=1
But now when i`m thinking about it it`s the same with a raid-5, isn`t it?


Absolutely not. Under no circumstances can you clone any raid disk like that. When a disk fails, you tell mdadm to add the new disk to the array and it takes care of everything automatically and in the background while you can continue to use the array.

A 3 disk raid-1 is kind of silly, but a 5 disk raid-1 is insane. At that point you absolutely want to be running raid 5,6 or 10. If you did a 5 disk raid-1 you would only have the space of a single disk, write throughput less than a single disk, and sequential read performance of a single disk. So why waste the money on 5 for what you can get with one or two?

dharma_initiative
August 9th, 2011, 04:22 PM
Absolutely not.I don`t have to grub-install to the new disk?



You actually disconnected the disk from the SATA cable right? As opposed to just disconnecting its power? This is very strange.I disconnect the SATA cable for testing purposes. Not the power.


A 3 disk raid-1 is kind of silly, but a 5 disk raid-1 is insane. At that point you absolutely want to be running raid 5,6 or 10. If you did a 5 disk raid-1 you would only have the space of a single disk, write throughput less than a single disk, and sequential read performance of a single disk. So why waste the money on 5 for what you can get with one or two?So two RAID-Partitions on each discs and as result 2 RAID-Devices (RAID-5)? One for system incl. data and one for swap?



I`ll test more constellations after work.I`ve done some more tests.
As said before disconnecting the first drive ends up in the described behaviour.
If i disconnect the DVD drive and connect drive 1 to the 5th port i`m seeing the bliniking cursor for 1-2 seconds and then the GRUB menu.

If i disconnect the third harddsic from port 8 and connect the first drive to that port the system shows me a blinking cursor and then the GRUB menu.

CONCLUSION:

As long as the first hard disc (the one which was the first at installation / sda) is connected to any port of the board the system will boot. (Doesn`t matter if other hard discs are connected to "lower" ports) Otherwise it will only show the blinking cursor and then do a reboot.

EDIT:
I tried dpkg-reconfigure grub-pc. I`ll try to translate
3 Screens appear

First screen


http://www.abload.de/thumb/img_1209epq4.jpg (http://www.abload.de/image.php?img=img_1209epq4.jpg)
The following Linux command line was extracted from the file menu.lst (/etc/default/grub) or the parameter "kopt".Please check if it`s correct or correct it if needed.

Second screen

No picture. I`m asked for the boot options. In the line "quiet" is written

Third Screen
http://www.abload.de/thumb/img_12103p6t.jpg (http://www.abload.de/image.php?img=img_12103p6t.jpg)
I think i don`t have to translate :-D


When i accept by pressing enter i get three times on the command line:

"No error reported"

But it`s still not working

psusi
August 9th, 2011, 06:44 PM
I don`t have to grub-install to the new disk?

Yes, you do to make it bootable.


So two RAID-Partitions on each discs and as result 2 RAID-Devices (RAID-5)? One for system incl. data and one for swap?

That's one way to do it. I prefer to use LVM to divide up a single big raid array though. Make one lv for root, one for swap, maybe one for /home, and leave a good chunk free for later allocations.


I`ve done some more tests.
As said before disconnecting the first drive ends up in the described behaviour.
If i disconnect the DVD drive and connect drive 1 to the 5th port i`m seeing the bliniking cursor for 1-2 seconds and then the GRUB menu.

If i disconnect the third harddsic from port 8 and connect the first drive to that port the system shows me a blinking cursor and then the GRUB menu.


What if you just connect drive 2 or 3 to port 1, and nothing else? No dvd or anything?

YesWeCan
August 9th, 2011, 07:05 PM
CONCLUSION:

As long as the first hard disc (the one which was the first at installation / sda) is connected to any port of the board the system will boot. (Doesn`t matter if other hard discs are connected to "lower" ports) Otherwise it will only show the blinking cursor and then do a reboot.

Just a thought. I notice from bootinfoscript that only one of your 3 disks has a boot flag set. Sometimes, some bioses refuse to try to boot a disk unless there is a boot flag set. It is hard to tell which disk is which in a RAID so I wonder if the disk you are calling sda is really sdc. I could be totally wrong about this.
To set a boot flag on a disk:
sudo sfdisk /dev/sdx -A1

FYI Grub ignores the boot flags so it doesn't matter which partition you set as bootable.

dharma_initiative
August 9th, 2011, 07:31 PM
What if you just connect drive 2 or 3 to port 1, and nothing else? No dvd or anything?

Same result, reboot after 1-2 seconds blinking cursor.



sudo sfdisk /dev/sdx -A1

I`ve done this with all three discs,checked it with "sudo fdisk -l" without any result.
All discs have the boot flag; system only booting if first disc is attached

Shall i give give the "2 x Raid-5 idea" a try?

I mean could this change anything?

After every installation i`ve done for test purposes before installing a new test environment i did this steps:



Boot Ubuntu Desktop

Run "sudo apt-get install mdadm"

Run "sudo mdadm --stop /dev/md0"
Run "sudo mdadm --stop /dev/md1"

Run "mdadm --zero-superblock /dev/sda[123]"
Run "mdadm --zero-superblock /dev/sdb[123]"
Run "mdadm --zero-superblock /dev/sdc[123]"

Create new Partition table with gparted on all discs.
And last to be sure :D

Run "dd if=/dev/zero of=/dev/sd[abc] bs=512 count=1"




Could there be something wrong with this?

psusi
August 9th, 2011, 08:42 PM
Ok, time for some really crazy desperation measures...

First, take out all disks except for the first one and second one, and make sure that you can still get the grub menu booting from the first drive.

Then, copy the working grub from the first disk to the second ( from the livecd ):

sudo dd if=/dev/sda of=/dev/sdb bs=512 count=64

Then shutdown and remove sda and see if you still get the same results trying to boot sdb. If that doesn't at least get you a grub rescue prompt, then there is something FUBAR with your machine.

dharma_initiative
August 9th, 2011, 09:13 PM
Same as before :(

That`s my Board, Asus E35M1-M
(http://www.asus.com/Motherboards/AMD_CPU_on_Board/E35M1M/#specifications)
Could there be a problem with the EFI?

psusi
August 10th, 2011, 02:58 AM
Last ditch effort: zero out every sector on the drives and start over:

sudo dd if=/dev/zero of=/dev/sda

Repeat for each drive.

There has to be something on the disks that your bios is flipping out over.

dharma_initiative
August 10th, 2011, 08:32 PM
I think i`m giving up.
Wiping the discs showed no result.

In the meantime i`ve installed debian with the same result.

anyone another idea?

psusi
August 10th, 2011, 09:36 PM
fdisk -l shows all 3 disks have the same partition layout right?

dharma_initiative
August 10th, 2011, 10:22 PM
Yes,

/dev/sda was done with fdisk and then cloned with dd.

Another time i did all with fdisk or all within the installer.
I even created the array within a live environment and not while installing from the server cd.

I`ve read some about the "superblock version 1.2". But if there was aproblem it wouldn`t boot from any of the discs right?

psusi
August 11th, 2011, 04:30 PM
What if you remove the first disk, zero out the other two with dd, then do a clean install just using the two disks instead of all three? Can you then boot from the third? And post the bootinfo script output at that point.

dharma_initiative
August 11th, 2011, 07:55 PM
A friend will borrow me 2 drives fresh out of the box.
I`ll try it with them tomorrow.

dharma_initiative
August 12th, 2011, 07:34 PM
Problem still exists even with two brand new hard discs.
Ubuntu Server 10.10 works out of the box and is booting even if the first drive is missing.

psusi
August 12th, 2011, 07:45 PM
Problem still exists even with two brand new hard discs.
Ubuntu Server 10.10 works out of the box and is booting even if the first drive is missing.

And what does the bootinfo script show for these drives when they don't boot, and are we still talking about the stuck blinking cursor with nothing else? No Grub menu or rescue prompt, even if you hold down shift?

dharma_initiative
August 12th, 2011, 09:38 PM
How shall i run the script if the machine isn`t booting up?

And no, there is no rescue shell or anything. the pc is rebooting when grub should appear

psusi
August 13th, 2011, 01:39 AM
How shall i run the script if the machine isn`t booting up?


The same way you did before: from the livecd.

dharma_initiative
August 13th, 2011, 05:07 PM
I never did it that way before. i always run it ion the machine with all discs attached.
Now i did it with a live cd with booth discs attached.


Boot Info Script 0.60 from 17 May 2011


============================= Boot Info Summary: ===============================

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (md0)/boot/grub on this drive.
=> Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (md0)/boot/grub on this drive.
=> No boot loader is installed in the MBR of /dev/sdc.

sda1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sda2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdb1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdb2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdc1: __________________________________________________ ________________________

File system: vfat
Boot sector type: FAT32
Boot sector info: According to the info in the boot sector, sdc1 starts
at sector 0. But according to the info from fdisk,
sdc1 starts at sector 62.
Operating System:
Boot files:

md0: __________________________________________________ _________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.04
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

============================ Drive/Partition Info: =============================

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 * 63 20,971,583 20,971,521 fd Linux raid autodetect
/dev/sda2 20,971,584 27,263,040 6,291,457 fd Linux raid autodetect


Drive: sdb __________________________________________________ ___________________

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 * 63 20,971,583 20,971,521 fd Linux raid autodetect
/dev/sdb2 20,971,584 27,263,040 6,291,457 fd Linux raid autodetect


Drive: sdc __________________________________________________ ___________________

Disk /dev/sdc: 4011 MB, 4011851776 bytes
124 heads, 62 sectors/track, 1019 cylinders, total 7835648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdc1 62 7,834,071 7,834,010 83 Linux


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 21e3dbe0-3924-f2f0-b64a-cd66a7075890 linux_raid_member
/dev/sda2 e064b00f-cb16-8fdb-0ff6-1f714cc3505e linux_raid_member
/dev/sdb1 21e3dbe0-3924-f2f0-b64a-cd66a7075890 linux_raid_member
/dev/sdb2 e064b00f-cb16-8fdb-0ff6-1f714cc3505e linux_raid_member
/dev/sdc1 391A-293F vfat

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sdc1 /mnt vfat (rw)
/dev/sr0 /cdrom iso9660 (ro,noatime)


=========================== md0/boot/grub/grub.cfg: ============================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
set locale_dir=($root)/boot/grub/locale
set lang=de_DE
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, mit Linux 2.6.38-8-server' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
linux /boot/vmlinuz-2.6.38-8-server root=UUID=b25c1587-4645-42b7-a1cc-e64949c264dd ro quiet
initrd /boot/initrd.img-2.6.38-8-server
}
menuentry 'Ubuntu, mit Linux 2.6.38-8-server (Wiederherstellungsmodus)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
echo 'Loading Linux 2.6.38-8-server ...'
linux /boot/vmlinuz-2.6.38-8-server root=UUID=b25c1587-4645-42b7-a1cc-e64949c264dd ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-8-server
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Ubuntu, with Linux 2.6.32-33-server (on /dev/sda1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 48a39682-5c6f-4d89-a8fc-310f2ce3fd3d
linux /boot/vmlinuz-2.6.32-33-server root=UUID=48a39682-5c6f-4d89-a8fc-310f2ce3fd3d ro quiet
initrd /boot/initrd.img-2.6.32-33-server
}
menuentry "Ubuntu, with Linux 2.6.32-33-server (recovery mode) (on /dev/sda1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 48a39682-5c6f-4d89-a8fc-310f2ce3fd3d
linux /boot/vmlinuz-2.6.32-33-server root=UUID=48a39682-5c6f-4d89-a8fc-310f2ce3fd3d ro single
initrd /boot/initrd.img-2.6.32-33-server
}
menuentry "Ubuntu 11.04 (11.04) (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos1)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
linux /vmlinuz root=/dev/sdb1
initrd /initrd.img
}
menuentry "Ubuntu 11.04 (11.04) (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos1)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
linux /vmlinuz root=/dev/sdb1
initrd /initrd.img
}
menuentry "Ubuntu 11.04 (11.04) (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos1)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
linux /boot/vmlinuz-2.6.38-8-server root=/dev/sdb1
initrd /boot/initrd.img-2.6.38-8-server
}
menuentry "Ubuntu 11.04 (11.04) (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos1)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
linux /vmlinuz root=/dev/sdb1
initrd /initrd.img
}
menuentry "Ubuntu 11.04 (11.04) (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos1)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
linux /vmlinuz root=/dev/sdb1
initrd /initrd.img
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

================================ md0/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/md0 during installation
UUID=b25c1587-4645-42b7-a1cc-e64949c264dd / ext4 errors=remount-ro 0 1
# swap was on /dev/md1 during installation
UUID=1b9e9adc-baf9-474b-94ba-d33c0f4c81b9 none swap sw 0 0
--------------------------------------------------------------------------------

==================== md0: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

8.201728821 = 8.806539264 boot/grub/core.img 1
6.157077789 = 6.611111936 boot/grub/grub.cfg 1
1.004653931 = 1.078738944 boot/initrd.img-2.6.38-8-server 2
0.359737396 = 0.386265088 boot/vmlinuz-2.6.38-8-server 1
1.004653931 = 1.078738944 initrd.img 2
0.359737396 = 0.386265088 vmlinuz 1

=============================== StdErr Messages: ===============================

unlzma: Decoder error
unlzma: Decoder error
mdadm: /dev/md0 has been started with 2 drives.
mdadm: stopped /dev/md0

MAFoElffen
August 13th, 2011, 05:39 PM
"What" is the brand and model of your primary disk sda? Are you using that as SDA through all of this? (You just said that your friend had loaned you 2 disks...)

This may sound silly- but I have problems sometimes with Seagate drives and some controllers when doing RAID. Drove me batty trying to figure out what was going on the first time it happened! Found it by switching the order of the drives until it popped up as isolating the problem with that particular drive. There was nothing "really" functionally wrong with that drive (tested out fine), it just didn't like doing RAID in that particular setup. That same drive works fine in another box.

I know it's a long shot- or so I thought it was at the time also.

dharma_initiative
August 14th, 2011, 10:12 AM
I have three hard discs 2x Seagate ST32000542AS and one Hitachi.
On this three discs on the same hardware, Ubuntu 10.10 Server is running without any problem.

For testing purposes it borrowed 2 x Hitachi HDS722020ALA330.
With that discs 10.10 is working fine too but 11.04 not.

If i remove one disc of the raid set the system will permanently reboot.

Here is the output of the Bootinfoscript when i run it via a live cd environment with the first HDD removed. The System is NOT booting up.


Boot Info Script 0.60 from 17 May 2011


============================= Boot Info Summary: ===============================

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (md0)/boot/grub on this drive.
=> No boot loader is installed in the MBR of /dev/sdb.

sda1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sda2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdb1: __________________________________________________ ________________________

File system: vfat
Boot sector type: FAT32
Boot sector info: According to the info in the boot sector, sdb1 starts
at sector 0. But according to the info from fdisk,
sdb1 starts at sector 62.
Operating System:
Boot files:

md/0_0: __________________________________________________ ______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.04
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

============================ Drive/Partition Info: =============================

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 * 63 20,971,583 20,971,521 fd Linux raid autodetect
/dev/sda2 20,971,584 27,263,040 6,291,457 fd Linux raid autodetect


Drive: sdb __________________________________________________ ___________________

Disk /dev/sdb: 4011 MB, 4011851776 bytes
124 heads, 62 sectors/track, 1019 cylinders, total 7835648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 62 7,834,071 7,834,010 83 Linux


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/md127 b25c1587-4645-42b7-a1cc-e64949c264dd ext4
/dev/sda1 21e3dbe0-3924-f2f0-b64a-cd66a7075890 linux_raid_member
/dev/sda2 e064b00f-cb16-8fdb-0ff6-1f714cc3505e linux_raid_member
/dev/sdb1 391A-293F vfat

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sdb1 /mnt vfat (rw)
/dev/sr0 /cdrom iso9660 (ro,noatime)


========================== md/0_0/boot/grub/grub.cfg: ==========================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
set locale_dir=($root)/boot/grub/locale
set lang=de_DE
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, mit Linux 2.6.38-8-server' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
linux /boot/vmlinuz-2.6.38-8-server root=UUID=b25c1587-4645-42b7-a1cc-e64949c264dd ro quiet
initrd /boot/initrd.img-2.6.38-8-server
}
menuentry 'Ubuntu, mit Linux 2.6.38-8-server (Wiederherstellungsmodus)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
echo 'Loading Linux 2.6.38-8-server ...'
linux /boot/vmlinuz-2.6.38-8-server root=UUID=b25c1587-4645-42b7-a1cc-e64949c264dd ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-8-server
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Ubuntu, with Linux 2.6.32-33-server (on /dev/sda1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 48a39682-5c6f-4d89-a8fc-310f2ce3fd3d
linux /boot/vmlinuz-2.6.32-33-server root=UUID=48a39682-5c6f-4d89-a8fc-310f2ce3fd3d ro quiet
initrd /boot/initrd.img-2.6.32-33-server
}
menuentry "Ubuntu, with Linux 2.6.32-33-server (recovery mode) (on /dev/sda1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 48a39682-5c6f-4d89-a8fc-310f2ce3fd3d
linux /boot/vmlinuz-2.6.32-33-server root=UUID=48a39682-5c6f-4d89-a8fc-310f2ce3fd3d ro single
initrd /boot/initrd.img-2.6.32-33-server
}
menuentry "Ubuntu 11.04 (11.04) (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos1)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
linux /vmlinuz root=/dev/sdb1
initrd /initrd.img
}
menuentry "Ubuntu 11.04 (11.04) (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos1)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
linux /vmlinuz root=/dev/sdb1
initrd /initrd.img
}
menuentry "Ubuntu 11.04 (11.04) (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos1)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
linux /boot/vmlinuz-2.6.38-8-server root=/dev/sdb1
initrd /boot/initrd.img-2.6.38-8-server
}
menuentry "Ubuntu 11.04 (11.04) (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos1)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
linux /vmlinuz root=/dev/sdb1
initrd /initrd.img
}
menuentry "Ubuntu 11.04 (11.04) (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos1)'
search --no-floppy --fs-uuid --set=root b25c1587-4645-42b7-a1cc-e64949c264dd
linux /vmlinuz root=/dev/sdb1
initrd /initrd.img
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

============================== md/0_0/etc/fstab: ===============================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/md0 during installation
UUID=b25c1587-4645-42b7-a1cc-e64949c264dd / ext4 errors=remount-ro 0 1
# swap was on /dev/md1 during installation
UUID=1b9e9adc-baf9-474b-94ba-d33c0f4c81b9 none swap sw 0 0
--------------------------------------------------------------------------------

================== md/0_0: Location of files loaded by Grub: ===================

GiB - GB File Fragment(s)

8.201728821 = 8.806539264 boot/grub/core.img 1
6.157077789 = 6.611111936 boot/grub/grub.cfg 1
1.004653931 = 1.078738944 boot/initrd.img-2.6.38-8-server 2
0.359737396 = 0.386265088 boot/vmlinuz-2.6.38-8-server 1
1.004653931 = 1.078738944 initrd.img 2
0.359737396 = 0.386265088 vmlinuz 1

=============================== StdErr Messages: ===============================

unlzma: Decoder error

YesWeCan
August 14th, 2011, 12:44 PM
I think I see. The mdadm version is different between 10.10 and 11.04. Would you add the missing drive back, boot and post the contents of your /etc/mdadm/mdadm.conf
Also cat /proc/mdstat
and sudo mdadm -Es

dharma_initiative
August 14th, 2011, 01:19 PM
mdadm.conf

# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR root

# definitions of existing MD arrays
ARRAY /dev/md0 UUID=21e3dbe0:3924f2f0:b64acd66:a7075890
ARRAY /dev/md1 UUID=e064b00f:cb168fdb:0ff61f71:4cc3505e

# This file was auto-generated on Sat, 13 Aug 2011 16:48:15 +0200
# by mkconf $Id$


cat /proc/mdstat

Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md1 : active raid1 sda2[1] sdb2[0]
3145664 blocks [2/2] [UU]

md0 : active raid1 sda1[1] sdb1[0]
10485696 blocks [2/2] [UU]

unused devices: <none>


mdadm -Es

ARRAY /dev/md0 UUID=21e3dbe0:3924f2f0:b64acd66:a7075890
ARRAY /dev/md1 UUID=e064b00f:cb168fdb:0ff61f71:4cc3505e

YesWeCan
August 14th, 2011, 02:02 PM
They look perfect. Try
sudo update-initramfs -u
to make sure the madam.conf info is available to the kernel during boot.
and
sudo update-grub
sudo grub-install /dev/sda
sudo grub-install /dev/sdb
for good measure.

dharma_initiative
August 14th, 2011, 02:27 PM
Same error:confused:

YesWeCan
August 14th, 2011, 02:44 PM
Why is it that mdstat does not show a metadata version and mdadm -Es doesn't show one either?
With metadata 1.2 that 11.04 uses by default, we should see the metadata version and the name of the array shown.
sudo mdadm -D /dev/md0
mdadm -V


Also, it would be useful to always see the Grub menu if Grub runs. Annoyingly, Ubuntu defaults to not showing it. In /etc/default/grub add a # before the GRUB_HIDDEN_TIMEOUT=0 line and then run sudo update-grub.

I seem to have reproduced something similar in VirtualBox. The symptom is slightly different, I end up with a blank screen when either disk is disconnected.

dharma_initiative
August 14th, 2011, 04:18 PM
I`ve already activatd the showing of the grub boot menu and it`s shown.
But when the PC reboots (because of the missing disc) ther is no grub menu.

mdadm -D /dev/mdo

/dev/md0:
Version : 0.90
Creation Time : Fri Aug 12 18:52:23 2011
Raid Level : raid1
Array Size : 10485696 (10.00 GiB 10.74 GB)
Used Dev Size : 10485696 (10.00 GiB 10.74 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Sun Aug 14 17:15:03 2011
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : 21e3dbe0:3924f2f0:b64acd66:a7075890
Events : 0.1072

Number Major Minor RaidDevice State
0 8 17 0 active sync /dev/sdb1
1 8 1 1 active sync /dev/sda1


mdadm -V

mdadm - v3.1.4 - 31 August 2010

YesWeCan
August 14th, 2011, 04:49 PM
Yes, your array is using format version 0.90. This should work, tho.

What is grub-install -v?

In VirtualBox I can boot a degraded 10.10 but not a degraded 11.04 (might be this https://bugs.launchpad.net/ubuntu/natty/+source/mdadm/+bug/778520). So there is a problem with 11.04 which may or may not affect you. However, in either case I get a Grub menu first so you have a different problem.

Let me get this straight. Let's call your disks A and B. A is in SATA slot 0:
1) When you disconnect A and boot B there is no Grub menu and it reboots itself
2) When you move B to slot 0 same thing
3) When you reconnect A in slot 1 it boots fine from A and B
4) If only A is connected it boots in either slot

dharma_initiative
August 14th, 2011, 07:29 PM
What is grub-install -v?




grub-install (GRUB) 1.99~rc1-13ubuntu3


Let me get this straight. Let's call your disks A and B. A is in SATA slot 0:


OK, let`s say Disk A is that one which was the first disk when installing ubuntu




1) When you disconnect A and boot B there is no Grub menu and it reboots itself
Thats correct




2) When you move B to slot 0 same thing


Yes



3) When you reconnect A in slot 1 it boots fine from A and B


Yes




4) If only A is connected it boots in either slot
Yes with a degraded array.

Havis
August 14th, 2011, 07:43 PM
Hi,

Can you verify, that you have boot flag set on your first partitions?

hint:
cfdisk /dev/sda
cfdisk /dev/sdb

and make sure that the first partiotion is bootable.

YesWeCan
August 14th, 2011, 08:06 PM
Ok, that's clear. It is also bizarre! I'm really struggling to conceive of what could possibly cause this.

You may need to stick to 10.10. :)

Do you happen to have a USB stick or another drive that you can install Grub to? It may be revealing to boot off an independent disk into Ubuntu on the array, with both disks present and then with only one or the other.

dharma_initiative
August 15th, 2011, 10:26 AM
OK, i will try that with the USB-stick.

At the moment im overthinking the whole nas and i think i`ll install an 11.04 system to a single ssd and put the logs into the ram.

I want to spin down the discs if they are unused and i think this will not be possible if there are written any logs to the filesystem on the array.