VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
7 Replies Last post: Jul 15, 2009 11:45 PM by paradox  

SRM service does not start automatically posted: May 28, 2009 7:52 PM

Click to view airswimmmer's profile Enthusiast 29 posts since
Apr 5, 2008

Hi all,

my srm service doesn't start automatically on server reboots, but I have no problem starting the service manually.

SRM is using the local SQL DB, I though it's might be because SRM tried to start before the SQL service starts, so I put in the SQL service as the dependency of the SRM service. it didn't fix it.

from the SRM logs, I found these:

Log for VMware Site Recovery Manager, pid=2216, version=1.0.1, build=build-128004, option=Release, section=2
2009-05-29 10:33:06.562 'App' 2220 warning Failed to create console writer
2009-05-29 10:33:06.562 'App' 2252 info Set dump dir to 'C:\Documents and Settings\All Users\Application Data\VMware\VMware Site Recovery Manager\DumpFiles'
2009-05-29 10:33:06.562 'App' 2252 info Intializing the DBManager
2009-05-29 10:33:06.828 'Vdb' 2252 error Connection: Could not connect to database: -1
2009-05-29 10:33:06.828 'App' 2252 warning DBManager error: Could not initialize Vdb connection: ODBC error: (28000) - MicrosoftSQL Native ClientSQL ServerLogin failed for user 'SRMLogin '.
2009-05-29 10:33:06.828 'App' 2252 error Application initialization error: Could not initialize Vdb connection: ODBC error: (28000) - MicrosoftSQL Native ClientSQL ServerLogin failed for user 'SRMLogin '.
2009-05-29 10:33:06.828 'App' 2248 info serviceWin32,414 vmware-dr service stopped

anyone got similar problem? any ideas?

thanks


Re: SRM service does not start automatically

1. May 29, 2009 1:46 AM in response to: airswimmmer
Click to view yvan.seeholtz@ca-sits.com's profile Novice 7 posts since
Feb 27, 2008

Hi

you must have a SRM user (which was set during installation). it can be an AD account or local account

this user needs to have rights on the vCenter Server (eg local administrator,...)

if the SRM service doesn't start, it seems to be because the password has been changed

I you don't remenber it, the user login/pwd can be changed at any tim

Below are the steps to change the SRM user id:

1. Log in to the SRM server host and start a Windows command shell.
2. Change directory to %ProgramFiles%\VMware\VMware Site Recovery Manager\bin
3. Run the following command to update the user ID and password, supplying the new <userID> on the command line and the password when prompted:

%ProgramFiles%\VMware\VMware Site Recovery Manager\bin>srm-config.exe -cmd updateuser -cfg ..\config\vmware-dr.xml -u <userID>


Yvan


Click to view depping's profile Champion 2,997 posts since
Jan 17, 2005
It seems indeed like the password changed....

Duncan
VMware Communities User Moderator | VCP | VCDX


Blogging: http://www.yellow-bricks.com
Twitter: http://www.twitter.com/depping

If you find this information useful, please award points for "correct" or "helpful".

Re: SRM service does not start automatically

4. Jun 28, 2009 7:18 PM in response to: airswimmmer
Click to view paradox's profile Novice 14 posts since
May 30, 2007
Some additional information for this post (I am now working on this issue).
The password has been reset. The same SQL errors are shown in the log.
As mentioned before, the service starts fine manually, just not on boot (intermittent)
VMware tools has been updated.

Any thoughts?

Re: SRM service does not start automatically

5. Jun 29, 2009 12:03 AM in response to: paradox
Click to view depping's profile Champion 2,997 posts since
Jan 17, 2005
Dependencies setup correctly?

Duncan
VMware Communities User Moderator | VCP | VCDX


Blogging: http://www.yellow-bricks.com
Twitter: http://www.twitter.com/depping

If you find this information useful, please award points for "correct" or "helpful".

Re: SRM service does not start automatically

6. Jun 29, 2009 12:44 AM in response to: depping
Click to view paradox's profile Novice 14 posts since
May 30, 2007
Should be. I have reset using "sc config vmware-dr Depend= MSSQL$SRM" rebooted and the SRM Service had not started.
Out of interest, now vmware-dr will kick MSSQL$SRM into service but reports a start/stop condition on vmware-dr (while testing manually)
A second start on vmware-dr brings it to life

Log for VMware Site Recovery Manager, pid=2176, version=1.0.1, build=build-128004, option=Release, section=2
2009-06-29 15:31:49.429 'App' 2180 warning Failed to create console writer
2009-06-29 15:31:49.429 'App' 2192 info Set dump dir to 'C:\Documents and Settings\All Users\Application Data\VMware\VMware Site Recovery Manager\DumpFiles'
2009-06-29 15:31:49.429 'App' 2192 info Intializing the DBManager
2009-06-29 15:31:49.679 'Vdb' 2192 error Connection: Could not connect to database: -1
2009-06-29 15:31:49.679 'App' 2192 warning DBManager error: Could not initialize Vdb connection: ODBC error: (28000) - MicrosoftSQL Native ClientSQL ServerLogin failed for user 'SRMLogin '.
2009-06-29 15:31:49.679 'App' 2192 error Application initialization error: Could not initialize Vdb connection: ODBC error: (28000) - MicrosoftSQL Native ClientSQL ServerLogin failed for user 'SRMLogin '.
2009-06-29 15:31:49.679 'App' 2188 info serviceWin32,414 vmware-dr service stopped

Re: SRM service does not start automatically

7. Jul 15, 2009 11:45 PM in response to: paradox
Click to view paradox's profile Novice 14 posts since
May 30, 2007
This has been resolved ( in a fashion ). Logged SR with VMWare, after setting dependencies and resetting user account again they determined the database is not mounting fast enough. The fix is to
1) Optimize the DB or
2) script a delayed start. I was pointed unofficially to this http://qvlweb.blogspot.com/2008/08/delaying-service-startup.html

Its working on boot now...

Dan

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities