[nmglug] got it, this is if anyone needs it, raid 10 how to,

Andres Paglayan andres at paglayan.com
Sat Nov 7 09:59:08 PST 2009


how to install ubuntu server on raid 10

Provided you have 4 hard drives,

boot on any live disk
go to a console

partition your four disk all the same

(repeat these steps for your four disks)
fdisk /dev/sda 
n p 1 (and pick enough space for boot) 
t 1 fd (makes the partition Linux auto array)
a 1 (makes the partition bootable)
n p 2 (and pick most of space, leave enough for swap on the next one)
t 1 fd
n p 3 (and pick the rest of space, this one will be swap)
w (writes partition table and exits)
(eof repeat for sdb, sdc, sdd) 

so now you'll have /dev/sda1 /dev/sda2 and /dev/sda3
and so on for sdb sdc and sdd after doing partitioning for all the four
disks,

now create the raid devices,

mdadm --create /dev/md0 --level=1
--raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
(these are all the bootable ones, will be set for /boot later, note that
is array 1 )

mdadm --create /dev/md1 --level=10
--raid-devices=4 /dev/sda2 /dev/sdb2 /dev/sdc2 /dev/sdd2
(these are for /, will be set later)

mdadm --create /dev/md2 --level=10
--raid-devices=4 /dev/sda3 /dev/sdb3 /dev/sdc3 /dev/sdd3
(these are the swap)

now format the array devices

mkfs.ext3 /dev/md0
mkfs.ext3 /dev/md1
mkswap /dev/md2


after that,
reboot on you install drive,
when going to partition, select manual,
it won't see the devices,
click on manage array options and then on finish,
will go back to partition dialog and will show the three devices devices
now,

pick the first one, tell to use ext3 and mountpoint /boot
pick the second one, tell to use ext3 and mountpoint /
pick the third one, use as swap

note that you don't need to format, because you already did.

ok with the warnings and it will install like nothing happended
will boot from /dev/md0 which is an array 1 without problems,
and will use the rest of the system as array10






-------------------------------
Andres Paglayan
o:
(505) 629-4344
m:
(505) 690-2871
f:
(505) 629-1008
h:
(505) 986-1561
andres at paglayan.com
--------------------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nmglug.org/pipermail/nmglug-nmglug.org/attachments/20091107/c6af384f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5505 bytes
Desc: not available
URL: <http://lists.nmglug.org/pipermail/nmglug-nmglug.org/attachments/20091107/c6af384f/attachment.bin>


More information about the nmglug mailing list