RE: [expert] Accessing hot plugged SCSI disks

1999-11-24 Thread Bois, Mathieu

   echo "scsi add-single-device 0 0 [id] 0"  /proc/scsi/scsi

I have just tested it and it works perfectly ! (and moreover, it is
very quick)

Thank you very much !

Mathieu



RE: [expert] Accessing hot plugged SCSI disks

1999-11-24 Thread Denis Havlik

:~echo "scsi add-single-device 0 0 [id] 0"  /proc/scsi/scsi
:~

I have always hated the "add-single-device" command
because i keep forgetting the id-s. Is there something like "rescan-scsi"
command?

D.



Re: [expert] Accessing hot plugged SCSI disks

1999-11-20 Thread Karsten Römling

"Bois, Mathieu" wrote:
 
 Hi,
 
 I'm wondering if a command like drvconfig/disks for Solaris exist on Linux
 for PC too.
 
 A few days ago, I have hot plugged a SCSI disk while Linux was running, but
 it didn't want to recognize there was a /dev/sdb device now plugged in
 (during the boot, it detected the usual SCSI disk /dev/sda).
 
 I think a solution would be to put the SCSI driver, aic7xxx as a module and
 not part of the kernel, and unload and reload it when I want to hot plug a
 new disk. BUT my first SCSI disk is the disk where the "/" of Linux is
 located in, so I couldn't even do that.
 

Yep, modularize the driver, then it sure works. I am not sure if it will
work otherwise, but you could try it - should be faster than forst
trying it with a modularized kernel :-)) "Try what?" - well, wait a
second... AFAIR:
echo "scsi add-single-device 0 0 [id] 0"  /proc/scsi/scsi

For a better explanation have a look into the scsi-programming-howto...

Karsten
-- 
-
Why do we have to hide from the police, daddy?
Because we use emacs, son. They use vi.
--
[EMAIL PROTECTED]
http://www.tu-bs.de/~y0008422/
--
Medienwissenschaftler in BS:
http://www.tu-bs.de/institute/mewi/



[expert] Accessing hot plugged SCSI disks

1999-01-17 Thread Bois, Mathieu

Hi,

I'm wondering if a command like drvconfig/disks for Solaris exist on Linux
for PC too.

A few days ago, I have hot plugged a SCSI disk while Linux was running, but
it didn't want to recognize there was a /dev/sdb device now plugged in
(during the boot, it detected the usual SCSI disk /dev/sda).

I think a solution would be to put the SCSI driver, aic7xxx as a module and
not part of the kernel, and unload and reload it when I want to hot plug a
new disk. BUT my first SCSI disk is the disk where the "/" of Linux is
located in, so I couldn't even do that.

Thanks to give me a solution if it exists. If it doesn't, explain me why (PC
BIOS ? Adaptec BIOS ? no such command on Linux ? ... ?)

The kernel I was using when doing that was 2.2.13 on a Mandrake 6.0, on a
PII PC and an Adaptec 2940U2W card.


Thanks and regards

Mathieu