Difference between revisions of "User:Posde"

From LinuxMCE
Jump to: navigation, search
Line 1: Line 1:
== Create a RAID 0 ==
+
== Partition The First Disk ==
 +
Currently, the installer does not work with previously created software RAID devices. Therefor, one of the three disks is used to create the boot device. [[http://wiki.linuxmce.org/index.php/DVD_Install_And_Custom_Partitions]]
 +
== Create a RAID 1 ==
 
As the boot partition we will create a raid 0 array. First create partitions on two of the disks using fdisk
 
As the boot partition we will create a raid 0 array. First create partitions on two of the disks using fdisk
 
  fdisk /dev/sda
 
  fdisk /dev/sda

Revision as of 12:24, 2 May 2008

Partition The First Disk

Currently, the installer does not work with previously created software RAID devices. Therefor, one of the three disks is used to create the boot device. [[1]]

Create a RAID 1

As the boot partition we will create a raid 0 array. First create partitions on two of the disks using fdisk

fdisk /dev/sda
n - new partition
1 - start of partition
+80000M - we take about 80GB of space. Enough for the initial / of LinuxMCE and a couple of MDs
t - change type of partition
fd - to a raid array
w - write changes to disk.

same for /dev/sdb.

Now we create the raid devices

mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1

If you receive an error, device /dev/md0 not found, make sure, the kernel module md is loaded, do

modprobe md

and try mdadm --create again.

Now, wait for the array creation to finish. Watch it with

cat /proc/mdstat

Now we have the initial device for LinuxMCE. Look at the wiki page [[2]] regarding custom partitioning, and create the three relevant partitions within the device /dev/md0 instead of /dev/sda and the relevant file and dir.

Now it is time to install LinuxMCE as outlined in the above wiki. When done, come back here.

Create a RAID-5 MD with LVM2 on top

LinuxMCE is installed and Sarah did his show and dance, and most of the stuff is configured. Now we will setup the array for the media. This array will be the foundation for an LVM2. Ontop of LVM2 will be an xfs file system. This will ensure ease in growing our media repository.