Skip to contentSkip to conversation

How to disconnect a SCSI device without crashing SLES8?

DISCUSSION Eric Raskin 2 participants 4 messages Feb 4, 2005 SCSI

lore
Share & tools
lore
#0 lore raw

Hello all:

I apologize in advance if this is the wrong forum for this question. Please feel free to direct me to the correct newgroup.

I have a Dell 6650 running Suse Enterprise 8 (SLES8) with the 2.4.21-138-smp kernel. I have a Quantum M1500 tape library with 2 SDLT220 tape drives connected to one of the internal Adaptec Controllers using the aic7xxxx driver. One of the tape drives has failed. From experience, and from Quantum tech support, I know that turning off the library while the system is up will crash Linux.

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?

TIA

Eric Raskin

PS. Dell wants to charge me $199 to get an answer to speak with the engineers who can answer this question. It's easier to just turn off the system! :-/

----------------------------------------------------------------------------

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

#1 lore raw
Quoted 6 lines · Eric Raskin

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.

#2 lore raw

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: [email protected]
Subject: Re: How to disconnect a SCSI device without crashing SLES8?

Quoted 6 lines · Eric Raskin

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.

#3 lore raw
Quoted 1 line · Eric Raskin

Thanks, Christoph. Would we use the same commands on 2.6?

They still work if CONFIG_SCSI_PROC_FS is enabled. Always available and easier to use is to do echo "1" > /sys/device/N:N:N:N/device/delete where N:N:N:N is bus, channel, target, lun of the device to be deleted.