NSLU2-Linux
view · edit · print · history
FAQ »

FAQ.RAID History

Hide minor edits - Show changes to markup

April 05, 2010, at 01:31 AM by Starnamer -- Note about Root Filesystem Bug
Changed line 25 from:
  • Reboot and you should be running from the degraded RAID arrays (if it fails, use the saved backup to reflash)
to:
  • Reboot and you should be running from the degraded RAID arrays (if it fails, use the saved backup to reflash. You may need to use the hack at http://www.nslu2-linux.org/wiki/HowTo/MountDisksByLabel to overcome the Root Filesystem Bug)
April 04, 2010, at 12:28 AM by Starnamer -- Inserted missing >
Changed line 19 from:
  • Save existing flash (cat /dev/mtdblock* backup) and put it somewhere safe
to:
  • Save existing flash (cat /dev/mtdblock* > backup) and put it somewhere safe
August 24, 2009, at 10:12 AM by StarNamer -- Added note about rootdelay
Added line 21:
  • Use apex-env to add rootdelay=10 to cmdline to give extra time for RAID detection
August 24, 2009, at 10:05 AM by StarNamer -- Important Typo!
Changed line 19 from:
  • Save existing flash (cp /dev/mtdblock* backup) and put it somewhere safe
to:
  • Save existing flash (cat /dev/mtdblock* backup) and put it somewhere safe
August 24, 2009, at 10:04 AM by StarNamer -- Typo and slight clarification
Changed line 17 from:
  • mksf or mkswap as needed on new partitions
to:
  • mkfs or mkswap as needed on new partitions
Changed line 24 from:
  • Reboot and you should be running from the degraded RAID arrays
to:
  • Reboot and you should be running from the degraded RAID arrays (if it fails, use the saved backup to reflash)
August 24, 2009, at 10:02 AM by StarNamer -- Typo
Changed line 16 from:
  • Use mdadm to create new RAID drives with missig first disk
to:
  • Use mdadm to create new RAID drives with missing first disk
August 24, 2009, at 10:01 AM by StarNamer -- Reword 1st sentence
Changed lines 3-4 from:

Yes. With both the Unslung-able firmware and Debian. How to enable RAID support in Unslung-able. OpenSlug is capable of RAID support but nobody has tried it yet.

to:

Yes. With both the Unslung-able firmware How to enable RAID support in Unslung-able and Debian (summary below). OpenSlug is capable of RAID support but nobody has tried it yet.

August 24, 2009, at 09:59 AM by StarNamer -- Typo
Changed line 15 from:
  • Set type for new RAID partitions to fd IRAID autodetect)
to:
  • Set type for new RAID partitions to fd (RAID autodetect)
August 24, 2009, at 09:58 AM by StarNamer -- Added short instructions for Debian RAID
Changed lines 3-4 from:

Yes. But currently only with the Unslung-able firmware. How to enable RAID support in Unslung-able. OpenSlug is capable of RAID support but nobody has tried it yet.

to:

Yes. With both the Unslung-able firmware and Debian. How to enable RAID support in Unslung-able. OpenSlug is capable of RAID support but nobody has tried it yet.

Changed lines 9-26 from:

In order to make it work, make sure you have md and raid0,1,5 loaded into kernel.

to:

In order to make it work, make sure you have md and raid0,1,5 loaded into kernel.

For Debian (at least Lenny) the instructions at http://www.howtoforge.com/software-raid1-grub-boot-debian-etch work fine. Simply ignore the sections on Grub as update-initramfs reflashes the kernel and initramfs automatically and leave disks connected throughout the process. In summary (without details of each command):

  • Install mdadm and initramfs-tools
  • Use sfdisk or fdisk to partition the 2nd disk.
  • Set type for new RAID partitions to fd IRAID autodetect)
  • Use mdadm to create new RAID drives with missig first disk
  • mksf or mkswap as needed on new partitions
  • Save /etc/fstab and edit it to use /dev/md? (new RAID partitions)
  • Save existing flash (cp /dev/mtdblock* backup) and put it somewhere safe
  • update-initramfs -u to rebuild kernel and initramfs
  • Copy all data to new RAID partitions
  • Update /etc/mdadm/mdadm.conf on RAID array
  • Restore original /etc/fstab (just in case)
  • Reboot and you should be running from the degraded RAID arrays
  • Update partitions on 1st disk to type fd (make sure partition sizes are the same)
  • Use mdadm to add 1st disk partitions to RAID arrays
March 15, 2008, at 05:13 AM by zack --
Changed lines 7-9 from:

Raid1 is also working with DebianSlug (see http://wiki.nslu2-info.de/pmwiki.php/HowTo/DebianSlugRaid1 (German only)). The instructions are pretty much based on the Unslung Raid1 HowTo.

to:

Raid1 is also working with DebianSlug (see http://wiki.nslu2-info.de/pmwiki.php/HowTo/DebianSlugRaid1 (German only)). The instructions are pretty much based on the Unslung Raid1 HowTo.

In order to make it work, make sure you have md and raid0,1,5 loaded into kernel.

May 15, 2007, at 02:20 PM by fcarolo -- fixed false wiki links
Changed lines 5-6 from:

Steinar adds: I've tried RAID1? in OpenSlug 2.70 and 3.10 (on flash cards). It works fine and a raid device can even be used as the root file system. It requires the md and the raid (like raid1) kernel modules, mdadm and some simple editing in the boot files.

to:

Steinar adds: I've tried RAID1 in OpenSlug 2.70 and 3.10 (on flash cards). It works fine and a raid device can even be used as the root file system. It requires the md and the raid (like raid1) kernel modules, mdadm and some simple editing in the boot files.

May 13, 2007, at 09:08 AM by halfer -- Remove redundant apostrophe
Changed lines 1-2 from:

Can I use RAID?'

to:

Can I use RAID?

June 18, 2006, at 05:38 PM by PatrickSchneider -- Added note about Raid1 on DebianSlug
Added lines 6-7:

Raid1 is also working with DebianSlug (see http://wiki.nslu2-info.de/pmwiki.php/HowTo/DebianSlugRaid1 (German only)). The instructions are pretty much based on the Unslung Raid1 HowTo.

June 18, 2006, at 02:00 PM by Steinar Midtskogen -- Added OpenSlug comment
Added lines 4-5:

Steinar adds: I've tried RAID1? in OpenSlug 2.70 and 3.10 (on flash cards). It works fine and a raid device can even be used as the root file system. It requires the md and the raid (like raid1) kernel modules, mdadm and some simple editing in the boot files.

August 22, 2005, at 03:27 PM by tman --
Added lines 1-3:

Can I use RAID?'

Yes. But currently only with the Unslung-able firmware. How to enable RAID support in Unslung-able. OpenSlug is capable of RAID support but nobody has tried it yet.

view · edit · print · history · Last edited by Starnamer.
Based on work by Starnamer, StarNamer, zack, fcarolo, halfer, PatrickSchneider, and Steinar Midtskogen.
Originally by tman.
Page last modified on April 05, 2010, at 01:31 AM