PDA

View Full Version : xen + raid1


aqua
30th March 2006, 18:53
Hello All:

I am installing the Xen/vserver howto as described by falko (excellent howto by the way!).

I am installing this setup on a pair of external harddrives, which i have setup as a software RAID1. Here is a copy of mdadm --detail /dev/md0

mdadm --detail /dev/md0

/dev/md0:
Version : 00.90.01
Creation Time : Tue Mar 28 07:11:18 2006
Raid Level : raid1
Array Size : 244195904 (232.88 GiB 250.06 GB)
Device Size : 244195904 (232.88 GiB 250.06 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Thu Mar 30 11:52:00 2006
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : 7471b230:6584b0f0:9d586981:b9764589
Events : 0.1759

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


so now my question is, how should my /boot/grub/menu.lst look like?
i tried several variations, but my computer either keeps rebooting or gets stuck on start up:

title Xen 3.0.1 / XenLinux 2.6.12-xen0
root (md0,0)
kernel /boot/xen.gz dom0_mem=65536
module /boot/vmlinuz-2.6-xen0 root=/dev/md0 ro console=tty0

thank you
aqua

falko
31st March 2006, 12:39
Please post your /etc/fstab here.

aqua
31st March 2006, 18:28
Hrllo falko:

here is the file you requested...

GNU nano 1.2.4 File: /etc/fstab

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/md0 / ext3 defaults,errors=remount-ro 0 1
/dev/hdb /media/cdrom0 iso9660 ro,user,noauto 0 0
/dev/hdd /media/cdrom1 iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
/dev/sda /media/usb0 auto rw,user,noauto 0 0
/dev/sdb /media/usb1 auto rw,user,noauto 0 0

falko
31st March 2006, 18:51
Please try this in /boot/grub/menu.lst:

title Xen 3.0.1 / XenLinux 2.6.12-xen0
root (hd0,0)
kernel /boot/xen.gz dom0_mem=65536
module /boot/vmlinuz-2.6-xen0 root=/dev/md0 ro console=tty0

aqua
31st March 2006, 19:00
i tried that...it would start the booting process, but it would reboot halfway through it.... any other suggestions?

aqua

falko
31st March 2006, 19:12
Can you recall the error message that appears before it reboots?

aqua
31st March 2006, 21:01
I didn't see an error just before it rebooted...but the last line i recall just before it rebooted is something like:

Initializing full-speed usb...the screen goes by pretty quick so I don't know the exact line...

aqua
31st March 2006, 21:56
Do you think i might have to enable RAID support when i compile Xen?

falko
1st April 2006, 13:26
I'm not sure, but you can try at least...
(Did you know that I spent a whole week to compile my first kernel the way I wanted it? Weird... :( )

aqua
1st April 2006, 18:51
I guess i will go with that route instead...so then...how do i delete my old configuration so i start fresh? it it enough to delete /boot/xen.gz?

falko
3rd April 2006, 00:08
You don't need to delete anything. Just start over.