Escolar Documentos
Profissional Documentos
Cultura Documentos
Contents
1. Introduction
2. Requirements
3. Installing via the GUI
1. Partitioning the disk
4. Configuring the RAID
5. Boot Loader
6. Boot from Degraded Disk
7. Verify the RAID
8. Troubleshooting
9. Swap space doesn't come up, error message in dmesg
10. Using the mdadm CLI
11. Checking the status of your RAID
12. Disk Array Operation
13. Known bugs
1. Resources
Introduction
RAID is a method of using multiple hard drives to act as one. There are two purposes of RAID:
1. Expand drive capacity: RAID 0. If you have 2 x 500 GB HDD then total space become 1 TB.
2. Prevent data loss in case of drive failure: For example RAID 1, RAID 5, RAID 6, and RAID 10.
There are three ways to create a RAID:
1. Software-RAID: Where the RAID is created by software.
2. Hardware-RAID: A special controller used to build RAID. Hardware RAID is generally faster,
and does not place load on the CPU, and hardware RAID can be used with any OS
3. FakeRAID: Since RAID hardware is very expensive, many motherboard manufacturers use
multi-channel controllers with special BIOS features to perform RAID. This is a form of software
RAID using special drivers, and it is not necessarily faster than true software RAID.
Read FakeRaidHowto for details.
Requirements
1. If you're building a server, the server install ISO includes the necessary options.
2. If you're building a desktop then you need the "Alternate" install ISO for Ubuntu. Read Getting
Ubuntu Alternate Install diskand How to do a Ubuntu Alternate Install
3. How to Burn an ISO
4. Enough drives to meet the requirements of the RAID.
2. Select your hard drive, and agree to "Create a new empty partition table on this device ?"
3. Select the "FREE SPACE" on the 1st drive then select "automatically partition the free space
4. Ubuntu will create 2 partitions: / and swap, as shown below:
Boot Loader
In case your next HDD won't boot then simply install Grub to another drive:
grub-install /dev/sdb
grub-install /dev/sdc
Troubleshooting
Swap space doesn't come up, error message in dmesg
Provided the RAID is working fine this can be fixed with:
sudo update-initramfs -k all -u
Known bugs
Ubuntu releases starting with 12.04 does not support nested raids like levels 1+0 or 5+0 due to an unresolved
issue https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/1171945
Resources
1. http://manpages.ubuntu.com/manpages/trusty/man8/mdadm.8.html
2. https://wiki.ubuntu.com/HotplugRaid Keeping your data synced and mirrored on external drives.
3. http://en.wikipedia.org/wiki/RAID
4. http://en.wikipedia.org/wiki/Mdadm
Installation/SoftwareRAID (last edited 2015-09-12 06:06:22 by Matt)
The material on this wiki is available under a free license, see Copyright / License for details
You can contribute to this wiki, see Wiki Guide for details