Tutorial: How to Migrate an Access Server Cluster
Migrate an existing Access Server cluster deployment to a new server environment.
Overview
Use this tutorial to migrate an existing Access Server cluster deployment to a new server environment. This process is helpful when you need to:
Move your cluster to a new infrastructure.
Migrate to a new MySQL backend.
Upgrade Access Server as part of the transition.
Decommission existing cluster nodes.
Cluster migrations require careful handling of your database and node configurations. This guide walks you through backing up the existing MySQL cluster data, creating a new cluster, restoring the configuration, and joining additional nodes to complete the migration.
Prerequisites
A new Access Server installation using the same version as your existing cluster.
Important
Using the same version avoids schema mismatches during database restore.
A new MySQL database to serve as the cluster backend.
Access to your existing MySQL deployment to perform a database backup.
Administrative access to both the Admin Web UI and the server CLI.
Take a backup of the following MySQL tables:
as_certs as_config as_notification as_userprop
Use
mysqldump(or your preferred MySQL backup method) to export these tables.Tip
Backing up only these tables ensures you migrate the cluster configuration without carrying over transient log or session data.
Use the new Access Server installation to initiate a fresh cluster and connect it to the new MySQL database.
Start the cluster setup
Sign in to the Admin Web UI.
Click Configuration > Cluster.
Click the toggle to Setup a New Cluster.
Enter the required information to create the new cluster using your new MySQL backend.
Confirm that the new cluster initializes successfully.
Restore your configuration data
Connect to the Access Server console and get root privileges.
Stop services:
service openvpnas stop
Restore your MySQL backup to the new database.
Start services:
service openvpnas start
After the restart, the new cluster should reflect the same configuration as the original.
If your migration includes upgrading Access Server to a newer version, perform the upgrade before adding additional nodes.
Refer to this tutorial: Tutorial: Update Your Access Server Version.
Once the upgrade is complete and the primary node is running the desired version, you can continue with adding new nodes.
Add additional nodes to complete the migration.
Important
All nodes must run the same Access Server version as the primary cluster node to avoid configuration and schema mismatches.
Sign in to the Admin Web UI on each new node.
Click Configuration > Cluster.
Click the toggle to Join Existing Cluster.
Enter the required information to join the existing cluster.
If you access your cluster through a DNS round-robin hostname, update the DNS records so clients resolve to the new cluster nodes instead of the old ones.
Identify the DNS A records used for VPN client connections (for example, vpn.example.com).
Remove the IP addresses of the old cluster nodes from the DNS record set.
Add the new IP addresses of the new cluster nodes.
Lower the DNS TTL temporarily (for example, to 60-300 seconds) to speed propagation during the transition.
Verify resolution from multiple locations using:
nslookup vpn.example.com
An example output:
Server: 203.0.113.254 Address: 203.0.113.254#53 Non-authoritative answer: Name: vpn.example.com Address: 198.51.100.10 Name: vpn.example.com Address: 192.0.2.159
Confirm that VPN clients can resolve and connect to the new cluster nodes successfully.
Important
Some clients may cache DNS results. Allow a short window for DNS expiration before entirely shutting down old nodes.
After your new cluster is fully operational, upgraded (if applicable), and all desired nodes have joined:
Tip
If your process allows, keep the old nodes powered off but available for a short rollback window before deleting them permanently.
Shut down Access Server services on each old cluster node:
service openvpnas stop
Remove or archive old server instances according to your organization's process.
Update firewall rules, monitoring systems, or infrastructure automation to remove references to the old nodes.
Verify that no client traffic reaches the old cluster and that the new environment now handles all sessions.