You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Miao Zhu <mi...@ericsson.com> on 2010/01/12 09:56:14 UTC
SVN Server change Issue
HI Dear,
I have a question about svn server change task.
The status now we are at is:
- we have 2 svn servers, one for daily-work using (http://svn.com, ip:10.0.9.120), another one is for svn server back up (http://svn_bak.com ip:10.0.9.121)
- and both these 2 servers share the same storage which hosts the svn repositories (the storage is mounted as NFS directory)
So, my question is:
===============
if we have svn server down, we want to start to work on svn_bak server.
Most of users checked out source code with ip address( http://10.0.9.120/svnrep1 ) ,
so if I change the ip address of svn back up server from 10.0.9.121 to 10.0.9.120. Can users work well without any change on their local working copy?
I have checked the repository UUID of checked out working copy from each svn server are the same.
So I think may be we can just change the ip address on the back up server to match the down svn server to make users work on going.
But I'm not sure, would you please help to confirm this?
Thanks!
MIAO ZHU
Re: SVN Server change Issue
Posted by Ulrich Eckhardt <ec...@satorlaser.com>.
On Tuesday 12 January 2010, Miao Zhu wrote:
> The status now we are at is:
>
> - we have 2 svn servers, one for daily-work using (http://svn.com,
> ip:10.0.9.120), another one is for svn server back up (http://svn_bak.com
> ip:10.0.9.121) - and both these 2 servers share the same storage which
> hosts the svn repositories (the storage is mounted as NFS directory)
I believe network-mounted repositories are mentioned in the FAQ - they can
generate problems. The preferred solution would be to replicate the
repository using svnsync.
> if we have svn server down, we want to start to work on svn_bak server.
> Most of users checked out source code with ip address(
> http://10.0.9.120/svnrep1 ) , so if I change the ip address of svn back up
> server from 10.0.9.121 to 10.0.9.120. Can users work well without any
> change on their local working copy?
Yes, that should work. Using some DNS-server hacking, you wouldn't even need
to switch IPs of the servers, only the IP a virtual server is resolved to.
Otherwise, 'svn switch --relocate' allows rebinding a WC to a changed
repository URL.
> I have checked the repository UUID of checked out working copy from each
> svn server are the same.
Yes, the UUID is a property of the repository and not affected by the server.
Uli
--
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/
Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************