When we boot SQL Server, SAN drives might not be availiable yet. Is there a way to delay SQL Server start by 1 minute? Right now we have to restart SQL Server after we boot the server.
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
We talked about a similar issue before here and here and what worked in that case was setting the SQL Server to be dependent on the disk drivers. You'll want to test this to make sure this works in your setup but it should do the trick.
Two things come to mind.
There is a version of Windows that allows delayed starts. However, I suspect that even if you set that up, it won't be long enough. (Also, I suspect that you probably don't have that version of windows, if you're using SAN.)
One solution (although a bit hacky) would be to create a batch script that delayed for 60 seconds and then called the service to start it up:
Add that to your Startup folder in your Program Files and it should work.