[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how do i remove a scsi device ?



Peter Palfrader wrote:
> 
> Ramin Motakef schrieb am Donnerstag, den 16. März 2000:
> 
> > You have to tell wich device you want to remove, ie:
> >
> >  echo "scsi remove-single-device 0 0 5 0" > /proc/scsi/scsi
> >
> >                            [ Host Channel Id Lun ]
> >
> > this is "documented" in /usr/src/linux/drivers/scsi/scsi.c :-)
> 
> and the scsi programming howto iirc
> 

And will not work AFAIK.
The problem is when you have a process that is marked as:
---------- 8< ----- man ps
D uninterruptible sleep (usually IO)
---------- 8= ----- man ps
you cannot remove the device until you kill this process.
How do you kill a process in the "D" (=Dozing???) state?

Bernhard


Reply to: