LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-03-2013, 04:04 PM   #1
deoren
Member
 
Registered: Oct 2003
Location: USA
Distribution: Ubuntu
Posts: 216

Rep: Reputation: 30
Question SVN working copy shared via NFS or local SVN working copies + cron job?


Hi,

Thanks in advance for reading this. Here's what I've been doing thus far:

* SVN server with several repos whose contents should be available to all systems
* NFS server with read-only export (that directory contains the various SVN working copies that I want all systems to have access to)
* 30+ other servers with a NFS mount to that NFS servers's export
* Symlinks from that NFS mount point to various locations

The symlinks are to common scripts and config files.

Examples:

* Interactive script to remove old kernels
* Cron script to check for and report patches
* Interactive script to VMware Tools (admittedly it is short)
* logrotate conf files
* Cron script to call Tivoli client to backup specified directories (the list of directories is unique to each system while the script itself is written to run on all systems)

I've been debating going with a different approach:

* SVN server (same as above)
* All servers with individual working copies
* All servers with a cron job that updates the working copies

My main goals are reliability and ease of maintenance. I've had several systems that have "lost" NFS mounts and failed to restore the connections. This led to various cron scripts that did not execute because they couldn't be accessed. I've started to look into a cron script (or Nagios) to monitor NFS mounts and even AutoFS (of which I had little luck), but I came to the realization that I may be making this more complex than I need to.

Between those two approaches (SVN working copies shared via NFS or local SVN working copies), which strikes you as the most reliable? I'm leaning towards local working copies at this point.

Thanks for your time.
 
Old 10-03-2013, 06:57 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
The individual working copies scenarios sounds simpler (based on the assumptions in my head ) - there are fewer components, just the svn working copy and the script to update it.

Just a couple of points:

For your NFS scenario, can you just test for the existence of a known file before your script executes?

A drawback of the local working copy would be the lag between changes being made and migrated out to the other working copies. Is that a risk for you?
 
Old 10-04-2013, 09:11 AM   #3
deoren
Member
 
Registered: Oct 2003
Location: USA
Distribution: Ubuntu
Posts: 216

Original Poster
Rep: Reputation: 30
Thanks for the reply gilead.

Quote:
For your NFS scenario, can you just test for the existence of a known file before your script executes?
Basically a script calling another script, with the parent script verifying that NFS is available? I thought of having a separate cron job that would do something like that and force a remount of the NFS volume if not found. Sounds like a great use of Nagios (which I'm not familiar enough with yet).

Quote:
A drawback of the local working copy would be the lag between changes being made and migrated out to the other working copies. Is that a risk for you?
Not in our setup. Right now I'm the main person making changes to the repos, and the changes I make are often minor ones. That's one reason I'm leaning towards SVN working copies on each of the boxes + a cron job to sync them. Once I do get more familiar with Nagios it could probably run a script to bring the repos into sync if I wanted something more advanced.

NFS is nice when it works though, as everything is instantly up to date & managed from one location.
 
  


Reply

Tags
cron, network, nfs, reliable, svn



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] svn: is not a working copy coolesting Linux - Software 12 01-03-2015 02:41 AM
SVN error "svn: '.' is not a working copy" sagar alias jacky Linux - Server 7 07-30-2013 04:56 AM
copy svn working dir without svn hidden dirs and files? erinspice Linux - Software 4 03-29-2011 05:58 PM
SVN tagging: How to update working copy from a tagged release kenneho Programming 2 01-08-2010 03:46 PM
SVN working copy locked error updating e17 sources. The_Seraphim Linux - Software 0 04-28-2009 03:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration