Windows Server 2008 long restart

OrenRozen
OrenRozen used Ask the Experts™
on
On a new HP DL360G5 (2 x CPU + 16GB), installed Windows Server 2008 (as VM on ESXi).

The server 2008 is a DC with the applications SQL 2005 STD and Exchange 2007.

It takes about 10 minutes for the OS to shutdown (stuck on Stopping Services) and about 10 minutes to Startup (Stuck in Applying computer settings).

how can I detect the reason for that behavior?

Thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
IT Engineer
Commented:
I suspect the exchange, does this for me all the time :)
You can just try to manually stop the Exchange services before rebooting and then issue a reboot of the server.

Commented:
You a nlook at your Event Log to determina what are you waiting for... starting and stopping services usually makes entries in Event Log.
are the dns settings correct? could be having network profile issue
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Rajith EnchiparambilOffice 365 & Exchange Architect
Commented:
Typical problem of installing exchange 2007 on a DC.

Check my blog for more info. http://www.howexchangeworks.com/2009/07/exchange-2007-server-takes-too-long-to.html

Rajith.

Author

Commented:
Thanks Rajith and GeoSs.

Stoping the exchange services before restart / shutdown, reduced the shutdown time to 2 minutes.

Any idea way it takes 10 minutes to load?

Thanks.
George SasIT Engineer
Commented:
Well , this is Exchange ... it takes time to startup / shutdown.
And when installed on a DC will take a bit more.
You can evantually make a batch file to be executed upon reboot that will shut down your exchange first.

You can also try to run a msconfig and under "Boot" tab , click "Advanced options".
Then assign more than 1 CPU at the "number of processors" used under boot. This should make it a bit faster.
Expert of the Quarter 2009
Expert of the Year 2009
Commented:
Basically the reason it takes so long to stop is that the domain stops before Exchange. Exchange talks to the domain controller when it is shutting down. When Exchange is on a DC it only talks to itself, no others. Therefore because the domain is no longer there, the services have to time out.
Stopping Exchange before rebooting ensures that the Exchange services are stopped gracefully.

Given the spec of the system, I would have recommended that the DC be put on a separate VM, which would improve performance considerably.

Simon.

Commented:
DC should not be installed on VM. It may causing some problems because VM work is scheduled by host in a special manner.

Author

Commented:
The answers solved the shutdown process.

What about startup? it still takes about 10 minutes. No way to fix that?

Commented:
You can set your Exchange system services as dependent on AD DS. So you are sure DS are started when Exchange tries to start.
Expert of the Quarter 2009
Expert of the Year 2009

Commented:
There is no problem with having domain controllers on VMs. The only issue comes with the time. I have clients with their entire server farm in VMs without any issues.

Ensure that the server is using itself for DNS, that can drastically speed things up due to the behaviour of Exchange.

Simon.
George SasIT Engineer

Commented:
Same here , 60% og my setup runs VM... over 100 servers.
George SasIT Engineer

Commented:
Microsoft would not recommend anything that is not Microsoft :)

Author

Commented:
Hi guys,

Exchange is definitely the problem when running on the DC.

The way I solved it was creating 2 scripts. one for stoping all exchange services and a second for starting all services.

added these scripts to the startup/shutdown option in the GPO.

Shutdown takes about 2 minutes.
startup takes about 10 minutes and ALL services are up.

Thanks for all your help.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial