LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-12-2007, 09:30 PM   #1
PhillipHuang
Member
 
Registered: Aug 2006
Location: Shen Zhen
Distribution: Ubuntu 22.04
Posts: 199

Rep: Reputation: 33
softraid-1: Disk name changes when plug in


Hi folks,

I meet a strange problem in 2.6.19 kernel. When I used mdadm(version 2.5.6-9) to create soft raid, for example,
There're two SATA disks, which is recognized by the "/proc/scsi/scsi" as "1:0:0:0" and "2:0:0:0". Use these two disks to create softraid-1:

Code:
# mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1
When the array is created successful, I try to plug out the "/dev/sda" disk. Yes, "mdadm --detail /dev/md0" immediately indicates the array is degraded and remove "/dev/sdb" entry.

It's very interesting here! when I plug back the former "/dev/sdb" to enclosure again, the system recognizes it as "/dev/sdc", however, its scsi ID 2:0:0:0 does not change. Of course the array is still degraded.

In 2.4 kernel, when I repeat the same steps, the re-back "/dev/sdb" is able to recognized as "/dev/sdb" without changing disk name.

How could this happen in 2.6.19 kernel? How could I make the system recognize its old name?

Please give me some hints.

Thanks in advanced.
-Phillip
 
Old 02-13-2007, 01:51 PM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
You don't say on which distro you have this problem, but if device names are given by udev, you can add rules to achieve persistent naming (see here).
 
Old 02-13-2007, 09:30 PM   #3
PhillipHuang
Member
 
Registered: Aug 2006
Location: Shen Zhen
Distribution: Ubuntu 22.04
Posts: 199

Original Poster
Rep: Reputation: 33
Hi uselpa,

Thanks for your help. The underlying operating system is CentOS 4.4.
I'll read the manual and try it later.

Regards,
Phillip

Last edited by PhillipHuang; 02-13-2007 at 09:31 PM.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
floppy only reads first disk, if new disk is inserted data from first disk is shown. lakosked Debian 3 02-18-2006 08:44 PM
Linux SoftRAID using ATA and SATA dop Linux - Hardware 2 06-11-2005 03:07 AM
Plug-ins, Plug-ins, Plug-ins, those damn Plug-ins!! GRRRR!! Ausar Linux - Newbie 1 06-09-2004 03:10 PM
poor softRAID 0 performance with kernel 2.6.x hcb Linux - General 1 02-03-2004 02:09 AM
Plug in help krackerroot Linux - Software 16 10-14-2003 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:56 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