Other Hardware

Wiki Resources

Sponsored Links

Introduction

I tried to run Raid1 on Unslung (Raid1onUnslung6), but did not end up with a working device :-( To me it was unclear why the scripts didn't work. So I decided to try Slug-OS/BE, see HomePage. My first try did work and here is the overview of the steps taken. The steps are written for two empty disks, so no backup of any data is taken into account.

Note: the two leds for the indication of DISK-1 and DISK-2 will not light. It should be possible to connect more then two drives through a USB-hub. So it does not really make sense to control the lights as it does for unslung with the hard map between the ports and drives.

At InitialisingDisks is described how to setup one disk. The basics of the description are valid for the setup of RAID-1 as well. So take that page as starting point and apply the changes as described in here.

Start with the creation the three partitions on /dev/sda as described (I've increased to first partition to 4Gb).

Make the change to the swap partition as described. In addition set the type of the third partition to fd (Linux raid autodetect).

Before rebooting the NSLU2 first perform the same tasks on /dev/sdb. On the second drive, the first 4Gb and the swap will not be used further. Only the large data partition will be used in the RAID.

Reboot the NSLU2 after defining the partition table for both /dev/sda and /dev/sdb.

After rebooting continue with the section "Initializing disks". Don't make the file system on /dev/sda3, we will do that after the raid is configured. Also initialise /dev/sdb1.

Reboot the NSLU2 again.

The next section is the "Moving root file system" section.

Before you move the root filesystem first properly initialise the Slug-OS further. This is described at InitialisingOpenSlug. (Note that the link on the InitialisingDisks is linking to a document for OpenSlug 2.5 and we are on 3.10beta).

So run the

# turnup init
# turnup preserve

and reboot

Now it is time to move the root file system

# turnup disk -i /dev/sda1 -t ext3

Reboot again to boot from the file system.

Continue with the "Finishing up" section

As nothing needs to be done on /dev/sda3 only update /etc/fstab for /dev/sda2