Upgrade SVN

This procedure uses the SVN MultiSite Plus Upgrade procedure to upgrade both your SVN installation and those components of SVN MultiSite Plus that are bound to the specific version of SVN that you have installed. Again, this requires that your MultiSite deployment, including SVN servers, are offline during the time it takes to upgrade at each node. Please plan this procedure accordingly.

  1. Before you start, ensure that you have the latest build of your version of SVN MultiSite Plus which contains the version of SVN to which you intend to upgrade.
  2. Test the new version of SVN in a test environment before going into production with it.
  3. Once you are ready to deploy the new version in your production environment, perform a synchronized stop. See Performing a Synchronized Stop of all nodes.
  4. ** Alert! **Keep Updates Uniform
    All nodes should be updated in the same way, using the same upgrade method. It is vital that SVN behaves in exactly the same way on all nodes. If it doesn't then it is possible that hard to detect quirks will result in repository data going out of sync.

  5. Open a terminal window and login to the server.

  6. Get the latest installer file and make sure it is executable:
    chmod a+x svn-multisite-plus.sh
        
  7. Run the installer:
        ./svn-multisite-plus.sh
    Verifying archive integrity... All good.
    Uncompressing WANdisco SVN MultiSite Plus.............
        ::   ::  ::     #     #   ##    ####  ######   #   #####   #####   #####
       :::: :::: :::    #     #  #  #  ##  ## #     #  #  #     # #     # #     #
      ::::::::::: :::   #  #  # #    # #    # #     #  #  #       #       #     #
     ::::::::::::: :::  # # # # #    # #    # #     #  #   #####  #       #     #
      ::::::::::: :::   # # # # #    # #    # #     #  #        # #       #     #
       :::: :::: :::    ##   ##  #  ## #    # #     #  #  #     # #     # #     #
        ::   ::  ::     #     #   ## # #    # ######   #   #####   #####   #####
    
    Checking SVN
    
    The installer will detect your current SVN installation and provide options for any possible upgrade.

  8. Resume SVN MultiSite Plus. See Starting nodes.
  9. Perform some tests at each node to confirm the update has completed successfully.


Downgrade SVN Binaries

It's possible to downgrade your installed version of Subversion without having to perform a complete reinstallation of SVN MultiSite. Here's how:

  1. You'll need to interrupt SVN usage/replication. We start by disabling Apache to cut SVN repository access, then shutting down SVN MultiSite Plus.
    /etc/init.d/httpd stop
    /etc/init.d/svn-multisite-plus stop
    
  2. Uninstall your current version of Subversion, for arguments sake let's say it's SVN 1.8:
    yum remove subversion*
    This will remove your current installation of Subversion. There will be some SVN-related files that form part of the MultiSite installation. We'll deal with these in the next steps.
  3. Download the SVN MultiSite package that comes bundled with the earlier version of SVN. Install it to a temporary location using the non-interactive mode:
    
    bash svn-multisite-plus.sh --noexec --keep --target /tmp/svn-multisite-plus-svn1.7
    
    This method brings in the necessary files for update whilst making sure that the deployments settings and configuration are not lost during the downgrade.
  4. Next, we'll use yum erase to remove files that are not flagged as 'configuration', then reinstall the earlier versions downloaded in the previous step:
    yum -y erase svn-multisite-plus subversion subversion-debuginfo mod_dav_svn 
    yum -y --nogpgcheck install rpm/* resources/svn/* resources/httpd/*    
    
  5. Restart Apache.
    /etc/init.d/httpd start
  6. Restart SVN MultiSite Plus.
    /etc/init.d/svn-multisite-plus stop