[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: svnserve Windows Service and iSCSI disk does not start after reboot

From: Keith Moore <Keith.Moore_at_securency.com>
Date: Tue, 15 Jun 2010 10:35:08 +1000

-----Original Message-----
From: eg [mailto:egoots_at_gmail.com]
Sent: Saturday, 12 June 2010 4:58
To: users_at_subversion.apache.org
Cc: Keith Moore
Subject: Re: svnserve Windows Service and iSCSI disk does not start after reboot

On 6/6/2010 10:47 PM, Keith Moore wrote:
> Hello,
>
> I have a physical (not virtual) Windows Server 2003 box set up with svnserve.exe running as an auto start windows service. svnserve starts with the following command line.
>
> "<path to>\svnserve.exe" --service -r "D:\Repositories" --listen-port "3690" --log-file "C:\Logs\svnserve.log"
>
> The repositories are on a SAN (that is D: drive is on the SAN) that the box links to using iSCSI. When the [Windows] server is restarted the svnserve service attempts to start but fails with an error "The Subversion Server service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion."
>
> However, if I wait for windows to boot fully and then manually start the service it works.
>
> If I change the repository root to the C: drive, which is a physical disk on the server, the service starts normally on a reboot. I'm guessing that I need to make the svnserve service dependent on some other service/device but I can't work out which one.
>
> Does anyone have any experience with this type of setup and/or can anyone offer suggestions as to how I can ensure that the svnserve service starts normally when the server is rebooted?
>

You need to add dependency for tcpip

depend= Tcpip

You can do this interactively in the service manager or from the command
line.

My service creation "command" looked something like the following:

sc create svnserve binpath= "\"E:\Program
Files\Subversion\bin\svnserve.exe\" --service -r E:\SVN" displayname=
"Subversion Server" depend= Tcpip start= auto

----------------------------------------------------------

My service already has the tcpip dependency. I installed the Collab binaries and they are already configured this way. I did reply to this thread with the answer I discovered I hope it reached the mailing list.

Basically you need to configure iSCSI so that the 'drive' where the repository is stored is a 'bound volume' that way you ensure that the drive is available before the svnserve service is started.

#####################################################################################
Attention:
The information contained in this message and or attachments is intended
only for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon,
this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the sender and
delete the material from any system and destroy any copies.
#####################################################################################
Received on 2010-06-15 02:36:39 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.