LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-15-2010, 01:47 PM   #1
newbie_0404
LQ Newbie
 
Registered: May 2010
Posts: 13

Rep: Reputation: 0
How to maintain RAID disk order


Hello everyone,
I have a system with data stored in multiple disk arrays. I have to come up with a solution that will maintain the disk order of the arrays whenever a stripe fails, is removed and then put back in. One solution I came up with was to stamp every stripe with the disk array it belongs to along with its stripe id. I plan to put this stamp in the last 512 KB of each disk. And I maintain all this information in a sqlite database, that is disk array, stripe id, the software diskname, etc. So that whenever a disk is replaced, its stamp could be read and the corresponding entries in the database are updated. Has anyone worked on something similar ? Or can anyone think of a better solution ?
 
Old 07-15-2010, 02:44 PM   #2
mitchd123
LQ Newbie
 
Registered: Jan 2009
Distribution: Gentoo 2.6.27
Posts: 16

Rep: Reputation: 0
The possible downside of writing to the disk is what to do if a drive fails, or worse case two drives in an array fail. You might instead think about dumping out a hdparm -iv /dev/sd[a-z] |grep Serial hdparm could provide unique info like the drive maker and serial number which may be physically visible when you replace a failed drive. You might follow the command with a mdadm --examine /dev/sd[a-z]1 (or similar) to pull UUID, state, size, date, checksum, etc.
 
Old 07-15-2010, 02:45 PM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,610

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
Don't most RAID controllers do their own identification and will automatically recover when you put disks back in in the wrong order? I know I've seen Dells do it.
 
  


Reply

Tags
linux, raid, ubuntu


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
LXer: BleachBit - Cleans unnecessary files to free disk space and maintain privacy LXer Syndicated Linux News 1 02-22-2013 12:42 PM
System suddenly changing disk order from BIOS order hscast Fedora 2 02-16-2010 09:09 PM
[SOLVED] Software RAID (mdadm) - RAID 0 returns incorrect status for disk failure/disk removed Marjonel Montejo Linux - General 4 10-04-2009 06:15 PM
managing order and names for hd in a raid gettons1980 Linux - Hardware 3 07-05-2008 05:20 PM
raid mdadm reiser, possibly boot order? DigitalSmash Debian 5 11-10-2004 03:26 AM


All times are GMT -5. The time now is 01:27 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration