collapse collapse

Advertisment

* Chat

Refresh History
  • jho: it's alive :O
    December 20, 2015, 02:19:45 PM
  • Nathan: @jho Haha it is indeed still alive
    December 20, 2015, 08:57:14 PM
  • Nathan: oh my god - reverse order for the shoutbox - MUCH BETTER
    December 20, 2015, 08:59:12 PM
  • Celestialkey: It does, but the charm is lost of having to scroll forever :(
    January 15, 2016, 05:43:04 PM
  • GodLord: Key and Nathan! It has been so long!
    March 24, 2016, 08:12:45 PM
  • Nathan: Welcome back!
    March 24, 2016, 09:52:02 PM
  • Celestialkey: Still surviving!
    March 25, 2016, 09:24:35 PM
  • Celestialkey: It's been a while
    March 25, 2016, 09:24:46 PM
  • Celestialkey: Welcome back!
    March 25, 2016, 09:24:54 PM
  • IonDuel: Well, Hello there.
    May 26, 2016, 01:17:24 PM
  • Nathan: Oh by the way - I started my own business - Allos Technologies, LLC :)
    June 16, 2016, 05:52:14 PM
  • Nathan: It's a bonafide real registered business
    June 16, 2016, 05:52:34 PM
  • Nathan: I have an office in Lockport, IL so if anyone is in the area feel free to stop by
    June 16, 2016, 05:52:58 PM
  • Celestialkey: If I'm in IL, I'll drop in.
    June 23, 2016, 02:18:55 PM
  • Celestialkey: I'm traveling a LOT more now for business anyhow (5 states in 6 months)
    June 23, 2016, 02:19:11 PM
  • Shishka: Whats uppppp
    August 25, 2016, 11:29:22 AM
  • Shishka: Darn was hoping that was Lockport , NY. I'm close to that
    August 25, 2016, 11:30:12 AM
  • Celestialkey: "P
    August 25, 2016, 10:01:44 PM
  • Celestialkey: :P*
    August 25, 2016, 10:01:49 PM
  • Shishka: :P
    September 06, 2016, 12:09:06 PM

* Articles

* Who's Online

  • Dot Guests: 41
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Board Stats

  • stats Total Members: 85
  • stats Total Posts: 11162
  • stats Total Topics: 1698
  • stats Total Categories: 4
  • stats Total Boards: 76
  • stats Most Online: 196

Author Topic: Linux RAID Intro  (Read 8341 times)

0 Members and 1 Guest are viewing this topic.

Offline Nathan

  • Administrator
  • Hero Member
  • *
  • Posts: 1437
  • Reputation 1768
  • Gender: Male
  • woof woof
    • View Profile
Linux RAID Intro
« on: December 19, 2009, 10:58:14 PM »
(Don't know where this should go)

First off -
You should wipe the file system info on the drive(s) you want to use in the RAID. This is becuase you are going to format the RAID not the drive.
Please do consider you can RAID partitions or whole disks. It is advised to RAID the whole disk.

Code: Bash
  1. # dd if=/dev/zero bs=1M count=1 of=/dev/sdL#
Where L = letter and # = number

Now lets create the array
Code: Bash
  1. # mdadm --create --verbose /dev/md0 --level=# --raid-devices=# /dev/sdL#
This tells mdadm what drives you want to be in the array, and what RAID level you are going to use.

Once the RAID is created -

To get some detail on the RAID
Code: Bash
  1. # mdadm --detail /dev/md0
Or
Code: Bash
  1. # cat /proc/mdstat

Now you need to actually format the RAID.
Code: Bash
  1. # mkfs.ext3 /dev/md0

To remove a drive from an array (because it failed)
Code: Bash
  1. # mdadm --manage --set-fault /dev/md0 /dev/sdL#
  2. # mdadm /dev/md0 -r /dev/sdL#
You must set it faulty before you can remove it!

To stop the array
Code: Bash
  1. # mdadm --stop /dev/md0

I orignally used to to RAID 2 network block devices, which didn't pan out too well...but it did work!

Some Links:
How to remove an MDADM Raid Array, Once and For All! - http://ubuntuforums.org/showthread.php?t=884556
Managing RAID and LVM with Linux (v0.5) - http://www.gagme.com/greg/linux/raid-lvm.php
Growing a RAID5 array MDADM - http://scotgate.org/2006/07/03/growing-a-raid5-array-mdadm/
The Software-RAID HOWTO - http://tldp.org/HOWTO/Software-RAID-HOWTO.html
Projects:
[ Axios Engine ] [ sourcehub ]
Compilers: Microsoft Visual Studio 2008, GNU C++, FASM, MASM, VB 6/.Net.
Languages: C++, PHP, ASM, JS, VB6/.Net, BASIC, HTML, MySQL
Please buy me some books: Amazon Wishlist

Offline Celestialkey

  • Administrator
  • Hero Member
  • *
  • Posts: 3962
  • Reputation 4874
  • Gender: Male
  • Its Alive!!
    • View Profile
    • www.CelestialCoding.com
Re: Linux RAID Intro
« Reply #1 on: December 19, 2009, 11:15:24 PM »
Hardware/Software support. You can decide.
Created By: Eczuo
Quote
I have noticed that people who claim that everything is predestined, and we can do nothing to change it, look both ways before they cross the road.
Quote
I'd prefer to die standing, than to live on my knees - Che Guevara
Quote
If you change the way you look at something, does that something change in any way?
- Quantum Theory

Hacking
Quote
Never in the field of human conflict was so much owed by so many to so few. - Winston Churchill


Quote from: Revelations 12:4
And his tail drew the third part of the stars of heaven, and did cast them into the earth; and the dragon stood before the woman which was ready to be delivered, for to devour her child as soon as it was born.

Quote
It takes skill to build an empire. It takes an idiot to maintain it.

Offline Nathan

  • Administrator
  • Hero Member
  • *
  • Posts: 1437
  • Reputation 1768
  • Gender: Male
  • woof woof
    • View Profile
Re: Linux RAID Intro
« Reply #2 on: December 20, 2009, 11:11:18 AM »
Hardware/Software support. You can decide.
Perhaps we need a Linux section?
Projects:
[ Axios Engine ] [ sourcehub ]
Compilers: Microsoft Visual Studio 2008, GNU C++, FASM, MASM, VB 6/.Net.
Languages: C++, PHP, ASM, JS, VB6/.Net, BASIC, HTML, MySQL
Please buy me some books: Amazon Wishlist

Offline Celestialkey

  • Administrator
  • Hero Member
  • *
  • Posts: 3962
  • Reputation 4874
  • Gender: Male
  • Its Alive!!
    • View Profile
    • www.CelestialCoding.com
Re: Linux RAID Intro
« Reply #3 on: December 20, 2009, 11:27:49 AM »
Lol, go ahead and make it. I don't have the time atm.
Created By: Eczuo
Quote
I have noticed that people who claim that everything is predestined, and we can do nothing to change it, look both ways before they cross the road.
Quote
I'd prefer to die standing, than to live on my knees - Che Guevara
Quote
If you change the way you look at something, does that something change in any way?
- Quantum Theory

Hacking
Quote
Never in the field of human conflict was so much owed by so many to so few. - Winston Churchill


Quote from: Revelations 12:4
And his tail drew the third part of the stars of heaven, and did cast them into the earth; and the dragon stood before the woman which was ready to be delivered, for to devour her child as soon as it was born.

Quote
It takes skill to build an empire. It takes an idiot to maintain it.

 

Donate


* Search


* Recent Posts

Re: srchub - free source code hosting by Nathan
[December 14, 2015, 11:37:02 PM]


Re: srchub - free source code hosting by Celestialkey
[November 27, 2015, 08:51:42 AM]


Updates by Nathan
[October 30, 2015, 08:27:36 PM]


Re: Client-Server Messaging by Nathan
[October 25, 2015, 05:48:57 PM]


Client-Server Messaging by Jake
[October 25, 2015, 01:57:52 AM]