Solved

SAS RAID and SATA drives assigned wrong address  ie. /dev/sda

Posted on 2008-10-17
8
1,786 Views
Last Modified: 2012-06-21
I am installing CentOS 5.2 on a Dell Power Edge 2950 with a SAS 6/ir controller (not a PERC card.)
I have 3 hard dives.  I wish to mirror the  first two drives and leave the third un-mirrored.  The OS will be on the mirror.

I can do all of the above fine, but CentOS is detecting the stand alone drive before the mirrored array.

Example:

Configuration with just the first two drives installed and morred:

mirror = /dev/sda


configuration with all three drives installed:

third drive - /dev/sda
mirror = /dev/sdb


Can anybody help me configure CentOS to assign the mirror before the stand-alone drive?
I called Dell support, thinking I was somehow missing an option in the SAS controller, but they weren't much help in solving the issue.  They recommending buying another drive or creating  a software mirror.
0
Comment
Question by:kelntaylor
  • 4
  • 3
8 Comments
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 22747627
Look at the address jumpers on each disk unit (i.e. the mirrored ones and the standalone). What do you see? How have you told the system which 2 disks to mirror?
Basically I think you want the standalone drive to have the lowest SCSI id, then the 2 mirrored disks. But somehow you have to configure that sdb mirrors sdc
0
 
LVL 3

Author Comment

by:kelntaylor
ID: 22748221
Duncan Roe,


All three drives are SATA drives, and have no jumpers for SCSI ID, I can configure the mirror in the bios of the SAS controller.  
I think you telling me to mirror the second and third drive instead of the first and second drive?  That would give expected behavior for now, but not when I add another disk in the future.

After updating the firmware and drivers for the controller, I noticed in this in Dell README.txt From Dell's driver readme:
5.3 SLES10/RHEL5 disk enumeration
---------------------------------
Both SLES10 and RHEL5 mptlinux device drivers enumerate unconfigured disks
ahead of virtual disks regardless of slot ordering. Additionally, under certain
circumstances virtual disks can be presented in reverse order of scan order.
While installing your operating system please pay close attention to which disk
is selected by the installeir as the target of your installation and which disk
is selected as the disk to install the boot loader and MBR onto.

So there may not be any hope. :(
0
 
LVL 3

Author Comment

by:kelntaylor
ID: 22748456
After more research it is looking like I shouldn't be worried about what order my hard drives are detected and enumerated.  As long as I use partition labels, it shouldn't matter. hmm.
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 34

Expert Comment

by:Duncan Roe
ID: 22750642
I'm not sure how that will go with booting either - it will be fine for you fstab though. You can configure LILO to boot off a RAID1 device (e.g. /dev/md0) - would that be any help?
LILO from 22.6 on can accept UUID= or LABEL= for the root partition, but not for boot = (current LILO is 22.8)
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 22751504
Please post what you did to get it working, especially as regards the boot configuration
0
 
LVL 3

Accepted Solution

by:
kelntaylor earned 0 total points
ID: 22751942
I didn't do much to get it working, other than get a better understanding of how it works.  The BIOS has no problem booting off my hardware raid device.  (which is not is not /dev/md0) the OS does not not know about the mirrored drives,  it only sees  them as one drive.  CentOS installed fine, as long as I was able to tell it which "drive" to install to.   I've never had a problem booting, I was more concerned with how things would misbehave when I installed more drives in the future.  I can see now that as long as I label partitions and don't reference device id's  (ie /dev/sda1) in /etc/fstab I shouldn't have any issues installing more drives.

0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 22753634
Ok - guess I was on the wrong track - go ahead and close
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

More or less everybody in the IT market understands the basics of Networking, however when we start talking about Storage Networks, things get a bit dizzier, and this is where I would like to help.
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now