LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 05-06-2008, 10:54 AM   #1
tbeehler
Member
 
Registered: Aug 2003
Location: Washington State, USA
Distribution: Mainly RH 9.0
Posts: 226

Rep: Reputation: 30
Force /dev/sdX? to remain?


Hello all,

I have Ubuntu server 8.04, and I am running mdadm with 4 drives as well as the system drive. It looks like below

/dev/sda1 - 500gb Raid 5
/dev/sdb1 - 500gb Raid 5
/dev/sdc1 - 500gb Raid 5
/dev/sdd1 - 500gb Raid 5
/dev/sde1 - 120gb system drive

What happens is, is that when I remove a drive to test the raid array, the "drive letters" get all screwy.

So, for example, if I remove /dev/sda1 and reboot (testing failures)

it becomes:

/dev/sda1 - 500gb Raid 5
/dev/sdb1 - 500gb Raid 5
/dev/sdc1 - 500gb Raid 5
/dev/sdd1 - 120gb system drive

Which sends mdadm into a hissy fit and won't rebuild my array. When I put the drive back, it's like it sees it's previous drive failure and refuses to rebuild.

So my question is, is there a way to say /dev/sde1 is ALWAYS the 120gb system drive, regardless of drives that are present when the machine is up? Thanks for all your help in advance!
 
Old 05-08-2008, 04:04 PM   #2
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377

Rep: Reputation: 46
i think if you make the system drive "master", you can make it always be /dev/sda1. maybe it will need some bios settings on the hd management, too, but i'm not sure.
 
Old 05-08-2008, 04:29 PM   #3
tbeehler
Member
 
Registered: Aug 2003
Location: Washington State, USA
Distribution: Mainly RH 9.0
Posts: 226

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by TITiAN View Post
i think if you make the system drive "master", you can make it always be /dev/sda1. maybe it will need some bios settings on the hd management, too, but i'm not sure.

Thanks! I found my issue and resolved it today.

For some reason, mdadm wasn't seeing every drive properly. So, I did a mdadm --assemble --scan and it rebuilt my raid array. Then I did a mount -a and saw all the data. Once that was done, I put the "failed" drive back, and ran mdadm -a /dev/md0 /dev/sdb and rebuilt my array.

All of this was for testing because I didn't want to run into issues when I put it into production.

We're a small 40 person shop, and this is the first raid array that's going into a server (I've got GREAT backups. ), so I just wanted to be absolutely sure about my array before I made it live.

Thank you all for your help!
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IDE drives detected as /dev/sdX - Grub Fails Fedora 8 kushalkoolwal Fedora 3 04-08-2008 06:36 PM
/dev/sdx question Fill Linux - Newbie 3 10-05-2007 06:31 AM
How do I change the /dev/sdx number of a drive ? Christof999 Linux - Hardware 1 06-08-2007 03:29 PM
USB Drive - Static /dev/sdx Nodes in 2.4.x? Ruler2112 Linux - Hardware 1 01-26-2007 10:20 AM
Lock different external drives to a set device name ? (/dev/sdX) Dark Carnival Linux - Hardware 5 10-20-2006 10:42 PM


All times are GMT -5. The time now is 02:36 AM.

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