Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 7th February 2008, 12:54 PM
ppolz Offline
Registered User
 
Join Date: Dec 2004
Posts: 8
SW Raid - dev mapping

Hello
I need some Help please

I have a SW Raid 1 with Sata Disks. The disks maps on /dev/sdc and /dev/sdd. Yesterday another disk on /dev/sdb fails. Now the disks of the Raid changes to /dev/sdb and /dev/sdc. As result the Raid fails on startup becaus it was searching for sdc and sdd.

How can i map static to a SATA Interface, that there would be no errors on startup.

Thx
Peter

PS.: Sorry for my englisch
Reply With Quote
  #2  
Old 7th February 2008, 02:25 PM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
Correct me if my understanding is incorrect.

You now want to start RAID devices on /dev/sdb and /dev/sdc instead of /dev/sdc and /dev/sdd.

You may give this a try

Code:
vi /etc/mdadm.conf or /etc/mdadm/mdadm.conf 

DEVICE /dev/sdb /dev/sdc

ARRAY /dev/md0 devices=/dev/sdb,/dev/sdc
refer man mdadm and man mdadm.conf

Edit: you can also start raid device manually without the config file, try mdadm -A /dev/md0 /dev/sdb /dev/sdc
Reply With Quote
  #3  
Old 9th February 2008, 11:42 AM
ppolz Offline
Registered User
 
Join Date: Dec 2004
Posts: 8
I already know how to build a raid. The Problem is that i have a raid 10 of 4 drives and 4 extra drives. Sometimes i have to remove some of the extra drives for maintainance. After a reboot fedore moves the dev/sd[x] of all drives an the raid doesn't reboot because of wrong "dev's" in mdadm.conf.
Now i want do add statc devices for raid. A solution i found was to add some udev rules, but this doesn't seem to work fine for me. I think this should have to be a common Problem.
Reply With Quote
  #4  
Old 9th February 2008, 04:52 PM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
So I'm guessing a configuration like this in mdadm.conf does NOT work for you?
Code:
ARRAY /dev/md0 UUID=3aaa0122:29827cfa:5331ad66:ca767371

Last edited by notageek; 9th February 2008 at 05:13 PM.
Reply With Quote
  #5  
Old 9th February 2008, 05:24 PM
ppolz Offline
Registered User
 
Join Date: Dec 2004
Posts: 8
I 've tried it , but without
Code:
DEVICE /dev/sdc1 /dev/sdd1
it doesn't work for me
Reply With Quote
  #6  
Old 9th February 2008, 11:35 PM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
How about
Code:
DEVICE /dev/sd[abcdjkl]1
or
Code:
DEVICE /dev/sd[a-z][1-9]
Globbing all possible devices.

Last edited by notageek; 10th February 2008 at 01:30 AM.
Reply With Quote
  #7  
Old 10th February 2008, 02:58 PM
ppolz Offline
Registered User
 
Join Date: Dec 2004
Posts: 8
Smile Solved

Code:
DEVICE /dev/sd[abcdjkl]1
or
DEVICE /dev/sd[abcdjkl]1
I don't know why but i doesn't work, But I solved it with some udev rules. Now i map the SATA inputs to

Code:
/dev/cont/sata1
/dev/cont/sata2
/dev/cont/sata3
/dev/cont/sata4
and added them to mdadm.conf. It seems to work fine now.

thx, Peter
Reply With Quote
Reply

Tags
dev, mapping, raid

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard mapping eliashickman Using Fedora 3 8th September 2009 03:17 PM
Mapping Windows key movilogo Using Fedora 3 8th February 2009 07:33 PM
Keboard Mapping awerner Using Fedora 0 22nd February 2008 09:38 AM
NFS user mapping drhilbert Servers & Networking 2 13th July 2007 10:00 AM
sg0 mapping problem in FC2 C.H. Hardware & Laptops 0 31st January 2005 08:42 AM


Current GMT-time: 00:35 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat