[rescue] DLT drive dead want to replace without rebooting

Caleb Shay caleb at webninja.com
Tue Nov 28 11:25:15 CST 2006


On 11/28/06, Jonathan C. Patschke <jp at celestrion.net> wrote:
>
> On Tue, 28 Nov 2006, Phil Stracchino wrote:
>
> > If it's Linux, use the following:
> >
> > echo scsi remove-single-device <h> <b> <d> <l> > /proc/scsi/scsi
> > echo scsi add-single-device <h> <b> <d> <l> > /proc/scsi/scsi
>
> Is this valid for scsi devices?  Whomever designed this particular
> kernel interface made that a bit ambiguous.


Yes and no :).  Actually, it's valid for scsi, sata, and usb block devices,
except.../proc/scsi has been deprecated and is not included in newer kernels
by default.

In newer 2.6 kernels you use:

echo anything > /sys/class/scsi_device/<h>:<b>:<t>:<l>/device/delete
echo "<b> <t> <l>" > /sys/class/scsi_host/host<h>/scan

Caleb



More information about the rescue mailing list