public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: "Suresh Kr N" <suresh@veritas.com>
To: linux-scsi@vger.kernel.org
Subject: RE: eata irq abuse (was: Re: Linux 2.5.60)
Date: Thu, 13 Feb 2003 00:41:20 +0530	[thread overview]
Message-ID: <JOEEIMDPCNOOJCHLMKHMKEEKCKAA.suresh@veritas.com> (raw)
In-Reply-To: <3E4A7043.1070200@pobox.com>

hi everyone

I am working on a san management application for a linux. My application
sends zoning commands to the fabric to zone in a disk to a host ,  so i need
to have that disk acessible to the host without a reboot of the host.

I need to do this from the user space. Is there a way to ask the scsi
midlayer for a rescan ?
In solaris , i invoke a command called "drvconfig" to achieve this.

I have seen in the linux-scsi archive that this is kind of possible,  but
the discussion didnt seem to state how.
I am attaching the above thread here in the mail.

I have verified that echo "scsi add-single-device a b c d" > /proc/scsi/scsi
works fine . But this does involve parameters which cant be found out
programmatically.

Also a side question here :In a FC world, to get the target number for above
command , can i find out the current maximum target number of the scsi
devices, and increase it by one ? or  does the FC devices have actually a
preknown target no , which would be collected by the FC card driver ?

Could someone please help ? ( even a "non-standard" way should be good
enough" )

Thanks
Suresh



--------------------------------------------------------
Message 2 in thread
From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Subject: Re: Hot plugging a disk in runtime
View this article only
Newsgroups: mlist.linux.scsi
Date: 2002-05-20 05:32:38 PST


> 1.. How is it possible to signal SCSI mid-layer (or other layers) of a
> presence of a newly hot-plugged disk ?

aacraid is one example that does this, but via its config tools.

> 2.. Can an adapter's device driver trigger SCSI subsystem to scan
> channels for new LUNs / Targets ?

It is designed so user space can do so - so yes

> 3.. Is this can be handled in a kernel level ? is there a user space
> application that can be triggered to start scanning adapters (obviously
> through SCSI subsystem) and registering new LUNs / Targets etc... ?

echo "scsi-add-single-device a b c d" /proc/scsi/scsi

if I remember it right


entire thread is at

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=linux.scsi.200205
201420.g4KEK3x01892%40localhost.localdomain&rnum=7&prev=/groups%3Fq%3Dhot%2B
plug%2B%2BSCSI%2Bfibre-channel%2BLinux%26hl%3Den%26lr%3D%26ie%3DUTF-8%26selm
%3Dlinux.scsi.200205201420.g4KEK3x01892%2540localhost.localdomain%26rnum%3D7


  reply	other threads:[~2003-02-12 18:47 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-12 10:08 eata irq abuse (was: Re: Linux 2.5.60) Ballabio_Dario
2003-02-12 15:28 ` Jeff Garzik
2003-02-12 16:03   ` Jeff Garzik
2003-02-12 19:11     ` Suresh Kr N [this message]
2003-02-12 20:18       ` Adding a new FC disk to a linux host Suresh Kr N
2003-02-12 23:34         ` Steven Dake
2003-02-13 17:31           ` Suresh Kr N
2003-02-13 19:01             ` Suresh Kr N
2003-02-13 20:22               ` Steven Dake
2003-02-14  0:27               ` Bryan Henderson
2003-02-13 20:23             ` Steven Dake
  -- strict thread matches above, loose matches on Subject: below --
2003-02-12 15:37 eata irq abuse (was: Re: Linux 2.5.60) Ballabio_Dario
2003-02-12 14:13 Ballabio_Dario
2003-02-12 14:25 ` Christoph Hellwig
2003-02-12 14:40   ` James Bottomley
2003-02-12 14:51     ` Christoph Hellwig
2003-02-12 14:54       ` James Bottomley
2003-02-12 12:47 Ballabio_Dario
2003-02-12 13:17 ` Christoph Hellwig
2003-02-11 17:45 Manfred Spraul
2003-02-11 23:01 ` Zephaniah E. Hull

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=JOEEIMDPCNOOJCHLMKHMKEEKCKAA.suresh@veritas.com \
    --to=suresh@veritas.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox