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.

I couldn't find the answer to this anywhere, so I'm posting this in the hope it helps someone else...

My scenario was linux system with an external drive that was connected (and mounted) was suddenly disconnected. I'm not sure why- it may have been a power issue.

After that linux continually reported:

/dev/sdd: read failed after 0 of 4096 at 0: Input/output error

when running fdisk -l, or pvscan, or vgscan or lvscan etc.

Reconnecting the drive did not work, and there was now no way to remount the drive.

What I needed to do was delete the /dev/sdd device.

pvremove --force /dev/sdd

removed the device from LVM, but did not stop the error.

Here's the solution:

cd /sys/block/sdd/device
echo 1 > delete

An answer here pointed me to look in the right place. kudos to bogdano

share|improve this question
2  
Please post your solution as an answer and accept it when you are able to. –  Iain Oct 2 '11 at 7:38
    
Answer: cd /sys/block/sdd/device echo 1 > delete An answer here pointed me to look in the right place. kudos to bogdano –  russellr May 13 '12 at 5:47
add comment

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.