Difference between revisions of "User talk:Bbloqx"

From Amahi Wiki
Jump to: navigation, search
(Howto to set up Headless Amahi Server with RAID1)
 
(Howto To Set Up An Amahi Headless System with RAID1)
 
Line 48: Line 48:
 
Hard Drives
 
Hard Drives
 
/dev/sda/
 
/dev/sda/
/dev/sda1 / ext3 238472
+
/dev/sda1 ext3 238472
 
/dev/sdb
 
/dev/sdb
 
/dev/sdb1 swap 3968
 
/dev/sdb1 swap 3968

Latest revision as of 10:37, 2 August 2010

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
2.) Create a CD from the ISO file using something like ImgBurn (from http://www.imgburn.com)
3.) Boot the Amahi Headless CD and select Erase everything, install Amahi headless.
4.) Select the appropriate settings for each step of the installation.
5.) If everything install correctly, reboot your computer (remove CD before it loads again).
6.) Make sure your server is up and running.
7.) Go to http://hda and log into your server.
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).
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.

10.) This time when the Amahi Headless CD boots, select Expert install for Amahi headless - Graphic installer
11.) Select language/Next
12.) Select keybord/Next
13.) Select Time Zone/Next
14.) Enter password for root (I used the same one in the intial install)
15.) Instead of Replace Existing Linux System, select Create Custom Layout from the drop down list
16.) Next
17.) Your screen should look something like this

Hard Drives
	/dev/sda/
		/dev/sda1			ext3		238472	
	/dev/sdb
		/dev/sdb1			swap		3968
		Free						1426828		
	/dev/sdc
		Free						1430796					

18.) Click on New to create a new partition
19.) File System Type: select swap from drop down menu
20.) Tick sdc drive
21.) Size: 3968 (or same size as the swap on sdb)
22.) Select Fixed Size
23.) When you create this partition it should look something like this:

	/dev/sdc/
		/dev/sdc1			swap		3968
		Free						1426828

Partion the first drive in the RAID
24.) Select Free under /dev/sdb1
25.) Click on RAID button
26.) Select Create a software RAID partition
27.) Click OK
28.) Tick the check box for sdb from allowable drives
29.) Select Fill to maxium allowable size
30.) Click OK

Partition the second drive in the RAID
31.) Select Free under /dev/sdc1
32.) Click on RAID button
33.) Select Create a software RAID partition
34.) Click OK
35.) Tick the check box for sdc from allowable drives
36.) Select Fill to maxium allowable size
37.) Click OK
38.) Click on RAID button again
39.) Select Create a RAID device [default=/dev/md0]
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
42.) Click on /dev/sda1 to select that partition
43.) Then click on the Edit button
44.) Select / from the drop down menu for the Mount Point
45.) OK

Your screen should look like this:

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

NOTE: the partitions marked with a tick will be formatted

46.) The next screen will say something like Creating filesystem on /dev/md0.
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.

47.) When the Install boot loader screen comes up, use the defaults:

Install boot loader on /dev/sda
Amahi /dev/sda1

48.) Select Next
49.) A screen will appear saying something like Missing Package, select Ignore All
50.) Enter your amahi code
51.) Reboot
52.) Log into your system http://hda
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.

Anyways, I hope this helps anyone looking to set up a Headless Amahi Server with RAID1 :)