Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 07-15-2010, 01:47 PM   #1
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
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
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,823

Rep: Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611Reputation: 611
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.


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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:14 PM.

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