#1  
Old 8th November 2011, 21:15
newfield_no1 newfield_no1 is offline
Junior Member
 
Join Date: May 2007
Posts: 28
Thanks: 2
Thanked 3 Times in 2 Posts
Default Grub2 om Ubuntu 10.04

I have followed the guide:
How To Set Up Software RAID1 On A Running System (Incl. GRUB2 Configuration) (Ubuntu 10.04)
But I cant get the option to start from the other hd in the menue.
When I start without the first hd then it says that it is missing and I dont get any option to start from the other.
I have done this earlier with 8.04 and Grub but not on my server with 10.04 that has Grub2.

I thougt that 09_swraid1_setup should fix that.
Am I missing some thing?
Reply With Quote
Sponsored Links
  #2  
Old 9th November 2011, 13:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Is this an Ubuntu 10.04 system? Did you run
Code:
grub-install /dev/sda
grub-install /dev/sdb
to install GRUB on both drives?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 9th November 2011, 15:04
newfield_no1 newfield_no1 is offline
Junior Member
 
Join Date: May 2007
Posts: 28
Thanks: 2
Thanked 3 Times in 2 Posts
Default

Yes, two times to be sure :-)

When I disconnect on disk the server just reboots befor i can se anything on the screen.
When I disconnect the oter disk the server starts with the initramfs promt.

I will try to reinstall (again) and make the raid-set by the installer to see if that works.
Reply With Quote
  #4  
Old 9th November 2011, 23:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Are both disks in sync before you try to disconnect one?

What's in /boot/grub/grub.cfg and /etc/fstab?

This system doesn't use LVM, right?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 9th November 2011, 23:29
newfield_no1 newfield_no1 is offline
Junior Member
 
Join Date: May 2007
Posts: 28
Thanks: 2
Thanked 3 Times in 2 Posts
Default

No I have test a new setup and created the RAID1 by setting up the disks manualy in the installation of Ubuntu 10.04.

/boot /dev/md0 1 GB
swap /dev/md1 20 GB
/ /dev/md2 275 GB

It works fine but I think that Bios dont like to start from the second disk.
I have tested to pull one sata cables and when I disconnect one of the cables it starts with a degraded array.
But when I switch the cable and try to start on the other disk it says something like "/boot is not ready" but I can press S and the system starts without /boot.
I dont use LMV

By the way, fdisk -l says:
Disk /dev/md0 innehåller inte en giltig partitionstabell
Disk /dev/md1 innehåller inte en giltig partitionstabell
Disk /dev/md2 innehåller inte en giltig partitionstabell
"not a guilty parttitiontable" in english.
Reply With Quote
  #6  
Old 10th November 2011, 20:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Maybe it really is a problem with your BIOS, but to go sure, can you post the contents of /boot/grub/grub.cfg and /etc/fstab?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 14th November 2011, 15:56
newfield_no1 newfield_no1 is offline
Junior Member
 
Join Date: May 2007
Posts: 28
Thanks: 2
Thanked 3 Times in 2 Posts
Default

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
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
}
insmod raid
insmod mdraid
insmod ext2
set root='(md2)'
search --no-floppy --fs-uuid --set e368b85a-a578-45e0-9cd4-7aaebdfe7098
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod raid
insmod mdraid
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 4afb2fd1-1573-4e89-96a1-77b51d05c452
set locale_dir=($root)/grub/locale
set lang=sv
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
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 ###
menuentry 'Ubuntu, med Linux 2.6.32-33-server' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 4afb2fd1-1573-4e89-96a1-77b51d05c452
linux /vmlinuz-2.6.32-33-server root=UUID=e368b85a-a578-45e0-9cd4-7aaebdfe7098 ro quiet
initrd /initrd.img-2.6.32-33-server
}
menuentry 'Ubuntu, med Linux 2.6.32-33-server (återställningsläge)' --class ubuntu --class gnu-linux --class gnu --class {s {
recordfail
insmod raid
insmod mdraid
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 4afb2fd1-1573-4e89-96a1-77b51d05c452
echo 'Läser in Linux 2.6.32-33-server ...'
linux /vmlinuz-2.6.32-33-server root=UUID=e368b85a-a578-45e0-9cd4-7aaebdfe7098 ro single
echo 'Läser in initial ramdisk ...'
initrd /initrd.img-2.6.32-33-server
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod raid
insmod mdraid
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 4afb2fd1-1573-4e89-96a1-77b51d05c452
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod raid
insmod mdraid
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 4afb2fd1-1573-4e89-96a1-77b51d05c452
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### END /etc/grub.d/30_os-prober ###

-------------------------------------------------------------------
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/md2 during installation
UUID=e368b85a-a578-45e0-9cd4-7aaebdfe7098 / ext4 errors=remount-ro 0 1
# /boot was on /dev/md0 during installation
UUID=4afb2fd1-1573-4e89-96a1-77b51d05c452 /boot ext4 defaults 0 2
# swap was on /dev/md1 during installation
UUID=ec2c57fc-3816-4469-991c-1b6aa14a2a74 none swap sw 0 0
Reply With Quote
  #8  
Old 15th November 2011, 14:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

Quote:
Originally Posted by newfield_no1 View Post
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/md2 during installation
UUID=e368b85a-a578-45e0-9cd4-7aaebdfe7098 / ext4 errors=remount-ro 0 1
# /boot was on /dev/md0 during installation
UUID=4afb2fd1-1573-4e89-96a1-77b51d05c452 /boot ext4 defaults 0 2
# swap was on /dev/md1 during installation
UUID=ec2c57fc-3816-4469-991c-1b6aa14a2a74 none swap sw 0 0
I think your fstab should look as follows:

Code:
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
/dev/md2 /               ext4    errors=remount-ro 0       1
/dev/md0 /boot           ext4    defaults        0       2
/dev/md1 none            swap    sw              0       0
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
software raid1 on running system incl grub2 ubuntu 10.04 Hajo.Locker HOWTO-Related Questions 5 19th October 2011 12:16
Perfect Server Ubuntu 10.04 webmail issue sidcypher HOWTO-Related Questions 1 5th May 2011 16:11
Problem send/receive Courier+Postfix+Squirrelmail Pirk Installation/Configuration 2 21st May 2010 13:26
Connection timed out on intermail outgoing mails gouravgarg Server Operation 6 5th March 2010 20:31
Unbale to login to Postfix from webmail wasimriz HOWTO-Related Questions 5 6th April 2009 13:49


All times are GMT +2. The time now is 09:32.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.