LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-24-2009, 06:57 PM   #1
rolnik
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
Software RAID on ubuntu


Folks.
I have a 4 disk RAID5 with an extra disk used as a spare, and designated as such with mdadm. Does anyone know what happens when one of the four fails through natural attrition? Does the spare automatically come online, or does the admin have to use mdadm to 'fail' the disk that isn't working correctly?

Second question. Lets say that there is a power outage (or my battery backup isn't fully charged). How do I make the write-intent bitmap persistent between reboots. Right now I have to manually do a mdadm --bitmap=/tmp1/md2bitmap (or similar command) to tell the drives to track this info after every boot. If resyncing occurs on reboot, how will the drives know that they only have to reconcile according to the bitmap?

Perhaps there is a config file I should be pairing the /dev/md2 RAID array with the bitmap? I don't see how to do it using mdadm.conf.

Thanks.
 
Old 10-01-2009, 05:32 AM   #2
hexahost
LQ Newbie
 
Registered: Oct 2008
Location: Chennai - INDIA
Distribution: CentOS
Posts: 10

Rep: Reputation: 0
First of all /etc/mdadm/mdadm.conf is a automatically created file. This is not a standard configuration file that md service will read configurations from. It is a file generated when you use mdadm commands.
Using command line is the recommended one.

Refer : http://ubuntuforums.org/showthread.php?t=408461

Just my two cents.
 
Old 10-01-2009, 06:59 AM   #3
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
Only time you need to mess with /etc/mdadm/mdadm.conf is with LiveCD when you need to access your underlying RAID and there is problem with it, so LiveCD is unable to mount it. There is explanation of this process somewhere on the internet.

Take a look at this examples , particulary 6. 7. and 8.

From Linux RAID Wiki, section 1.4, RAID 5:
Quote:
If one of the disks fail, all data are still intact, thanks to
the parity information. If spare disks are available,
reconstruction will begin immediately after the device failure.
If two disks fail simultaneously, all data are lost. RAID-5 can
survive one disk failure, but not two or more.

BTW, there are experts that recommend avoiding RAID 5 since random writes are very slow, and that two disk failures will bring the RAID down for good:
http://en.wikipedia.org/wiki/RAID_5#RAID_5 You might be better of with RAID 6. It has all the benefits od RAID 5, but it also has double parity and instead of having spare disk and waiting for RAID rebuild, you are actually using that disk to provide redunancy even if two disks fail together.

Last edited by DrLove73; 10-01-2009 at 07:28 AM.
 
  


Reply

Tags
mdadm, software raid


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Software RAID on Ubuntu 8.10 desktop peterhocking Ubuntu 2 03-30-2009 03:13 AM
Software RAID, Ubuntu, and Grub problem rookiepaul Linux - Server 9 08-22-2008 03:35 PM
LXer: Install Ubuntu With Software RAID 10 LXer Syndicated Linux News 0 08-20-2008 03:20 PM
Adding an old software-RAID array to a software-RAID installation.. Boot problems GarethM Linux - Hardware 2 05-05-2008 03:16 PM
What Software To Use for Cloning FreeBSD 5.3 Raid Disk to Ubuntu 6.10 120GB Sata irukandji Linux - Newbie 0 12-15-2006 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration