When installing Ubuntu 10.04 server onto a fakeraid (Intel 82801) with a
RAID-10 volume created, partman refuses to show the correct raid set.
Even if you partition your disk using another OS and boot back into the
installer, you still cannot select it.

The only solution I have found is to do the following:

1) Switch to another console (alt-F2)
2) Save the output of /bin/parted_devices somewhere (/tmp/realdevices is used 
here)
3) Copy /bin/parted_devices to /bin/parted_devices.orig
4) Using nano, edit /bin/parted_devices and enter:

#!/bin/sh
cat /tmp/realdevices

5) chmod 755 /bin/parted_devices
6) Execute /bin/parted_devices and compare with output from executing 
/bin/parted_devices.orig. Should be identical.
7) Run fdisk on your RAID-10 volume and record the size in bytes from the first 
line output by the 'p' command 
8) Using nano, edit /tmp/realdevices and copy the line for one of the component 
RAID-1 volumes. For example:

/dev/mapper/isw_abcabcabcd_Volume0-0       150037204992      Linux
device-mapper (mirror)

9) Modify the copied line to match the raid-10 device:

/dev/mapper/isw_abcabcabcd_Volume0       300074401792      Linux device-
mapper (mirror)

NOTE: These are examples for 150GB disks, making a 300GB RAID-10.
abcabcabcd is also just a placeholder, yours will be different. USE THE
CORRECT VALUES FOR YOUR SYSTEM!

10) Execute /bin/parted_devices and compare the output to the previous
execution. The new line should appear formatted exactly like the ones
you had before

11) Proceed with installation.
12) Skip installing a bootloader. When the install is complete, reboot to the 
install CD and enter rescue mode.
13) Chroot to the new disk, purge the grub-pc package, and install grub.
14) Run grub manually as follows:

grub --device-map=/dev/null

grub> device (hd0) /dev/mapper/isw_abcabcabcd_Volume0

grub> geometry (hd0) 121602 255 63 (use output from cfdisk here for Cylinders, 
Heads, Sectors)
drive 0x80: C/H/S = 121602/255/63, The number of sectors = 1953536130, /dev/map
per/isw_hijdbieid_Volume0
   Partition num: 0,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 5,  Filesystem type unknown, partition type 0x82

grub> root (hd0,0)
 Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  17 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,0)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.

15) Reboot

-- 
Ubuntu 10.04 can't create partition on fakeraid
https://bugs.launchpad.net/bugs/568050
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to