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've been messing around with my storage array (in that case 2xMD3000 SAS) and between the scans/rescans/delete/add my /dev/sdx block devices are all messed up. Some of them are non existent and using fdisk on them gives:

fdisk: unable to open sdc: No such device or address

It's not a real problem as I'm using /dev/disk/by-id/wwn-xxxxx anyway, but I would like to know if there is a way to trigger the kernel into updating/removing those empty and broken devices somehow. Thanks

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Use the command:

rescan-scsi-bus.sh --remove --issue-lip

to have this nice and tidy script handle the work for you.

share|improve this answer
    
Thanks for that :) Didn't know such script was on my system –  Martino Dino Oct 22 '12 at 17:30
add comment

Try the following:

echo "- - -" > /sys/class/scsi_host/host0/scan

For the last command check which scsi controller you are using, host0 , host1 etc.

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.