From: Mike Anderson <andmike@us.ibm.com>
To: "Rajat Jain, Noida" <rajatj@noida.hcltech.com>
Cc: eraskin@paslists.com, Linux-scsi@vger.kernel.org
Subject: Re: How to disconnect a SCSI device without crashing SLES8?
Date: Fri, 4 Feb 2005 13:51:37 -0800 [thread overview]
Message-ID: <20050204215137.GD11087@us.ibm.com> (raw)
In-Reply-To: <267988DEACEC5A4D86D5FCD780313FBB041F82F3@exch-03.noida.hcltech.com>
Rajat Jain, Noida [rajatj@noida.hcltech.com] wrote:
> Linux 2.6 ????? Uhh .... I thought you did not wanted to REBOOT the
> system????
>
>
> The command syntax is same. Devices can be removed using the following
> command:
>
> echo "scsi remove-single-device <h> <b> <t> <l>" > /proc/scsi/scsi
>
> where the variables are host, bus (channel), target (scsi id) and lun.
>
on 2.6 you can use the sysfs attributes to add and delete devices. echo
"1" > scsi/devices/1:0:0:0/delete to delete a device. echo "- - -" >
class/scsi_host/host0/scan to scan a host. You can alter the "-" wild
cards if you want to scan a smaller set of targets / luns . Also using
this scan method allows a report luns command to be sent out.
-andmike
--
Michael Anderson
andmike@us.ibm.com
next prev parent reply other threads:[~2005-02-04 21:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-04 20:56 How to disconnect a SCSI device without crashing SLES8? Rajat Jain, Noida
2005-02-04 21:26 ` Eric Raskin
2005-02-04 21:51 ` Mike Anderson [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-02-04 19:12 Eric Raskin
2005-02-04 20:25 ` Christoph Hellwig
2005-02-04 20:36 ` Eric Raskin
2005-02-04 21:06 ` Christoph Hellwig
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=20050204215137.GD11087@us.ibm.com \
--to=andmike@us.ibm.com \
--cc=Linux-scsi@vger.kernel.org \
--cc=eraskin@paslists.com \
--cc=rajatj@noida.hcltech.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.