I'm developing some automatic test. During it I need to simulate disconnection of fiber channel.
FC adapter is QLogic ISP2532, OS I'm working on is CentOS 6.2.
Currently I've tried to disable it through the following: 'echo 0 > /sys/bus/slot/2-3/power' and it's even works. Moreover I can even bring it up back by 'echo > /sys/bus/pci/rescan'.
But the problem is that this method works once only, i.e. I can perform only one cycle of power off - power on. That's all. The next time I'm trying the same 'echo 0 > /sys/bus/slot/2-3/power' noting happen.
Any ideas, colleagues?
Thanks in advance.