2001-03-31 13:53:34

by Armin Obersteiner

[permalink] [raw]
Subject: add-single-device won't work in 2.4.3

hi!

as in the subject, yesterday i upgraded to 2.4.3 (plain, no patches).
add-single-device/del-single-device did not work anymore.

tried with:

controller: adaptec-19160
device: yamaha-4260

MfG,
Armin Obersteiner
--
[email protected] pgp public key on request CU


2001-03-31 15:08:35

by Justin T. Gibbs

[permalink] [raw]
Subject: Re: add-single-device won't work in 2.4.3

>hi!
>
>as in the subject, yesterday i upgraded to 2.4.3 (plain, no patches).
>add-single-device/del-single-device did not work anymore.
>
>tried with:
>
>controller: adaptec-19160
>device: yamaha-4260

Do you get any error messages? Does the problem persist with
the latest driver?

http://people.FreeBSD.org/~gibbs/linux

Use the 2.4.3-pre6 patch.

--
Justin

2001-03-31 17:55:59

by Douglas Gilbert

[permalink] [raw]
Subject: Re: add-single-device won't work in 2.4.3

Armin,
It works for me:

$ uname -a
Linux frig 2.4.3 #1 Fri Mar 30 16:33:45 EST 2001 i586 unknown

$ cat /proc/scsi/scsi
Attached devices:
Host: scsi1 Channel: 00 Id: 01 Lun: 00
Vendor: IBM Model: DNES-309170W Rev: SA30
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi2 Channel: 00 Id: 05 Lun: 00
Vendor: UMAX Model: Astra 1220S Rev: V1.2
Type: Scanner ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 06 Lun: 00
Vendor: YAMAHA Model: CRW4416S Rev: 1.0g
Type: CD-ROM ANSI SCSI revision: 02

$ echo "scsi remove-single-device 2 0 5 0" > /proc/scsi/scsi
$ cat /proc/scsi/scsi
Attached devices:
Host: scsi1 Channel: 00 Id: 01 Lun: 00
Vendor: IBM Model: DNES-309170W Rev: SA30
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi2 Channel: 00 Id: 06 Lun: 00
Vendor: YAMAHA Model: CRW4416S Rev: 1.0g
Type: CD-ROM ANSI SCSI revision: 02

$ echo "scsi add-single-device 2 0 5 0" > /proc/scsi/scsi
$ cat /proc/scsi/scsi
Attached devices:
Host: scsi1 Channel: 00 Id: 01 Lun: 00
Vendor: IBM Model: DNES-309170W Rev: SA30
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi2 Channel: 00 Id: 06 Lun: 00
Vendor: YAMAHA Model: CRW4416S Rev: 1.0g
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 05 Lun: 00
Vendor: UMAX Model: Astra 1220S Rev: V1.2
Type: Scanner ANSI SCSI revision: 02

$ sg_scan -i
/dev/sg0: scsi1 channel=0 id=1 lun=0 type=0
IBM DNES-309170W SA30 [wide=1 sync=1 cmdq=1 sftre=0 pq=0x0]
/dev/sg1: scsi2 channel=0 id=6 lun=0 type=5
YAMAHA CRW4416S 1.0g [wide=0 sync=1 cmdq=0 sftre=0 pq=0x0]
/dev/sg2: scsi2 channel=0 id=5 lun=0 type=6
UMAX Astra 1220S V1.2 [wide=0 sync=0 cmdq=0 sftre=0 pq=0x0]

This last command is from sg_utils and it sends actual
INQUIRY commands rather than relying on data held in
the midlayer. This demonstrates the devices are responding.


Run on a AMD K6-2 500MHz machine with 2 advansys adapters.
Could you retest. If it continues to fail then it may be
a problem with the new aic7xxx driver. You also have the
option of building with the "old" (i.e. former) aic7xxx
driver.

Doug Gilbert

2001-04-01 16:02:08

by Armin Obersteiner

[permalink] [raw]
Subject: Re: add-single-device won't work in 2.4.3

hi!

problem resolved: the first scsi adaptor is scsi1 NOT scsi0
as in <=2.4.2. so i did add/remove devices from a non existend
controller ...

thanks for posting your /proc/scsi/scsi, i compared it with
mine from 2.4.2 and voila!

i hope this is a "wanted" behavior ...

thanks for all your fast replies!

> $ uname -a
> Linux frig 2.4.3 #1 Fri Mar 30 16:33:45 EST 2001 i586 unknown
>
> $ cat /proc/scsi/scsi
> Attached devices:
> Host: scsi1 Channel: 00 Id: 01 Lun: 00
> Vendor: IBM Model: DNES-309170W Rev: SA30
> Type: Direct-Access ANSI SCSI revision: 03
> Host: scsi2 Channel: 00 Id: 05 Lun: 00
> Vendor: UMAX Model: Astra 1220S Rev: V1.2
> Type: Scanner ANSI SCSI revision: 02

CU,
Armin Obersteiner
--
[email protected] pgp public key on request CU