I recently got my hands on a nice new NAS box that included a few QLogic quad port 4gb fibre channel cards and I decided to mess with the idea of upgrading my SAN from Ethernet to Fiber. The problem is the only real way to do this without too much pain is to use SCST. For those who are interested in setting that up, I followed this Tutorial and I had no issues getting it going on a 3.14.5 kernel… minus the init.d startup script not working, which I have a fix for. So, if you have issues with SCST not running at startup in Debian, this post is for you!
In simple the issue with the script is by default it does not have the proper runlevels set for Default-Start and Default-Stop, causing it to be ignored by insserv. To fix this, just do the following:
- Open /etc/init.d/scst with your favorite file editor
- Replace the following Lines:
# Default-Start: 3 5 # Default-Stop: 0 1 2 4 6
- With the following:
# Default-Start: 2 3 4 5 # Default-Stop: 0 1 6
- Then run the following commands to update insserv:
insserv -v -r scst insserv -v -d scst update-rc.d scst defaults
And that’s it! At this point you should have no more issues with SCST not starting at system startup.
Thank you, I need this for my infiniband setup.