LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Tags used in this thread
Popular LQ Tags , , ,

Reply
 
Thread Tools
Old 09-24-2009, 07:57 PM   #1
rolnik
LQ Newbie
 
Registered: Sep 2009
Posts: 1
Thanked: 0
Software RAID on ubuntu


[Log in to get rid of this advertisement]
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.
windows_vista rolnik is offline     Reply With Quote
Old 10-01-2009, 06:32 AM   #2
hexahost
LQ Newbie
 
Registered: Oct 2008
Location: Chennai - INDIA
Distribution: CentOS
Posts: 10
Thanked: 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.
windows_xp_2003 hexahost is offline  
Tag This Post , , ,
Reply With Quote
Old 10-01-2009, 07:59 AM   #3
DrLove73
Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.4 i386
Posts: 293
Thanked: 20
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 08:28 AM..
linux DrLove73 is online now     Reply With Quote

Reply

Bookmarks


Thread Tools

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 04:13 AM
Software RAID, Ubuntu, and Grub problem rookiepaul Linux - Server 9 08-22-2008 04:35 PM
LXer: Install Ubuntu With Software RAID 10 LXer Syndicated Linux News 0 08-20-2008 04:20 PM
Adding an old software-RAID array to a software-RAID installation.. Boot problems GarethM Linux - Hardware 2 05-05-2008 04: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 11:33 AM


All times are GMT -5. The time now is 08:24 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration