Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VDisk to load before SQL Server
Message
From
25/04/2015 17:34:10
 
 
To
25/04/2015 17:13:46
General information
Forum:
Windows
Category:
Configuration
Environment versions
OS:
Windows 8.1
Miscellaneous
Thread ID:
01619141
Message ID:
01619144
Views:
33
>Setting SQL Server to start in delayed mode resolves the issue. This is not very orthodox but it works. There is a 2-minute delay.
>
>If someone has a better approach, let me know.

If you have a dependency i.e. your SQL databases are on a vdisk, then yes, the disk has to be up and available before you try to start SQL Server.

Another general approach would be to use a batch/CMD file or PowerShell script to start the vdisk, then SQL Server.

In Services: Set SQL Server to manual (rather than automatic) start in Services

In the script:

- Start the vdisk

- Go into a loop, checking for the existence of one of the SQL database files. If file does not exist (i.e. vdisk hasn't finished starting up), keep looping

- Once the file exists, start SQL Server: https://technet.microsoft.com/en-us/library/ms187598%28v=sql.105%29.aspx
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform