On 8/2/07, Stephen Gregory <oclug [ at ] kernelpanic [ dot ] ca> wrote: > > 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 On my machine (Gentoo, kernel 2.6.18.6), I have (before adding the SCSI drives): Mosix3 ~ # ls -lR /dev/disk /dev/disk: total 0 drwxr-xr-x 2 root root 480 Jul 31 17:44 by-id drwxr-xr-x 2 root root 480 Jul 31 17:44 by-path drwxr-xr-x 2 root root 80 Jul 31 17:44 by-uuid /dev/disk/by-id: total 0 lrwxrwxrwx 1 root root 9 Jul 31 17:44 ata-Maxtor_6L300R0_L60GKR0H -> ../../hdc lrwxrwxrwx 1 root root 10 Jul 31 17:44 ata-Maxtor_6L300R0_L60GKR0H-part1 -> ../../hdc1 lrwxrwxrwx 1 root root 9 Jul 31 17:44 ata-Maxtor_6L300R0_L60GKTWH -> ../../hde lrwxrwxrwx 1 root root 10 Jul 31 17:44 ata-Maxtor_6L300R0_L60GKTWH-part1 -> ../../hde1 lrwxrwxrwx 1 root root 9 Jul 31 17:44 ata-Maxtor_6L300R0_L60GL3KH -> ../../hdg lrwxrwxrwx 1 root root 10 Jul 31 17:44 ata-Maxtor_6L300R0_L60GL3KH-part1 -> ../../hdg1 lrwxrwxrwx 1 root root 9 Jul 31 17:44 ata-ST3400620A_5QG00PTD -> ../../hdi lrwxrwxrwx 1 root root 10 Jul 31 17:44 ata-ST3400620A_5QG00PTD-part1 -> ../../hdi1 lrwxrwxrwx 1 root root 9 Jul 31 17:44 ata-TOSHIBA_CD-ROM_XM-6202B_b___ -> ../../hdb lrwxrwxrwx 1 root root 9 Jul 31 17:44 ata-WDC_WD800BB-00CAA1_WD-WMA8E7164052 -> ../../hda lrwxrwxrwx 1 root root 10 Jul 31 17:44 ata-WDC_WD800BB-00CAA1_WD-WMA8E7164052-part1 -> ../../hda1 lrwxrwxrwx 1 root root 10 Jul 31 17:44 ata-WDC_WD800BB-00CAA1_WD-WMA8E7164052-part2 -> ../../hda2 lrwxrwxrwx 1 root root 10 Jul 31 17:44 ata-WDC_WD800BB-00CAA1_WD-WMA8E7164052-part3 -> ../../hda3 lrwxrwxrwx 1 root root 10 Jul 31 17:44 ata-WDC_WD800BB-00CAA1_WD-WMA8E7164052-part4 -> ../../hda4 lrwxrwxrwx 1 root root 9 Jul 31 17:44 scsi-SATA_ST3300831AS_3NF0G35L -> ../../sdc lrwxrwxrwx 1 root root 10 Jul 31 17:44 scsi-SATA_ST3300831AS_3NF0G35L-part1 -> ../../sdc1 lrwxrwxrwx 1 root root 9 Jul 31 17:44 scsi-SATA_ST3500630AS_5QG04MV9 -> ../../sdb lrwxrwxrwx 1 root root 10 Jul 31 17:44 scsi-SATA_ST3500630AS_5QG04MV9-part1 -> ../../sdb1 lrwxrwxrwx 1 root root 10 Jul 31 17:44 scsi-SATA_ST3500630AS_5QG04MV9-part2 -> ../../sdb2 lrwxrwxrwx 1 root root 9 Jul 31 17:44 scsi-SATA_ST3500630AS_5QG04MZX -> ../../sda lrwxrwxrwx 1 root root 10 Jul 31 17:44 scsi-SATA_ST3500630AS_5QG04MZX-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Jul 31 17:44 scsi-SATA_ST3500630AS_5QG04MZX-part2 -> ../../sda2 /dev/disk/by-path: total 0 lrwxrwxrwx 1 root root 9 Jul 31 17:44 pci-0000:00:08.0-scsi-0:0:0:0 -> ../../sda lrwxrwxrwx 1 root root 10 Jul 31 17:44 pci-0000:00:08.0-scsi-0:0:0:0-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Jul 31 17:44 pci-0000:00:08.0-scsi-0:0:0:0-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Jul 31 17:44 pci-0000:00:0d.0-ide-0:0 -> ../../hde lrwxrwxrwx 1 root root 10 Jul 31 17:44 pci-0000:00:0d.0-ide-0:0-part1 -> ../../hde1 lrwxrwxrwx 1 root root 9 Jul 31 17:44 pci-0000:00:0d.0-ide-1:0 -> ../../hdg lrwxrwxrwx 1 root root 10 Jul 31 17:44 pci-0000:00:0d.0-ide-1:0-part1 -> ../../hdg1 lrwxrwxrwx 1 root root 9 Jul 31 17:44 pci-0000:00:0d.1-ide-0:0 -> ../../hdi lrwxrwxrwx 1 root root 10 Jul 31 17:44 pci-0000:00:0d.1-ide-0:0-part1 -> ../../hdi1 lrwxrwxrwx 1 root root 9 Jul 31 17:44 pci-0000:00:0f.0-scsi-0:0:0:0 -> ../../sdb lrwxrwxrwx 1 root root 10 Jul 31 17:44 pci-0000:00:0f.0-scsi-0:0:0:0-part1 -> ../../sdb1 lrwxrwxrwx 1 root root 10 Jul 31 17:44 pci-0000:00:0f.0-scsi-0:0:0:0-part2 -> ../../sdb2 lrwxrwxrwx 1 root root 9 Jul 31 17:44 pci-0000:00:0f.0-scsi-1:0:0:0 -> ../../sdc lrwxrwxrwx 1 root root 10 Jul 31 17:44 pci-0000:00:0f.0-scsi-1:0:0:0-part1 -> ../../sdc1 lrwxrwxrwx 1 root root 9 Jul 31 17:44 pci-0000:00:0f.1-ide-0:0 -> ../../hda lrwxrwxrwx 1 root root 10 Jul 31 17:44 pci-0000:00:0f.1-ide-0:0-part1 -> ../../hda1 lrwxrwxrwx 1 root root 10 Jul 31 17:44 pci-0000:00:0f.1-ide-0:0-part2 -> ../../hda2 lrwxrwxrwx 1 root root 10 Jul 31 17:44 pci-0000:00:0f.1-ide-0:0-part3 -> ../../hda3 lrwxrwxrwx 1 root root 10 Jul 31 17:44 pci-0000:00:0f.1-ide-0:0-part4 -> ../../hda4 lrwxrwxrwx 1 root root 9 Jul 31 17:44 pci-0000:00:0f.1-ide-0:1 -> ../../hdb lrwxrwxrwx 1 root root 9 Jul 31 17:44 pci-0000:00:0f.1-ide-1:0 -> ../../hdc lrwxrwxrwx 1 root root 10 Jul 31 17:44 pci-0000:00:0f.1-ide-1:0-part1 -> ../../hdc1 /dev/disk/by-uuid: total 0 lrwxrwxrwx 1 root root 10 Jul 31 17:44 98680beb-c935-40a1-9c38-ae01b8c21b88 -> ../../hda1 lrwxrwxrwx 1 root root 10 Jul 31 17:44 a5702d8d-f05f-42ee-a1d7-333eec156994 -> ../../hda3 I'll try to play with my /etc/mdadm.conf file. Thanks! Charles -- Charles Nadeau Ph.D. http://charlesnadeau.blogspot.com/ http://radio.weblogs.com/0111823/ Un emploi pour moi? Voila mon CV: http://resumes.hotjobs.com/charlesnadeau/resumeprincipal Got a job for me? Here is my Resume: http://resumes.hotjobs.com/charlesnadeau/resumeprincipal