public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Patrick Mansfield <patmans@us.ibm.com>
To: Douglas Gilbert <dgilbert@interlog.com>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: removing a single device?
Date: Mon, 12 May 2003 14:09:59 -0700	[thread overview]
Message-ID: <20030512140959.A2762@beaverton.ibm.com> (raw)
In-Reply-To: <20030512141255.GA30094@rdlg.net>; from Robert.L.Harris@rdlg.net on Mon, May 12, 2003 at 10:12:55AM -0400

Robert -

On Mon, May 12, 2003 at 10:12:55AM -0400, Robert L. Harris wrote:

> /proc/scsi/scsi does still show the device:
> 
> Host: scsi1 Channel: 00 Id: 01 Lun: 00
>   Vendor: 3ware    Model: 3w-xxxx          Rev: 1.0 
>   Type:   Direct-Access                    ANSI SCSI revision: ffffffff
> 
> and the echo, remove below doesn't remove it.  It does happily though
> work on some other systems with SCA interfaces.

> > > echo "scsi add-single-device 0 0 11 0" > /proc/scsi/scsi
> > > echo "scsi remove-single-device 0 0 11 0" > /proc/scsi/scsi

If this is for the host/channel/id/lun as per your cat /proc/scsi/scsi,
you are specifying id (target) 11, where you should have used 1.

You can also check the result of the write to see if it worked, not sure
if it does anything on 2.4 when the device does not exist, on 2.5 trying to
remove a non-existent device gives me:

[root@elm3b79 root]# echo "scsi remove-single-device 1 2 3 4" > /proc/scsi/scsi
[root@elm3b79 root]# echo $?
1

-- Patrick Mansfield

  reply	other threads:[~2003-05-12 21:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-10  0:11 removing a single device? Douglas Gilbert
2003-05-12 14:12 ` Robert L. Harris
2003-05-12 21:09   ` Patrick Mansfield [this message]
2003-07-02 19:39 ` Robert L. Harris
  -- strict thread matches above, loose matches on Subject: below --
2003-05-09 19:58 Robert L. Harris

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=20030512140959.A2762@beaverton.ibm.com \
    --to=patmans@us.ibm.com \
    --cc=dgilbert@interlog.com \
    --cc=linux-kernel@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