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                          [EMAIL PROTECTED]
Armonk, NY 10504


-----Original Message-----
From: Rajat Jain, Noida [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 04, 2005 3:57 PM
To: [EMAIL PROTECTED]; 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 
[EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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                          [EMAIL PROTECTED]
Armonk, NY 10504


-----Original Message-----
From: Christoph Hellwig [mailto:[EMAIL PROTECTED]
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 [EMAIL PROTECTED] More majordomo info at
http://vger.kernel.org/majordomo-info.html


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to