Upgrading the S Nodes in the Cluster
To perform a rolling restart upgrade in S nodes of your cluster, install the new software and configure it on each S node in the cluster.
Execute this procedure on each S node, one at a time. This example procedure uses one S node bng-sbrha-1 (10.212.10.65).
Installing the New SBRC Software on the S Node
Installing the New SBRC Software on the S Node
Execute the following steps to install the new SBRC software package on the S node:
Stop the RADIUS process in the S node.
Execute:
root@bng-sbrha-1: /opt/JNPRsbr/radius/sbrd stop radiusStopping radius server processes waiting for radius 10 seconds elapsed, still waiting radius stopped
Log in to a M node and execute ./sbrd status. Verify that the S node is disconnected from the other nodes.
Execute:
root@bng-mars: /opt/JNPRsbr/radius/sbrd status--------------------------------------------------------------------------- SBR 7.60-R1.50242 cluster 6node_cluster{1s,1sm,2m,2d} on SunOS 5.10 Generic_120011-14 node bng-mars.englab.juniper.net(m) --------------------------------------------------------------------------- Connected to Management Server at: 10.212.10.68:5235 [ndbd(NDB)] 2 node(s) id=1 @10.212.10.188 (mysql-5.5.20 ndb-7.2.5, Nodegroup: 0, *) id=2 @10.212.10.67 (mysql-5.5.20 ndb-7.2.5, Nodegroup: 0) [ndb_mgmd(MGM)] 3 node(s) id=51 @10.212.10.213 (mysql-5.6.36 ndb-7.4.15) id=52 @10.212.10.68 (mysql-5.6.36 ndb-7.4.15) id=53 @10.212.10.66 (mysql-5.6.36 ndb-7.4.15) [mysqld(API)] 5 node(s) id=61 @10.212.10.213 (mysql-5.6.36 ndb-7.4.15) id=62 @10.212.10.68 (mysql-5.6.36 ndb-7.4.15) id=63 @10.212.10.66 (mysql-5.6.36 ndb-7.4.15) id=100 @10.212.10.213 (mysql-5.6.36 ndb-7.4.15) id=101 (not connected, accepting connect from 10.212.10.65) hadm 4354 ndb_mgmd --config-cache=0 --configdir=/opt/JNPRhadm hadm 4908 /bin/sh /opt/JNPRmysql/install/bin/mysqld_safe hadm 5255 /opt/JNPRmysql/install/bin/mysqld --basedir=/opt/JNPRmysql/install --datadir=/opt/JNPRmysqld/data --plugin-dir=/opt/JNPRmysql/install/lib/plugin --log-error=/opt/JNPRmysqld/mysqld_safe.err --pid-file=/opt/JNPRmysqld/mysqld.pid --socket=/opt/JNPRhadm/.mysql.sock --port=3001
Navigate to the install directory.
Execute:
root@bng-sbrha-1: /opt/JNPRsbr/radius/installUnconfigure the node.
Execute:
root@bng-sbrha-1:./unconfigureUnconfiguring SBR Software --------------------------------------------------------------------------- SBR 7.60-R1.50242 cluster 6node_cluster{1s,1sm,2m,2d} on SunOS 5.10 Generic_120011-14 node bng-sbrha-1(s) is configured and processes are down, may be reconfigured if desired --------------------------------------------------------------------------- Unconfiguring Cluster Node... WARNING: You are about to unconfigure this node. Are you sure that you wish to continue? (y,n): y Cleaning directories /opt/JNPRhadm Locating shared directory... drwxrwxr-x 2 hadm hadmg 512 Jan 11 13:25 /opt/JNPRshare/install/6node_cluster WARNING: If you remove the shared directory for this cluster, you will either have to recover the data from another cluster node or reconfigure the entire cluster again. This is neither necessary nor recommended if you are updating an existing configuration. Remove the shared directory for this cluster? [n]: Locating OS user account and home directory... hadm:x:554542:554539:SBR software:/opt/JNPRhadm:/bin/bash hadmg::554539: drwxrwx--- 2 hadm hadmg 512 Jan 11 19:47 /opt/JNPRhadm WARNING: If you remove the OS user account hadm you will have to recreate it, the associated OS group account hadmg, and the associated home directory /opt/JNPRhadm This is neither necessary nor recommended if you are updating an existing configuration. Remove the OS user account? [n]: Unconfigured
Move your original installation to a different location to prevent the removal of files. Be sure not to move the /opt/JNPRshare directory, which should contain your original cluster configuration files. For example, if you previously installed Release 7.6.0, execute the following as root:
Navigate to the opt directory: root@bng-sbrha-1: cd /opt.
Create a new directory: root@bng-sbrha-1: mkdir 760.
Move the configuration files to the new directory: root@bng-sbrha-1: mv JNPRsbr JNPRmysql JNPRmysqld JNPRhadm JNPRndb_mgmd JNPRndbd 760.
Remove the old software package: root@bng-sbrha-1: pkgrm JNPRsbr.
Install the new SBRC software distribution package.
Execute:
root@bng-sbrha-1: cd /opt/tmp pkgadd –dThe following packages are available: 1 JNPRsbr.pkg JNPRsbr - Juniper Networks Steel-Belted Radius (Carrier Cluster Edition) (sparc) 8.50.50242 Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]: 1
Enter 1 to install the JNPRsbr.pkg. The system installs the new software.
Processing package instance JNPRsbr.pkg . . . Installation of JNPRsbr.pkg was successful.
Once the system displays the message Installation of JNPRsbr.pkg was successful, repeat this procedure on the next S node. Once the new software is installed on each S node, proceed to Configuring the New SBRC Software on the S Node.
Configuring the New SBRC Software on the S Node
Configuring the New SBRC Software on the S Node
Configure the new software on each S node, one at a time:
Configure the SBRC software on the S node, using the original cluster configuration files.
Execute:
root@bng-sbrha-1: ./configureConfiguring SBR Software END USER LICENSE AGREEMENT READ THIS END USER LICENSE AGREEMENT ("AGREEMENT") ………… . . . .Do you accept the terms in the license agreement? [n]: y
Enter y to accept the license agreement.
--------------------------------------------------------------------------- SBR 8.50-R1.50765 cluster on SunOS 5.10 Generic_141444-09 node bng-sbrha-1 is not configured and processes are down, needs to be configured --------------------------------------------------------------------------- 1. Unconfigure Cluster Node Not used when merely updating existing cluster definitions. 2. Generate Cluster Definition Creates new or updates existing cluster definitions. Modifies the shared directory but does not modify this node. 3. Configure Cluster Node To be preceded by 'Generate Cluster Definition' on one node. Must be invoked on each and every node of the cluster. 4. Reconfigure RADIUS Server Only on SBR nodes, updates the existing SBR configuration. 5. Create Temporary Cluster Used to approximate a cluster using only this one machine. Intended for migration and demonstration purposes only. 6. Upgrade From Restricted Cluster License Used to upgrade from restricted cluster to regular cluster. Removes database restriction on the number of concurrent sessions and enables the addition of an expansion kit license Enter the number of the desired configuration task or quit (2,q): 3
Enter 3 to select option 3. Configure Cluster Node.
--------------------------------------------------------------------------- SBR 8.50-R1.50765 cluster on SunOS 5.10 Generic_141444-09 node bng-sbrha-1 is not configured and processes are down, needs to be configured --------------------------------------------------------------------------- Configuring Cluster Node...
Specify the name of your existing cluster. In this example the cluster name is “6node_cluster”.
Enter SBR cluster name [bng-sbrha-1]: 6node_cluster
Reading shared configuration from /opt/JNPRshare/install/6node_cluster ......
Migrate the configuration from your previous software release to the new software package. In most cases, you simply need to identify your previous installation. In this example, the cluster configuration is named configure.6node_cluster.tar (see the previous step), and is stored in the /opt/JNPRsbr/radius/install directory. Once you specify the configuration, SBRC migrates your configuration.
Enter:
root@bng-sbrha-1: /opt/JNPRsbr/radius/installReading shared configuration from /opt/JNPRshare/install/6node_cluster Enter absolute path to configure.6node_cluster.tar if you have it, or quit (q) so that you can get it from /opt/JNPRsbr/radius/install on the first cluster node.
Generating configuration files Reviewing configuration files /opt/JNPRsbr/radius/install/tmp/config.ini /opt/JNPRsbr/radius/install/tmp/my.cnf /opt/JNPRsbr/radius/install/tmp/dbclusterndb.gen View (v), accept (a), or reject (r) configuration files: a
Enter a to accept the configuration files.
WARNING: You are about to make irreversible changes to this node. Are you sure that you wish to continue? (y,n): y
Enter y to continue.
Cleaning directories /opt/JNPRhadm /opt/JNPRmysql /opt/JNPRmysqld /opt/JNPRndb_mgmd /opt/JNPRndbd Applying configuration Initializing Session State Register, please wait a few minutes... 19949 Killed Do you want to configure Java Runtime Environment for JDBC Feature [n] : Please enter backup or radius directory from which to migrate. Enter n for new configuration, s to search, or q to quit [/opt/JNPRsbr/radius/install/backups/2010:10:21-08:31:21]: Migrating files, please wait... - WARNING: A manual merge may be required between the files located in /opt/JNPRsbr/radius (working files) and /opt/JNPRsbr/radius/install/backups/2010:10:21-08:32:18 (shipped files)
Press Enter through the following prompts to keep your configuration.
Enter initial admin user (UNIX account must have a valid password) [root]: Configuring for use with generic database Do you want to enable "Radius WatchDog" Process? [n]: Do you want to enable LCI? [n]: Do you want to configure for use with Oracle? [n]: Removing oracle references from startup script Do you want to configure for use with SIGTRAN? [n]: Removing SIGTRAN references from startup script Do you want to configure SNMP? [n]: Configuring Admin GUI Webserver Compatible Java version found : Do you want to install custom SSL certificate for Admin WebServer? [n]:
Enter e when prompted to enable the autoboot scripts.
Enable (e), disable (d), or preserve (p) autoboot scripts [e]: e
The main configuration menu is displayed.
Enter q to quit.
The SBR Admin Web GUI can be launched using the following URL: https://<servername>:2909 --------------------------------------------------------------------------- SBR 8.50-R1.50765 cluster 6node_cluster{1s,1sm,2m,2d} on SunOS 5.10 Generic_141444-09 node bng-sbrha-1(s) is configured and processes are down, may be reconfigured if desired --------------------------------------------------------------------------- 1. Unconfigure Cluster Node Not used when merely updating existing cluster definitions. 2. Generate Cluster Definition Creates new or updates existing cluster definitions. Modifies the shared directory but does not modify this node. 3. Configure Cluster Node To be preceded by 'Generate Cluster Definition' on one node. Must be invoked on each and every node of the cluster. 4. Reconfigure RADIUS Server Only on SBR nodes, updates the existing SBR configuration. 5. Create Temporary Cluster Used to approximate a cluster using only this one machine. Intended for migration and demonstration purposes only. 6. Upgrade From Restricted Cluster License Used to upgrade from restricted cluster to regular cluster. Removes database restriction on the number of concurrent sessions and enables the addition of an expansion kit license READY: last operation succeeded, node configured. Enter the number of the desired configuration task or quit (4,q): q
Start the RADIUS process on the S node.
Execute:
root@bng-sbrha-1:/opt/JNPRsbr/radius/sbrd start radiusStarting radius server processes RADIUS: Process ID of daemon is 14235 RADIUS: Starting DCF system RADIUS: Configuration checksum: 6A 3B 7A D5 Document Root: /opt/JNPRsbr/radius/ root@bng-sbrha-1 [/opt/JNPRsbr/radius] $Starting webserver . 2016-01-11 20:03:18.493:INFO::main: Logging initialized @3821ms . . . . . Webserver started AppleTalk AppleTalk AppleTalk RADIUS: RADIUS: Steel-Belted Radius licenses RADIUS: License String: Additional Info: RADIUS: XXXXXXXXXXXXXXXXXXX SSR Cluster & Management Expansion RADIUS: XXXXXXXXXXXXXXXXXXX SSR Management Expansion RADIUS: XXXXXXXXXXXXXXXXXXX Run license - lab license - 1k sessions RADIUS: RADIUS: Total concurrent sessions licensed: 1000 RADIUS: RADIUS: Unlimited Transactions Per Second is Allowed RADIUS: RADIUS: Licenses enable this server to: RADIUS: Run RADIUS: use Multi Node Cluster RADIUS: connect '3' management and '2' cluster nodes to database RADIUS: RADIUS: Licensed for Steel-Belted Radius Carrier RADIUS: Attribute Editing enabled RADIUS: DCF system started
Check the status of the S node and verify it has properly reconnected to the cluster.
Execute:
root@bng-sbrha-1: /opt/JNPRsbr/radius/sbrd status--------------------------------------------------------------------------- SBR 8.50-R1.50765 cluster 6node_cluster{1s,1sm,2m,2d} on SunOS 5.10 Generic_141444-09 node bng-sbrha-1(s) --------------------------------------------------------------------------- --------------------------------------------------------------------------- Current state of network interfaces: 10.212.10.65.1646 Idle 10.212.10.65.1813 Idle 10.212.10.65.1645 Idle 10.212.10.65.1812 Idle *.1812 *.* 0 0 49152 0 LISTEN *.1813 *.* 0 0 49152 0 LISTEN --------------------------------------------------------------------------- root 14235 radius sbr.xml root 14305 webserver