xen + raid1

Discussion in 'HOWTO-Related Questions' started by aqua, Mar 30, 2006.

  1. aqua

    aqua New Member

    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
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Please post your /etc/fstab here.
     
  3. aqua

    aqua New Member

    /etc/fstab

    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
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Please try this in /boot/grub/menu.lst:

    Code:
    title Xen 3.0.1 / XenLinux 2.6.12-xen0
    [B][COLOR="Red"]root (hd0,0)[/COLOR][/B]
    kernel /boot/xen.gz dom0_mem=65536
    module /boot/vmlinuz-2.6-xen0 root=/dev/md0 ro console=tty0
     
  5. aqua

    aqua New Member

    i tried that...it would start the booting process, but it would reboot halfway through it.... any other suggestions?

    aqua
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Can you recall the error message that appears before it reboots?
     
  7. aqua

    aqua New Member

    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...
     
  8. aqua

    aqua New Member

    Do you think i might have to enable RAID support when i compile Xen?
     
  9. falko

    falko Super Moderator Howtoforge Staff

    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... :( )
     
  10. aqua

    aqua New Member

    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?
     
  11. falko

    falko Super Moderator Howtoforge Staff

    You don't need to delete anything. Just start over.
     

Share This Page