LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-19-2011, 06:53 AM   #1
Orangutanklaus
Member
 
Registered: May 2006
Posts: 93

Rep: Reputation: 15
Angry block device names change after reboot (sometimes^^)


Hiho!

I have a problem. I built a Raid5 volume with 3 SATA II hard disk drives. Further I have a system disk conected through IDE. During the first setup the IDE disk becomes sda, the SATA II disk sd[bcd] respectively. Now, sometimes the device names change after reboot - why ever... E.g. one of the raid5 disk become sda and so I got an error message during the boot procedure regarding the raid set.

Curious, when the system is up and I stop and restart the Raid5 volume it comes up and runs fine. ^^

Because I'm currently at work I can't post any more detailed config files at the moment. But maybe this is an know issue and someone can help me already.

Regards
OK
 
Old 01-19-2011, 07:21 AM   #2
zer0signal
Member
 
Registered: Oct 2010
Location: Cleveland
Distribution: Slackware, Fedora, RHEL (4,5), LFS 6.7, CentOS
Posts: 258

Rep: Reputation: 29
Because USB and other Harddrive devices can be dynamic, and the "/dev/sd*" is not guaranteed on each boot. Use the UUID mount opiton, the UUID is assigned to each device based on what HAL gives it. The UUID will always be the same on every boot for that device.



To check what UUID was given to the USB drive or ANY other Disk attatched to the system

ls -l /dev/disk/by-uuid/

Check what UUID is linked to the "/dev/sd*" you are looking for.

Then edit/create an entry for it in your FSTAB

vi /etc/fstab

Entry looks like this;

UUID=5EA6A6DFA6A6B6C5 /mountpt type defaults 0 0

Last edited by zer0signal; 01-19-2011 at 07:22 AM.
 
Old 01-19-2011, 09:38 AM   #3
Orangutanklaus
Member
 
Registered: May 2006
Posts: 93

Original Poster
Rep: Reputation: 15
This sounds like a good tip. I'm going to check it when I'm at home. But I still don't understand why the system can start the Raid5 volume without any problems - although the device names are still "incorrectly" - after I stop & start it manually. I thought the parameter DEVICE partition in the mdadm.conf should check for valid raid information on all partitions and start the correct Raid volume automatically.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] With new kernel the device names are changed and lilo still looks for old device timetraveler Slackware 10 04-30-2010 02:15 PM
Hard disks change device on reboot? tea of evil Ubuntu 1 12-17-2008 12:14 PM
block device file delet after reboot from /dev viral_Ahire Linux - Software 2 03-15-2008 08:43 AM
Block device /dev/sda3 is not a valid root device.. rincewind Linux - Hardware 7 06-09-2006 04:47 AM
Logical device names and instant names Gins Linux - General 8 11-30-2004 08:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:57 PM.

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