linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Autodetect problem w/ SCSI
@ 2004-06-01 18:39 Sandro Dentella
  2004-06-01 20:45 ` M K
  0 siblings, 1 reply; 5+ messages in thread
From: Sandro Dentella @ 2004-06-01 18:39 UTC (permalink / raw)
  To: Linux Raid List



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...



-- 
Sandro Dentella  *:-)
e-mail: sandro.dentella@tin.it 
http://www.tksql.org                    TkSQL Home page - My GPL work

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Autodetect problem w/ SCSI
  2004-06-01 18:39 Autodetect problem w/ SCSI Sandro Dentella
@ 2004-06-01 20:45 ` M K
  2004-06-01 21:09   ` Sandro Dentella
  2004-06-02 10:40   ` Sandro Dentella
  0 siblings, 2 replies; 5+ messages in thread
From: M K @ 2004-06-01 20:45 UTC (permalink / raw)
  To: Sandro Dentella, Linux Raid List

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?
--- Sandro Dentella <sandro.dentella@tin.it> wrote:
> 
> 
> 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...
> 
> 
> 
> -- 
> Sandro Dentella  *:-)
> e-mail: sandro.dentella@tin.it 
> 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 majordomo@vger.kernel.org
> 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/ 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Autodetect problem w/ SCSI
  2004-06-01 20:45 ` M K
@ 2004-06-01 21:09   ` Sandro Dentella
  2004-06-02 10:40   ` Sandro Dentella
  1 sibling, 0 replies; 5+ messages in thread
From: Sandro Dentella @ 2004-06-01 21:09 UTC (permalink / raw)
  To: M K; +Cc: Sandro Dentella, Linux Raid List

On Tue, Jun 01, 2004 at 01:45:16PM -0700, M K wrote:
> 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"...

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Autodetect problem w/ SCSI
  2004-06-01 20:45 ` M K
  2004-06-01 21:09   ` Sandro Dentella
@ 2004-06-02 10:40   ` Sandro Dentella
  2004-06-02 12:02     ` Luca Berra
  1 sibling, 1 reply; 5+ messages in thread
From: Sandro Dentella @ 2004-06-02 10:40 UTC (permalink / raw)
  To: M K; +Cc: Sandro Dentella, Linux Raid List



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

> 
> 
> On Tue, Jun 01, 2004 at 01:45:16PM -0700, M K wrote:
> > 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Autodetect problem w/ SCSI
  2004-06-02 10:40   ` Sandro Dentella
@ 2004-06-02 12:02     ` Luca Berra
  0 siblings, 0 replies; 5+ messages in thread
From: Luca Berra @ 2004-06-02 12:02 UTC (permalink / raw)
  To: Linux Raid List; +Cc: M K

On Wed, Jun 02, 2004 at 12:40:17PM +0200, Sandro Dentella wrote:
>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.

-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-06-02 12:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-01 18:39 Autodetect problem w/ SCSI Sandro Dentella
2004-06-01 20:45 ` M K
2004-06-01 21:09   ` Sandro Dentella
2004-06-02 10:40   ` Sandro Dentella
2004-06-02 12:02     ` Luca Berra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).