home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] Problem with SATA and SCSI disks in the same computer.

  • Subject: Re: [OCLUG-Tech] Problem with SATA and SCSI disks in the same computer.
  • From: Stephen Gregory <oclug [ at ] kernelpanic [ dot ] ca>
  • Date: Thu, 2 Aug 2007 12:08:44 -0400
On Thu, Aug 02, 2007 at 11:12:14AM -0400, Charles Nadeau wrote:
> I transfered a SCSI card, a DLT tape drive and four hard drives to a
> computer already having three SATA drives named /dev/sda, /dev/sdb and
> /dev/sdc. When I boot the computer, 3 of the SCSI drives becomes /dev/sda,
> /dev/sdb and /dev/sdc overridding my 3 SATA drives names and wreaking my
> RAID arrays.

The raid arrays should be detected automatically regardless of which
drive names (sda,sdf,etc) contain them. I would guess that your
problem is that the MD tools get confused when it comes time to
monitor the array. Debian populates a '/dev/disk/by-id' tree via udev
that should work with the md tools. Does your distro populate this
tree? On one of my systems it looks like:

$ ls /dev/disk/by-id
ata-Hitachi_H0000000-S0000000000000
ata-Hitachi_H0000000-S0000000000000-part1
ata-Hitachi_H0000000-S0000000000000-part2
scsi-SATA_Hitachi_H000000_S0000000000000
scsi-SATA_Hitachi_H000000_S0000000000000-part1
scsi-SATA_Hitachi_H000000_S0000000000000-part2


which are all symlinks to sda, sda1, and sda2. Replace the sda, sdb,
and sdc entries in /etc/mdadm.conf with the dev/disk/by-id entries and
see if that fixes your problem.


-- 
sg