All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Robert L. Harris" <Robert.L.Harris@rdlg.net>
To: Douglas Gilbert <dgilbert@interlog.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: removing a single device?
Date: Wed, 2 Jul 2003 15:39:03 -0400	[thread overview]
Message-ID: <20030702193903.GA6600@rdlg.net> (raw)
In-Reply-To: <3EBC43CC.3090808@interlog.com>

[-- Attachment #1: Type: text/plain, Size: 2497 bytes --]



Just had it hit me again.

# cat /proc/scsi/scsi 
Attached devices: 
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: SEAGATE  Model: ST318404LC       Rev: 0006
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 01 Lun: 00
  Vendor: SEAGATE  Model: ST318404LC       Rev: 0006
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 02 Lun: 00
  Vendor: SEAGATE  Model: ST318404LC       Rev: 0006
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 03 Lun: 00
  Vendor: SEAGATE  Model: ST318404LC       Rev: 0006
  Type:   Direct-Access                    ANSI SCSI revision: 03
# echo "scsi remove-single-device 0 0 2 0" > /proc/scsi/scsi
# cat /proc/scsi/scsi 
Attached devices: 
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: SEAGATE  Model: ST318404LC       Rev: 0006
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 01 Lun: 00
  Vendor: SEAGATE  Model: ST318404LC       Rev: 0006
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 02 Lun: 00
  Vendor: SEAGATE  Model: ST318404LC       Rev: 0006
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 03 Lun: 00
  Vendor: SEAGATE  Model: ST318404LC       Rev: 0006
  Type:   Direct-Access                    ANSI SCSI revision: 03


  Kernel is 2.4.16.  Unfortunately I didn't build the kernel so I don't
know what options it was compiled with.  Is it possible the previous
admin left out a piece needed to enable this?

Thus spake Douglas Gilbert (dgilbert@interlog.com):

> Robert L. Harris wrote:
> > A long time ago I used to be able to do:
> >
> > echo "scsi add-single-device 0 0 11 0" > /proc/scsi/scsi
> > echo "scsi remove-single-device 0 0 11 0" > /proc/scsi/scsi
> >
> > When I wanted to unplug a SCA scsi drive for replacement.  I tried this
> > recently on my 2.4.20 kernel and nothing happened.  No errors, no change
> > to /proc/scsi/scsi, no entry in dmsg, it just ignored it.  Has this been
> > deprecated for a new way of removing hotswap drives?
> 
> Robert,
> It is not deprecated (and is still present in the lk 2.5
> development series since we still have no other way of
> doing this from the user space).
> 
> The parsing of that expression is very rigid: no tabs
> or redundant spaces.
> 
> Doug Gilbert

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2003-07-02 19:24 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
2003-07-02 19:39 ` Robert L. Harris [this message]
  -- 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=20030702193903.GA6600@rdlg.net \
    --to=robert.l.harris@rdlg.net \
    --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 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.