Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev, stop remapping my raid array! [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
danomac
l33t
l33t


Joined: 06 Nov 2004
Posts: 818
Location: Vancouver, BC

PostPosted: Tue Jun 24, 2008 8:34 pm    Post subject: udev, stop remapping my raid array! [solved] Reply with quote

Subject pretty much says it all... :lol:

I have a rocketraid2320 card with 6 drives in a raid5. The rocketraid card is okay, nothing wrong.

However, udev periodically renames the raid array! Sometimes it's /dev/sde, others it's /dev/sdf or /dev/sdg. This is driving the initscripts crazy as (of course) it fails to mount things.

No big deal, I figured I'll just use its UUID. I used blkid to get it and modified the /etc/fstab to suit. However, it still fscks up... when the drive got remapped there was two UUID entries for the raid array, and the initscripts used the wrong one to try to mount it and hilarity ensued (I don't think I've ever seen so many error messages!)

Does anyone have a reference somewhere on how to map this statically? Ideally, I'd like to rename it /dev/sdr or something so it won't get jumbled around.

I've noticed one of the issues is when I leave my usb key in. However, I would not have thought it would continually remap a device like that.


Last edited by danomac on Thu Jun 26, 2008 3:06 am; edited 1 time in total
Back to top
View user's profile Send private message
hitachi
Guru
Guru


Joined: 20 Feb 2006
Posts: 466

PostPosted: Wed Jun 25, 2008 6:29 am    Post subject: Reply with quote

Hi,
you could try to write your own udev rule. I did it for my usb stuff.
http://www.gentoo.org/doc/en/udev-guide.xml
http://www.reactivated.net/writing_udev_rules.html
_________________
Athlon 64 X2 3800+
Micro-ATX-Mainboard in einer OEM-Version von Asus mit Nvidias nForce4 (A8NE-FM/S).
PEG-Grafikkarte von Leadtek mit Nvidia GeForce 6600
3 GB RAM
350-Watt-Netzteil (von Fortron/Source)
4 x 500GB S-ATA HDD (raid1 und raid5)
Back to top
View user's profile Send private message
danomac
l33t
l33t


Joined: 06 Nov 2004
Posts: 818
Location: Vancouver, BC

PostPosted: Thu Jun 26, 2008 3:05 am    Post subject: Reply with quote

Thanks, I couldn't remember that URL (although I guess I could have googled it...)

This rule did if for me (I only have one highpoint card):

Code:

KERNEL=="sd*", SUBSYSTEMS=="scsi", ATTRS{vendor}=="HPT     ", SYMLINK+="hpt%n"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum