Follow this procedure if you're currently using SVN MultiSite 4.2. If you are using a different version of SVN MultiSite you should review this instructions in the chapter 5. Upgrading Subversion MultiSite.
This upgrade procedure involves the following steps:
Required Time: the upgrade process may take as little as 20-minutes per server. However, on larger deployments the time required may be longer. It may be worth running through the procedure to see if any of your steps will require extra time.
During most of this process Subversion will be in a read-only state so either complete the upgrade out of development hours and ensure that your developers are aware of the brief Subversion outage.
1.1 Open the Admin Console, on the left-hand menu click Stop Proxy.
1.2 Check that radio button for "Synchronized Stop of all proxies", then click Continue. MultiSite will now wait for any remaining transactions to complete, after which all nodes will stop listening, stopping replication.
2.1 Open the Admin Console and click on the System tab.
2.2 Click on Export Settings. Note the filename and location, then click on Backup Settings. Settings and user data will be exported to the resulting backup directory, the file that you will need to re-import is called access-control.xml
Using LDAP?
Near the end of the upgrade process you will need to reapply the settings for any LDAP authorities that you are using. You may benefit from making a record of these settings now.
IMPORTANT: When you add the the LDAP auths into 4.2. the Order field for each LDAP auth needs to be exactly the same as the corresponding ldap auths in the MS installation you are upgrading from.
3.1 Perform a reset on all nodes. A reset purges all temporary data which will ensure that all nodes will be in the same state after the upgrade.
Open a terminal and navigate to the <INSTALL>/svn-replicator/bin/
directory. Run reset, like so:
[root@localhost bin]# perl reset ===================== WARNING ======================== This is an irreversible operation. It will delete the transaction logs for this replicator. You *must* run the reset command on all the replicators to ensure there is no lingering state. Are you sure you want to reset the replicator transaction log - Y|N ? [N] : Y Shutdown in progress .......May 20, 2013 11:01:17 AM org.nirala.trace.Logger info INFO: Invoked from WANdisco installation at: /home/wandisco/svn-replicator May 20, 2013 11:01:17 AM org.nirala.trace.Logger info INFO: forceSyncPrevayler set to : false Sending kill signal to 20851... Done Shutdown complete Reset done.
Repeat this for all nodes.
4.1 Create an archive of the svn-replicator
directory.
/user/temp/wandisco/svn-replicator/
/user/temp/wandisco/svn-replicator/liband run the upgrader script, using the command:
java -jar svn-replicator.jar -upgrade <path><path> is the path to the svn-replicator directory of your current installation, e.g.
/opt/wandisco/svn-replicatorRead more about using the upgrader script.
2) Have you run synchronized stop on replicators at all nodes Y or N ? 3) Have you run reset command from the /bin directory at all nodes? Y or N ? 4) Confirm that you wish to upgrade the installation at: /wandisco/svn-replicator If you proceed, files will be overwritten. Y or N ?Answer "Y" to all prompts. If there's anything you need to complete, open up a new terminal window and complete the requirement before continuing.
Alert
Don't forget to repeat these steps for each node.
In 4.2 Build: 3256 we introduced the ability to run with simultaneous LDAP and internal authentication. Adding this feature required a small change to the Access Control database with the addition of a 'user type' field that recorded whether a user was added internally or supplied from an LDAP service.
6.1 In order to import data from an earlier version of MultiSite you will need to first copy the backup (backup.xml or access-control.xml) file that you created in step 2 into the utils directory (<:INSTALL-DIR>/svn-replicator/utils/
) which contains three conversions scripts. You will need to apply the script that corresponds with the version of SVN MultiSite from which you are upgrading. i.e.
perl convertac42-42-latest.pl backup.xml localOR
perl convertac42-42-latest.pl backup.xml ldap
Running the conversion script will create a new file in the utils folder.
So you backed up your data, installed the latest version MultiSite, if it was neccessary, undated your backup for import into the latest version of MultiSite. Now it's time to import your backed up data.
Use this procedure to restore user information, although any system settings will need to be manually applied. Important: if you're using LDAP then you should re-enter your LDAP authoritie before importing your users.
7.1 From the Admin Console, click on the System tab. Click on Import Settings. Click on the magnifying glass browse icon and navigate to the utils folder.
7.2. Select the new MS425-convert-access-control.xml file, then click on the Import Settings button.
7.3 You'll see the import bar progress until you get an "import complete" message.
7.4 When the import is complete check that the users, teams and rules have been imported successfully from the previous MS installation. Test the individual node by trying an svn checkout with the the imported configuration. Also, manually add the svn repositories you are using under Proxy/SVN Settings.
Important All files for use with WANdisco MultiSite should use UTF-8 encoding (and/or single-byte encoding if there are no none-ASCII characters). Any other encoding e.g. Unicode will not be parsed correctly.
7.5.
You've now completed the upgrade. Check that your settings such as scheduled DN rotation and consistency checks are still setup to your requirements. Complete some test commits and check the dashboard to ensure that replication is working.
You can read more about how to use the upgrader script by running it with the -help flag.
$ java -jar svn-replicator.jar -help
Alert
Valid parameters are:
-dprefs show dynamic preferences.
-nodes show node information.
-upgrade <path> upgrade an existing installation at the specified path.
-upgradeNoConfirm <path> upgrade an existing installation at the specified path WITHOUT PROMPTING FOR CONFIRMATION.
-help | -h show help
Copyright © 2010-2013 WANdisco
All Rights Reserved
This product is protected by copyright and distributed under
licenses restricting copying, distribution and decompilation.