LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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: Ubuntu 14.04
Posts: 21

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,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:25 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