From: "Eric Raskin" <eraskin@paslists.com>
To: Linux-scsi@vger.kernel.org
Subject: RE: How to disconnect a SCSI device without crashing SLES8?
Date: Fri, 4 Feb 2005 16:26:44 -0500 [thread overview]
Message-ID: <15be01c50b00$3cb7c830$650aa8c0@ehrpc> (raw)
In-Reply-To: <267988DEACEC5A4D86D5FCD780313FBB041F82F3@exch-03.noida.hcltech.com>
Yes, that's true. I went ahead and used the commands on 2.4. They worked
just fine this time. :-)
The question about 2.6 was just for my own education -- for when I actually
get around to installing SLES9 on my production server.
Thanks to everyone for their help.
----------------------------------------------------------------------------
Eric H. Raskin Voice: 914-765-0500
Professional Advertising Systems Inc. Fax: 914-765-0503
200 Business Park Dr Suite 107 eraskin@paslists.com
Armonk, NY 10504
-----Original Message-----
From: Rajat Jain, Noida [mailto:rajatj@noida.hcltech.com]
Sent: Friday, February 04, 2005 3:57 PM
To: eraskin@paslists.com; Linux-scsi@vger.kernel.org
Subject: RE: How to disconnect a SCSI device without crashing SLES8?
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.
But the removal will fail if the device is busy (e.g. if a file system on
the device is mounted).
Rajat Jain
HCL Technologies,
A-11, Sector 16, Noida-201301.
Ph: +91-120-2510701/702/813 Extn.3019
rajatj@noida.hcltech.com
http://www.hcltech.com/
"...one of the main causes of the fall of the Roman Empire was that,
lacking zero, they had no way to indicate successful termination of their C
programs."
Robert Firth
-----Original Message-----
From: linux-scsi-owner@vger.kernel.org
[mailto:linux-scsi-owner@vger.kernel.org] On Behalf Of Eric Raskin
Sent: Saturday, February 05, 2005 2:07 AM
To: Linux-scsi@vger.kernel.org
Subject: RE: How to disconnect a SCSI device without crashing SLES8?
Thanks, Christoph. Would we use the same commands on 2.6?
----------------------------------------------------------------------------
Eric H. Raskin Voice: 914-765-0500
Professional Advertising Systems Inc. Fax: 914-765-0503
200 Business Park Dr Suite 107 eraskin@paslists.com
Armonk, NY 10504
-----Original Message-----
From: Christoph Hellwig [mailto:hch@infradead.org]
Sent: Friday, February 04, 2005 3:25 PM
To: Eric Raskin
Cc: Linux-scsi@vger.kernel.org
Subject: Re: How to disconnect a SCSI device without crashing SLES8?
On Fri, Feb 04, 2005 at 02:12:13PM -0500, Eric Raskin wrote:
> In searching the web, I've found the "remove-scsi-device" and
> "add-scsi-device" commands that can be sent to /proc/scsi/scsi.
>
> Does anybody know if the system will stay up if I use these commands
> to remove all my tape library devices before shutting it down? Is
> this the proper way to repair my library without having to shut the system
off?
remove-scsi-device could work, but in Linux 2.4 it's racy.
If you want to remove and add devices at runtime safely you'll have to
update to Linux 2.6.
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the
body of a message to majordomo@vger.kernel.org More majordomo info at
http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2005-02-04 21:25 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 [this message]
2005-02-04 21:51 ` Mike Anderson
-- 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='15be01c50b00$3cb7c830$650aa8c0@ehrpc' \
--to=eraskin@paslists.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 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.