Breaking News

Qualcomm Redefining Wireless Audio with Launch of Qualcomm Snapdragon Sound ASUS announces the ROG Strix, TUF Gaming and Dual AMD Radeon RX 6700 XT graphics card series Leica announces The APO-SUMMICRON-M 35 f/2 ASPH GIGABYTE Launches Radeon RX 6700 XT series graphics cards Samsung Announces Galaxy XCover 5, the Newest Durable and Advanced Smartphone Built for Tough Environments

logo

  • Share Us
    • Facebook
    • Twitter
  • Home
  • Home
  • News
  • Reviews
  • Forum
  • Legacy
  • About
    • Submit News

    • Contact Us
    • Privacy

    • Promotion
    • Advertise

    • RSS Feed
    • Site Map

Search form

Linux Raid Guide

Feb 14,2007 0

1. Introduction

 

Review Pages

1. Introduction
2. Partitioning
3. Kernel and modules
4. Making the array
5. Performance

 

Untitled Document

Have you ever lost precious files when your hard disk died suddenly? If yes, then you should know about RAID. For those who haven't heard of it, RAID is a Redundant Array of Inexpensive Disks, ie a way of arranging data on two (or more) disks in order to maximize performance and/or availability. There are many possible RAID setups, most of which are probably too excessive for home/desktop uses (if you need to ask, then you don't need it!). The simplest and most useful one is RAID 1 (mirroring), which maintains at all times a persistent copy of your data on two physical disks. If one disk fails, you can replace it without losing any data.  

Let me give you a real life example: On my 24/7 linux file and proxy server I had installed a RAID 1 mirror for the home directory. I hadn't checked the status of the server, but a friend of mine, who was using it regularly, complained of slower performance. Curious to check this out, I went on-site and realized that one disk had failed 15 days ago. I realize that I sound like a crappy sysadmin, but this was really a server for limited use by me and a few of my friends. Nevertheless, no data had been lost from the home directory, the machine had kept running and merely complained about the inability to do reads/writes on the second drive. I replaced the drive and the server was up and running in less than 30 minutes.  

The good news is that you can have a RAID setup under linux using only a software driver and two disks (same can also be done under XP, to be fair). Although you probably have a RAID controller on your motherboard, it's a less flexible solution and it's not going to be faster unless you invest on specialized hardware. Most on-board RAID controllers are not “true” hardware RAID.

I'm not going to give an extensive article on software RAID, there are special HOWTOs for that. I am going to show you how to install a very simple RAID-1 setup to protect crucial files (photos, documents and anything that is very hard to replace). You will need:  

  •  1.    Root access (!)
  •  2.    Two partitions of approximately the same size on separate hard drives. If you're going to use PATA disks, the drives should be connected to different channels, ie not on the same ribbon cable. The location and the number of the partitions do not matter. Neither does it matter if one drive is SATA and the other PATA or SCSI. Any combination can work, including drives from different makers, different sizes and different speeds.
  •  3.    A recent linux kernel, preferrably newer than 2.6.16 with the appropriate modules. Most probably, your distribution already includes them by default. Note that software RAID has been available for a very long time under Linux, I had been running RAID-0 with 2.2 series kernels.
  •  4.    The mdadm software.  

We will take these steps one by one and in very little time you'll have a “safe” RAID-1 partition that you can use for your most important files.

 

Review Pages

1. Introduction
2. Partitioning
3. Kernel and modules
4. Making the array
5. Performance

 

Pages

  • 1
  • 2
  • 3
  • 4
  • 5
  • next ›
  • last »

Linux

Tags: Linux
Previous Post
Motorola Q (Sprint Moto Q)
Next Post
Asus P5W64WS Pro

Related Posts

  • System76's Lemur Pro Linux Laptop Now Available

  • System76 Is Designing Its Own Keyboard

  • Microsoft Brings Microsoft Defender ATP to Linux, iOS and Android

  • Tuxedo Computers and Manjaro Team Up on New Linux Laptops

  • Huawei Unveils The openEuler CentOS-based Linux Distribution

  • Lazarus Group Targets Linux With New Malware

  • Microsoft Teams Available on Linux

  • Chromebooks to Run Linux Out of the Box

Latest Reviews

External USB Slim Recorders Comparison
Optical Storage

External USB Slim Recorders Comparison

Stellar Data Recovery (Windows Edition)
Enterprise & IT

Stellar Data Recovery (Windows Edition)

Whats best for you MAC or PC?
Enterprise & IT

Whats best for you MAC or PC?

HLDS portable DVD Android external Recorder
Optical Storage

HLDS portable DVD Android external Recorder

Crucial X6 2TB portable SSD
PC components

Crucial X6 2TB portable SSD

Popular News

Samsung Releases New Flash Laptop

Samsung Releases New Flash Laptop

Facebook Unveils New Technology to Fight Child Exploitation

Facebook Unveils New Technology to Fight Child Exploitation

Samsung's Next Smartphone foray: Galaxy S10, 5G, Folding Phones

Samsung's Next Smartphone foray: Galaxy S10, 5G, Folding Phones

YouTube to Invest $20m in Educational Creators

YouTube to Invest $20m in Educational Creators

Samsung HMD Odyssey+ Mixed Reality Headset Comes WithTwo 3.5-inch AMOLED Displays

Samsung HMD Odyssey+ Mixed Reality Headset Comes WithTwo 3.5-inch AMOLED Displays

Twitter's Ad Sales Surge

Twitter's Ad Sales Surge

Japanese Wireless Carriers to Cut iPhone XR Price: report

Japanese Wireless Carriers to Cut iPhone XR Price: report

Google To Deliver Personalized Audio News Lists Through AI Assistant

Google To Deliver Personalized Audio News Lists Through AI Assistant

  • Home
  • News
  • Reviews
  • Forum
  • Legacy
  • About
    • Submit News

    • Contact Us
    • Privacy

    • Promotion
    • Advertise

    • RSS Feed
    • Site Map
  • About
  • Privacy
  • Contact Us
  • Promotional Opportunities @ CdrInfo.com
  • Advertise on out site
  • Submit your News to our site
  • RSS Feed