Changes

From Amahi Wiki
Jump to: navigation, search
5,747 bytes added ,  07:02, 2 August 2010
Howto to set up Headless Amahi Server with RAID1
= Howto To Set Up An Amahi Headless System with RAID1 =
----
== PART 1: Setting Up Your System ==

If you are new to Amahi, you can use an old desktop system to play around with it first. If it fits your needs, you can always rebuild your server with a new system.

Here are the specs of my Amahi server and what I used for the instructions below.

; My Amahi Server Specs
: CPU: 2.7 Dual Core 2M cache 800MHz
: MB: Intel G41RQ
: RAM: DDR-2 2G/800
: Hard Drive1: Seagate 250 GB SATA
: Hard Drive2: Seagate 1.5 TB SATA
: Hard Drive3: Seagate 1.5 TB SATA
: Wireless (optional): TP Link Wireless N (TL-WN951N)
: CD/DVD: LG Super DVD-Rewriter 22x

----

== PART 2: Installing Headless Amahi ==

1.) Download the ''Amahi Headless ISO image'' from http://wiki.amahi.org/index.php/Express_CD
<br />2.) Create a CD from the ISO file using something like ''ImgBurn'' (from http://www.imgburn.com)
<br />3.) Boot the Amahi Headless CD and select '''Erase everything, install Amahi headless'''.
<br />4.) Select the appropriate settings for each step of the installation.
<br />5.) If everything install correctly, reboot your computer (remove CD before it loads again).
<br />6.) Make sure your server is up and running.
<br />7.) Go to http://hda and log into your server.
<br />8.) Click on the '''Storage''' tab, you should have ONE partition listed under ''Partitions'' and THREE devices listed under ''Disks'' (i.e. /dev/sda, /dev/sdb and /dev/sdc).
<br />9.) If everything looks good, insert Amahi Express CD back in computer and reboot.

----

== PART 3: Setting Up RAID1 ==

I didn't want to search or download other utility tools to create the RAID partitions (too lazy for that) so I just used the headless CD.
<br />
<br />10.) This time when the Amahi Headless CD boots, select '''Expert install for Amahi headless - Graphic installer'''
<br />11.) Select language/Next
<br />12.) Select keybord/Next
<br />13.) Select Time Zone/Next
<br />14.) Enter password for root (I used the same one in the intial install)
<br />15.) Instead of '''Replace Existing Linux System''', select '''Create Custom Layout''' from the drop down list
<br />16.) Next
<br />17.) Your screen should look something like this
<pre>
Hard Drives
/dev/sda/
/dev/sda1 / ext3 238472
/dev/sdb
/dev/sdb1 swap 3968
Free 1426828
/dev/sdc
Free 1430796
</pre>
18.) Click on '''New''' to create a new partition
<br />19.) File System Type: select '''swap''' from drop down menu
<br />20.) Tick '''sdc''' drive
<br />21.) Size: '''3968''' (or same size as the swap on sdb)
<br />22.) Select '''Fixed Size'''
<br />23.) When you create this partition it should look something like this:
<pre>
/dev/sdc/
/dev/sdc1 swap 3968
Free 1426828
</pre>
''Partion the first drive in the RAID''
<br />24.) Select '''Free''' under /dev/sdb1
<br />25.) Click on '''RAID''' button
<br />26.) Select '''Create a software RAID partition'''
<br />27.) Click '''OK'''
<br />28.) Tick the check box for '''sdb''' from allowable drives
<br />29.) Select '''Fill to maxium allowable size'''
<br />30.) Click '''OK'''
<br /><br />
''Partition the second drive in the RAID''
<br />31.) Select '''Free''' under /dev/sdc1
<br />32.) Click on '''RAID''' button
<br />33.) Select '''Create a software RAID partition'''
<br />34.) Click '''OK'''
<br />35.) Tick the check box for '''sdc''' from allowable drives
<br />36.) Select '''Fill to maxium allowable size'''
<br />37.) Click '''OK'''
<br />38.) Click on '''RAID''' button again
<br />39.) Select '''Create a RAID device [default=/dev/md0]'''
<br />40.) Enter the information for your RAID device
:: Mount point: '''/var/hda/files/raid'''
:: File system: '''ext3'''
:: RAID device: '''md0'''
:: RAID level: '''RAID1'''
:: RAID members: tick or check both '''sdb2''' and '''sdc2'''
41.) Click '''OK'''

'''This next step is VERY IMPORTANT'''
<br />42.) Click on '''/dev/sda1''' to select that partition
<br />43.) Then click on the '''Edit''' button
<br />44.) Select / from the drop down menu for the ''Mount Point''
<br />45.) OK

''Your screen should look like this:''
<pre>
RAID Devices
device RAID/Volume Type Format Size
/dev/md0 /var/hda/files/raid ext3 tick 1426828
Hard Drives
/dev/sda/
/dev/sda1 / ext3 238472
/dev/sdb
/dev/sdb1 swap 3968
/dev/sdb2 /dev/md0 sw raid tick 1426828
/dev/sdc
/dev/sdc1 swap tick 3968
/dev/sdc2 /dev/md0 sw raid tick 1426828
</pre>
'''''NOTE''''': the partitions marked with a '''tick''' will be formatted
<br />
<br />46.) The next screen will say something like '''Creating filesystem on /dev/md0'''.
<br />'''''NOTE''''': This would be a good time to make a cup of coffee or use the restroom as this part took about 10 minutes to complete on my system.
<br />
<br />47.) When the '''Install boot loader screen''' comes up, use the defaults:
: Install boot loader on /dev/sda
:: Amahi /dev/sda1
48.) Select '''Next'''
<br />49.) A screen will appear saying something like '''Missing Package''', select '''Ignore All'''
<br />50.) Enter your '''amahi code'''
<br />51.) '''Reboot'''
<br />52.) Log into your system http://hda
<br />53.) Go to '''Storage''' tab. You should now have two partitions:
: Partition 0 (250 GB)
: Partition 1 (1.3 TB) This is your RAID partion :)

:Under ''Disks'', you should see all three drives listed.

----

I've gone through the above steps from beginning to end about 6 time now on the same system. One time a recieved an error saying something about a bug. I simply rebooted and picked up where I had left off; I wish I would have written it down now.
<br /><br />
Anyways, I hope this helps anyone looking to set up a Headless Amahi Server with RAID1 :)
2

edits