Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2008-10-17
8
Medium Priority
?
1,832 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 35

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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 35

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 35

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 35

Expert Comment

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

Featured Post

Amazon Web Services EC2 Cheat Sheet

AWS EC2 is a core part of AWS’s cloud platform, allowing users to spin up virtual machines for a variety of tasks; however, EC2’s offerings can be overwhelming. Learn the basics with our new AWS cheat sheet – this time on EC2!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

671 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