Autodetect problem w/ SCSI
I made plenty of RAID1 systems w/ ide disk: OK.
Now I tried a SCSI system and I can't make the kernel recognize the partition to make into an array. Of course partitions are 'fd': raid autodetect.
Kernel recognizes the scsi hw (aic7xxx compiled in), then starts "md: Autodetecting RAID arrays" that will just fail to find the arrays.
If I start from a live CD, I can "mdadm -A /dev/md0 /dev/sda6 /dev/sdb6" and the array starts and I can mount it.
Is there something peculiar of SCSI systems I'm just ignoring?
TYA
sandro
*:-)
I'm sorry to admit it's quite URGENT to me to get to a solution... this is a replacement for a customer after 4 ide disks failure in 5 months...
Signature · 3 lines
Sandro Dentella *:-) e-mail: [email protected] http://www.tksql.org TkSQL Home page - My GPL work
Can you send the exact command used to create the array, the raidtabs or mdadm.conf file and the fdisk -l listing of each drive thats part of the raid?
Quoted 24 lines · --- Sandro Dentella
I made plenty of RAID1 systems w/ ide disk: OK. Now I tried a SCSI system and I can't make the kernel recognize the partition
to make into an array. Of course partitions are 'fd': raid autodetect.Kernel recognizes the scsi hw (aic7xxx compiled in), then starts
"md: Autodetecting RAID arrays" that will just fail to find the arrays.If I start from a live CD, I can "mdadm -A
/dev/md0/dev/sda6/dev/sdb6" and
the array starts and I can mount it.Is there something peculiar of SCSI systems I'm just ignoring?
TYA
Quoted 21 lines
sandro
*:-)I'm sorry to admit it's quite URGENT to me to get to a solution... this is a
replacement for a customer after 4 ide disks failure in 5 months...Signature · 9 lines
Sandro Dentella *:-) e-mail: [email protected] http://www.tksql.org TkSQL Home page - My GPL work - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
Quoted 3 lines · M K
Can you send the exact command used to create the array, the raidtabs or mdadm.conf file and the fdisk -l listing of each drive thats part of the raid?
I used mdadm w/ (approxymantely, it's a script "mdadm --create $Md -l1 -n2 $part $part2")
mdadm --create /dev/md/0 -l1 -n2 /dev/scsi/host0/bus0/target0/lun0/part6 /dev/scsi/host0/bus0/target1/lun0/part6
From a live CD after modprobe aic7xxx and "mdadm -A /dev/md4 /dev/sda1 /dev/sdb1" and "mdadm -A /dev/md0 /dev/sda6 /dev/sdb6"
####################################################
fdisk -l /dev/sda
root@argo-cd root # fdisk -l /dev/sda
Disk /dev/sda: 255 heads, 63 sectors, 2231 cylinders Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System /dev/sda1 1 3 24066 fd Linux raid autodetect /dev/sda2 4 2231 17896410 f Win95 Ext'd (LBA) /dev/sda5 4 68 522081 fd Linux raid autodetect /dev/sda6 69 323 2048256 fd Linux raid autodetect /dev/sda7 324 2231 15325978+ fd Linux raid autodetect
root@argo-cd root # fdisk -l /dev/sdb
Disk /dev/sdb: 255 heads, 63 sectors, 2231 cylinders Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System /dev/sdb1 1 3 24066 fd Linux raid autodetect /dev/sdb2 4 2231 17896410 f Win95 Ext'd (LBA) /dev/sdb5 4 68 522081 fd Linux raid autodetect /dev/sdb6 69 323 2048256 fd Linux raid autodetect /dev/sdb7 324 2231 15325978+ fd Linux raid autodetect
####################################################
root@argo-cd root # cat /proc/mdstat
Personalities : [raid1]read_ahead 1024 sectors
md0 : active raid1 scsi/host0/bus0/target0/lun0/part6[0] scsi/host0/bus0/target1/lun0/part6[1]
2048192 blocks [2/2] [UU]
md4 : active raid1 scsi/host0/bus0/target0/lun0/part1[0] scsi/host0/bus0/target1/lun0/part1[1]
24000 blocks [2/2] [UU]
unused devices: <none>
####################################################
root@argo-cd root # mdadm -D /dev/md/0/dev/md/0:
Version : 00.90.00
Creation Time : Tue Jun 1 19:02:24 2004
Raid Level : raid1
Array Size : 2048192 (2000.19 MiB 2097.35 MB)
Device Size : 2048192 (2000.19 MiB 2097.35 MB) Raid Devices : 2
Total Devices : 2
Preferred Minor : 2
Persistence : Superblock is persistent
Update Time : Tue Jun 1 23:00:22 2004
State : dirty, no-errors
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Number Major Minor RaidDevice State
0 8 6 0 active sync /dev/scsi/host0/bus0/target0/lun0/part6
1 8 22 1 active sync /dev/scsi/host0/bus0/target1/lun0/part6
UUID : 6f224ca0:92ecf8b5:bdf5d2b8:371b5bae
Events : 0.2
####################################################
root@argo-cd root # mount /dev/md0 /tmp/6 root@argo-cd root # mount /dev/md4 /tmp/6/boot/ root@argo-cd root # df
Filesystem 1k-blocks Used Available Use% Mounted on
rootfs 425408 425408 0 100% / /dev/cdroms/cdrom0 425408 425408 0 100% / tmpfs 6144 4160 1984 68% /etc tmpfs 6144 1600 4544 27% /var tmpfs 2048 12 2036 1% /var/tmp
/dev/md0 2048124 439932 1608192 22% /var/tmp/6/dev/md4 23239 18278 3761 83% /var/tmp/6/boot
####################################################
Thanks again
sandro
*:-)
PS: I notice that preferred minor does not correspond w/ (my interpretation
of) real used minor. But I guess 'preferred' is not "compulsory"...
I moved the array w/ on a different machine w/ a different controller (same model:adaptec 2940 pro ultra scsi) but the behaviour is the same: the array is not autodetected. The same kernel autodetects ide disks.
Please tell me: is there some setting, peculiar to SCSI autodetect, I'm ignoring?
sandro
Quoted 27 lines · M K
Quoted 3 lines
Can you send the exact command used to create the array, the raidtabs or mdadm.conf file and the fdisk -l listing of each drive thats part of the raid?
I used mdadm w/ (approxymantely, it's a script "mdadm --create $Md -l1 -n2 $part $part2")
mdadm --create
/dev/md/0-l1 -n2/dev/scsi/host0/bus0/target0/lun0/part6/dev/scsi/host0/bus0/target1/lun0/part6Quoted 1 line
From a live CD after modprobe aic7xxx and "mdadm -A
/dev/md4/dev/sda1
/dev/sdb1" and "mdadm -A/dev/md0/dev/sda6/dev/sdb6"####################################################
fdisk -l/dev/sda
root@argo-cd root # fdisk -l/dev/sdaDisk
/dev/sda: 255 heads, 63 sectors, 2231 cylinders Units = cylinders of 16065 * 512 bytesDevice Boot Start End Blocks Id System /dev/sda1 1 3 24066 fd Linux raid autodetect /dev/sda2 4 2231 17896410 f Win95 Ext'd (LBA) /dev/sda5 4 68 522081 fd Linux raid autodetect /dev/sda6 69 323 2048256 fd Linux raid autodetect /dev/sda7 324 2231 15325978+ fd Linux raid autodetect
Quoted 6 lines · Sandro Dentella
I moved the array w/ on a different machine w/ a different controller (same model:adaptec 2940 pro ultra scsi) but the behaviour is the same: the array is not autodetected. The same kernel autodetects ide disks.
Please tell me: is there some setting, peculiar to SCSI autodetect, I'm ignoring?
it should not
for autodetect to work you would have to load the low-lever controller driver and the sd driver before autodetect
can you show some evidence (eg. dmesg)
L.
Signature · 6 lines
Luca Berra -- [email protected] Communication Media & Services S.r.l. /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \