Installing Software Raid (MDAMD) on the Appliance: Difference between revisions

From IHRIS Wiki
(Created page with 'On the grub boot loader do [F6] (Other Options) Select to Disable dmraid [Esc] Choose to install Ubuntu/iHRIS Continue as usual until the partition screen [Ctrl]-[Alt]-[F1]…')
 
No edit summary
Line 11: Line 11:
You will need to create partitions via fdisk (instructions not included here)
You will need to create partitions via fdisk (instructions not included here)
  sudo fdisk /dev/sda
  sudo fdisk /dev/sda
    n  (new partition)
    p  (primary)
    1 (partition 1)
    1 (first cylinder)
    9242 (last cylinder)
    n  (new partition)
    p  (extended)
    2 (partition 2)
    9243 (first cylinder)
    9729 (last cylinder)
    n    (new parition)
    l    (logical partition)
    9243 (first cylinder)
    9729 (last cylinder)
    t (set partition type)
    5 (parition 5)
    82 (swap)
    p (print to make sure everything matches below)
    w  (write and exit)
Repeat for /dev/sdb   
  sudo fdisk /dev/sdb
  sudo fdisk /dev/sdb
..blah blah..
and the partitions should be identical:
and the partitions should be identical:
  /dev/sda1 start 1 end 9242 id 83 (linux)
  /dev/sda1 start 1 end 9242 id 83 (linux)
Line 19: Line 40:
  /dev/sdb2 start 9243 end 9728 id 5 (extended)
  /dev/sdb2 start 9243 end 9728 id 5 (extended)
  /dev/sdb5 start 9243 end 9728 id 82 (swap)
  /dev/sdb5 start 9243 end 9728 id 82 (swap)


Now assemble the software raid array
Now assemble the software raid array
Line 25: Line 47:
on success it should say "mdadm: array /dev/md0 started"
on success it should say "mdadm: array /dev/md0 started"


==LCD Menu==
sudo usblcd spash /home/lcdmenu/bin/splash.txt
To return to installed:
To return to installed:
  [Alt]-[F7]
  [Alt]-[F7]

Revision as of 14:18, 13 October 2010

On the grub boot loader do

[F6] (Other Options)
Select to Disable dmraid
[Esc]
Choose to install Ubuntu/iHRIS

Continue as usual until the partition screen

[Ctrl]-[Alt]-[F1]  will take you to a prompt

Here you do

sudo apt-get install mdadm

You will need to create partitions via fdisk (instructions not included here)

sudo fdisk /dev/sda
   n  (new partition)
   p  (primary)
   1 (partition 1)
   1 (first cylinder)
   9242 (last cylinder)
   n  (new partition) 
   p  (extended)
   2 (partition 2)
   9243 (first cylinder)
   9729 (last cylinder)
   n    (new parition)
   l    (logical partition)
   9243 (first cylinder)
   9729 (last cylinder)
   t (set partition type)
   5 (parition 5)
   82 (swap)
   p (print to make sure everything matches below)
   w  (write and exit)

Repeat for /dev/sdb

sudo fdisk /dev/sdb
..blah blah..

and the partitions should be identical:

/dev/sda1 start 1 end 9242 id 83 (linux)
/dev/sda2 start 9243 end 9728 id 5 (extended)
/dev/sda5 start 9243 end 9728 id 82 (swap)
/dev/sdb1 start 1 end 9242 id 83 (linux)
/dev/sdb2 start 9243 end 9728 id 5 (extended)
/dev/sdb5 start 9243 end 9728 id 82 (swap)


Now assemble the software raid array

sudo mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1
sudo mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sda5 /dev/sdb5

on success it should say "mdadm: array /dev/md0 started"


LCD Menu

sudo usblcd spash /home/lcdmenu/bin/splash.txt

To return to installed:

[Alt]-[F7]

From the partition manager thing, click "Back" and then "Forward" so that is will rescan the disks

Select 'Specify the partitions manually'
/dev/md0 is ext3 on /
/dev/md1 is swap


After rebooting, maybe modify /etc/fstab and set

 /dev/md0 to "relatime" instead of defaults