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 am having trouble using SCSI device on Linux.

In fact, i don't want that they can be detected until I use the following command :

echo "0 0 0" > /sys/class/scsi_host/hostX/scan 

By detected i mean that there is no device in /sys/class/scsi_device other than my system drive (where my distro is). That also mean there is no new devices in /dev/sdX.

This work fine on two of my machines (ofc the dev one), but the other don't. The setup of the machine are exactly the same (checked history..). On BIOS, i didn't find any difference.

Any advise to give me with this?

Thanks you for reading!

EDIT: My computers are working on Debian 6.0 server Edition.

share|improve this question

1 Answer 1

Strange request. I'm not sure how your other systems performed this way to begin with. The only explanation I can think of is the disks were on a separate HBA and the driver wasn't loaded. The closest feature I could find that addresses your need is scsi_mod.scan=none. Though I think that will prevent all drives from being scanned, even your root ones.

I guess you could start with no scanning, and then customize your initrd to only scan the HBA/target that has your OS, wait, and then continue booting. Sounds like a lot of work and error prone, what's the payoff for this configuration?

share|improve this answer
    
Well i solved this using another way, i just considered that they are auto detected, if not i try auto detection then leave in error. The payoff here is quite specific to my work. Different machine , different bash is quite annoying, so i tried to get the same env. So if i can't with two exact computer, i will have some trouble in the future maintaining that. Anyway thanks for answer. –  Cédric COPY Jan 26 '12 at 11:05

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.