RAID Arrays with Xen

Discussion in 'Installation/Configuration' started by atjensen11, Aug 9, 2008.

  1. atjensen11

    atjensen11 New Member

    I installed Xen on a machine with a built in Adaptec RAID controller. During the initial install, the second SATA drive was turned off in BIOS.

    After the complete Ubuntu Hardy and Xen install, I created a virtual machine that operates as a Samba server. The virtual machine uses a third drive in the machine that is IDE and writes to the disk (NTFS partition) rather than to an image file. There is another partition on this IDE disk that contains an old 7.10 install of Ubuntu. This all works fine.

    Then I enabled the second SATA drive in the BIOS and turned on the RAID controller in order to build a RAID 1 array. This went fine as well.

    After the reboot however, the partition containing the 7.10 Ubuntu on the IDE drive is the one the computer starts to load. If I turn the RAID controller off, the computer boots from the 8.04 version on the first SATA drive.

    Any suggestions?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Do you see a boot menu with different kernels/operating systems when you boot the system?
     
  3. atjensen11

    atjensen11 New Member

    Falko,

    I don't see a boot menu. I presume you are referring to a menu presented at the terminal where the user could choose which OS to boot into. I don't see that. It just goes ahead and starts booting the old partition on the IDE drive when I want it to boot from the RAID SATA disks.

    In the near future, I won't need the older partitions on the IDE drive. Can I change them from ext3 to NTFS and add them to the NTFS partition on the same drive? Or can I perhaps change the ext3 with the old OS to no longer be bootable?
     
  4. falko

    falko Super Moderator Howtoforge Staff

    You can do that with GParted: http://www.howtoforge.com/partitioning_with_gparted
     
  5. atjensen11

    atjensen11 New Member

    Alright, so I finally got around to changing the partitions on the IDE drive. I deleted the old boot (ext2) parition, the old OS (ext3) partition, and the swap partition. That only left my Windows files for Samba (ntfs) partition.

    I then moved the NTFS partition to the beginning of the drive and extended it. GParted worked great and I didn't loose any data. I did all the work using an older (7.10 Ubuntu) Live CD.

    I then went into the BIOS settings for the computer and renabled the RAID controller. Upon booting, I entered the Adaptec RAID configuration utility and built the RAID array.

    I rebooted and nothing happened. I went back into the Adaptec RAID configuration utility and noticed the array was not marked as bootable. So I changed that so that the array would now have the bootable flag.

    Rebooted again and now I get a GRUB Error 22. I guess I am not surprised by this, but how do I go about fixing this problem?

    Should I save off my Xen VM files and just reinstall Ubuntu 8.04 LTS Server now that the RAID array is configured? Or do I have to edit the GRUB loader somewhere? I haven't had to do that in the past.

    For now, the computer will boot just fine as long as I have the RAID controller disabled.
     

Share This Page