Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.
ata2: link is slow to respond, please be patient (ready=0)
kernel: [2761026.198796] ata2: soft resetting link
kernel: [2761031.226669] ata2.00: disabled
kernel: [2761031.226720] ata2: EH complete
kernel: [2761031.226753] sd 1:0:0:0: [sdb] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK,SUGGEST_OK

After receiving the error above, I couldn't access /dev/sdb anymore.
Not wanting to restart the server, I rescanned for the device using echo "- - -" > /sys/class/scsi_host/host1/scan and it readded the drive as /dev/sdc.

From what I have found, I need to use echo "scsi add-single-device 0 0 3 0" > /proc/scsi/scsi, "3" being the SCSI ID which corresponds to sdb.

Everything nice up to the point I execute the command and get -bash: echo: write error: Invalid argument.
All the solutions point to using this method, but I am unable to. Any other method available?

Debian 5.0.8 - 2.6.26-1-686

share|improve this question
    
Did you run the echo command as root? According to TLDP your approach looks fine. –  Axel Knauf Feb 22 '11 at 10:59
    
yes, ran it as root. –  w00t Feb 22 '11 at 12:30
    
@AxelKnauf: If you mean using sudo, that won't work. echo "scsi add-single-device 0 0 3 0" | sudo tee /proc/scsi/scsi –  Dennis Williamson Feb 22 '11 at 15:35
    
seemed to be an argument issue. supplying different ones like 1.0.0.0 would not yield an error anymore. but I still couldn't rename the hdd. –  w00t Mar 2 '11 at 13:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.