PDA

View Full Version : Gutsy raid1 boot problem


Gone fishing
October 17th, 2007, 02:14 AM
I've set up a raid1 on Gutsy server RC, I've go it set up so it works using these instructions: http://advosys.ca/viewpoints/2007/04/setting-up-software-raid-in-ubuntu-server/ (I've set up three raid1 partitions /, /home and swap) The problem is if I test it by disconnecting one of the drives Gutsy wont boot.

The problem seems to be like this one in Feisty http://ubuntuforums.org/showthread.php?t=507074&highlight=raid1 anyone got any ideas before I try the patch above?

I really could do with some advice on this one :)

nanog
October 17th, 2007, 02:58 AM
I used this guide to get raid1 to work in feisty.

http://currents.soest.hawaii.edu/adcp/programs/adcp_doc/ubuntu_docs/thirdparty_html/ubuntu_raid.html

See the end of section 3. If you install grub on sdb you should be able to remove sda and still have a bootable system.

mk1970
October 17th, 2007, 03:55 AM
I used this guide to get raid1 to work in feisty.
http://currents.soest.hawaii.edu/adcp/programs/adcp_doc/ubuntu_docs/thirdparty_html/ubuntu_raid.html


That is an old version of my RAID-1 document, please see the latest version (and use the new URL) found below...

Gone fishing
October 17th, 2007, 04:01 AM
Thanks I don't think thats the probem as I added the bootloader to both hard drives:

grub
device (hd0) /dev/sda
root (hd0,0)
setup (hd0)
device (hd1) /dev/sdb
root (hd1,0)
setup (hd1)
quit

If I pull a harddrive lead then boot grub starts but does not proceed and after a while I arrive at a initrmfs screen. Just some more info if it helps:

If I run the following command from a terminal (in the article you linked)

jhjk@lampserver:~$ grep /dev/md /etc/fstab
# /dev/md0
# /dev/md1
# /dev/md2
jhjk@lampserver:~$

jhjk@lampserver:~$ df -h / /home
Filesystem Size Used Avail Use% Mounted on
/dev/md0 15G 2.6G 12G 19% /
/dev/md1 131G 225M 124G 1% /home

jhjk@lampserver:~$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md2 : active raid1 sda3[0] sdb3[1]
1991936 blocks [2/2] [UU]

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

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

unused devices: <none>

and

jhjk@lampserver:~$ sudo mdadm --query --detail /dev/md0
/dev/md0:
Version : 00.90.03
Creation Time : Wed Oct 17 00:51:54 2007
Raid Level : raid1
Array Size : 15623104 (14.90 GiB 16.00 GB)
Used Dev Size : 15623104 (14.90 GiB 16.00 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Wed Oct 17 09:52:49 2007
State : active
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : 2aa5c0cf:d2ed8c33:31b70149:8694a062
Events : 0.7

Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 17 1 active sync /dev/sdb1
jhjk@lampserver:~$

similar results for md1 and md2

any other ideas?