I forgot to include that our weekly headless reboot is accomplished using a 
Windows Scheduled Task.
This task runs as SYSTEM (which is translated by Windows to NT Authority\SYSTEM 
- and there is no password ;-)
and just calls the batch file that I mentioned.

HTH,
--Mark S

Mark Serencha – Inforonics 
LLC – (m) +1-781-439-0519 – [email protected]


-----Original Message-----
From: Mark Serencha 
Sent: Friday, January 29, 2010 10:39 AM
To: 'Andrew Hogg'; spectrum
Subject: RE: [spectrum] Shutting down and starting up SpectroServer cleanly on 
windows

Hi Andrew and list,

I just dealt with this specific issue last week.
You need to read this entire response, every section is critical.
This approach applies both to SpectroServers and OneClick servers.

Our servers are rebooted weekly to ensure that Windows patch levels are 
current, to comply with audit requirements.
Until we sorted this out, we had periodic crashes of SS or DDM during the 
headless reboots over the weekend.

First, you MUST change a system registry key to allow more than 20 seconds 
(20000 milliseconds) for orderly shutdown of Windows services,
or else Windows will torpedo processd and/or MySQL with disastrous results:
See http://support.microsoft.com/kb/146092
Pick a timeout value that makes sense for your server; I have read that this 
setting has a maximum of 10 minutes (600,000 ms) but I am using 20 minutes 
(1,200,000 ms) and it seems to function OK.

On Windows, the Spectrum processd is a Windows service, and is set for 
Automatic stop/start.
Stopping the processd service will let processd shut down all Spectrum 
sub-components in the prescribed order.
This includes shutting down your SS and ARCHMGR, if they are presently running.
On startup, Windows will start the processd service, and the processd service 
will start all Spectrum processes in the prescribed order.
If you have set your SS.idb ticket to auto-start, the SpectroServer will be 
re-started after a reboot without human intervention.
The same applies to the ARCHMGR.idb ticket, to auto-start the Archive Manager.
I recommend that you DO NOT set the SS.idb flag for retrying on failure, so if 
the SS fails to start (or crashes) for any reason, your VNM.OUT log is 
preserved for crash diagnosis.
The same applies to the ARCHMGR.idb ticket, to preserve the ARCHMGR.OUT log.

On Windows, the Spectrum MySQL database is also a Windows service, but it is 
set for Manual stop/start, so it is managed by processd and not Windows.
However, on any sort of headless reboot, Windows will attempt to stop this 
service before Processd is ready for it to be stopped;
This leads to crashes and SS and/or DDM corruption.
So make sure that during any reboot, processd and all its sub-processes are 
stopped before Windows is asked to shut down.

A good way to ensure proper shutdown order is to use a shutdown batch file with 
"net stop processd & shutdown.exe /r" commands (this syntax uses the reboot 
flag to shutdown.exe).
On Windows 2003, shutdown.exe is located in C:\Windows\System32, not sure if 
that is the same on Windows 2008.

HTH,
--Mark S


Mark Serencha – Inforonics 
LLC – (m) +1-781-439-0519 – [email protected]

-----Original Message-----
From: Andrew Hogg [mailto:[email protected]] 
Sent: Thursday, January 28, 2010 8:44 PM
To: spectrum
Subject: [spectrum] Shutting down and starting up SpectroServer cleanly on 
windows

Currently migrating Spectrum from Solaris to the Windows 2008.  Have been using 
and customising Spectrum on Solaris for around 8 years so highly technical 
answer are most welcome.

My general questions are 

what process do people use to shutdown the spectroserver CLEANLY on server 
restart in the Windows environment? 

what process do people use to startup the spectroserver CLEANLY on server 
startup in the Windows environment?

Under solaris we have our own custom script that runs via the init.d process.

Would like to know whats the common method under Windows.

Also am having a problem that the spectroserver never teminates properly when 
windows server restarts.  Eg. lock file is still there from before the restart.
---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

Reply via email to