ProLiant Servers (ML,DL,SL)
cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble booting linux on HP Proliant DL320 after replacing RAID1 disk

 
Karolis Kapaciunas
Occasional Visitor

Trouble booting linux on HP Proliant DL320 after replacing RAID1 disk

My setup: HP Proliant DL320 running Debian 5 (2.6.18-6-686) with software raid1.

There are two sata hotswap disks: /dev/sda and /dev/sdb. I've replaced sdb, synced raid, updated grub. Then I've exchanged SDA with brand new disk and tried to boot, but it failed even to display grub menu. As if server wasn't even looking for second hard drive (sdb). I've checked BIOS settings and in boot section only option was sata controller and not drives connected to it. So I've added old sda and it booted correctly. Then I've rebooted and from grub menu selected second line to boot from sdb, but it failed with some partition table errors. Next thing I've tried to clone sda partitions to new hdd. I've added this disk and booted to grub, then selected to boot from sdb and it failed with GRUB error 22.

Any ideas?

At first I thought it was my mistake somewhere. So I replicated whole setup to a desktop pc and tried experimenting with grub and replacing hard drives. Every time it worked as expected. But not with the Proliant. Whats the catch?

Here is configuration:

/proc/mdstat

Personalities : [raid1]

md2 : active raid1 sda3[0] sdb3[1] 4883648 blocks [2/2] [UU]

md1 : active raid1 sda2[0] sdb2[1] 4883648 blocks [2/2] [UU]

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

unused devices:

fdisk /dev/sda

Disk /dev/sda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00084b9f

Device Boot Start End Blocks Id System
/dev/sda1 1 243 1951866 fd Linux raid autodetect
/dev/sda2 244 851 4883760 fd Linux raid autodetect
/dev/sda3 852 1459 4883760 fd Linux raid autodetect
...

/boot/grub/menu.lst

default 0 fallback 1

title Debian GNU/Linux, kernel 2.6.18-6-686 sda
root (hd0,1)
kernel /boot/vmlinuz-2.6.18-6-686 root=/dev/md1 ro
initrd /boot/initrd.img-2.6.18-6-686

title Debian GNU/Linux, kernel 2.6.18-4-686 sdb
root (hd1,1)
kernel /boot/vmlinuz-2.6.18-6-686 root=/dev/md1 ro
initrd /boot/initrd.img-2.6.18-6-686

grub> find /boot/grub/stage1 (hd0,1) (hd1,1)