This chapter contains instructions for upgrading from the 5.1 version of product to the Sun N1 Service Provisioning System 5.2.
If you have a version of the software that was released prior to version 5.1, you must upgrade to version 5.1 before you upgrade to the Sun N1 Service Provisioning System 5.2. If you have a version of the software that was released prior to version 4.0, you must upgrade to version 4.0 before you upgrade to version 4.1.
The upgrade procedure that you complete depends on whether the N1 Service Provisioning System 5.1 is running on an operating system version that is supported for the Sun N1 Service Provisioning System 5.2. Occasionally, new versions of the Sun N1 Service Provisioning System no longer contain support for operating systems that were previously supported.
When upgrading any of the Sun N1 Service Provisioning System applications, the new server on which you install the 5.2 application must meet the following requirements:
Operating System – The operating system on which you run the 5.2 application must be the same type of operating system on which you were running the 5.1 application. For example, you can migrate a Master Server running on Red Hat Linux Advanced Server 2.1 to a Master Server running on Red Hat Linux Advanced Server 3.0. You cannot migrate a Master Server running on Red Hat Linux Advanced Server 2.1 to a Master Server running on any version of the Solaris OS.
Hardware Architecture – The hardware architecture of the server on which you run the 5.2 application must be the same as the architecture on which you were running the 5.1 application. For example, you can upgrade a Remote Agent from a SPARC based server running on the Solaris OS to another SPARC based server running on the Solaris OS. You cannot upgrade a Remote Agent from a SPARC based server running on the Solaris OS to an x86 based server running on the Solaris OS.
User Ownership of Application – The 5.2 application must be owned by the same user that owns the 5.1 application. For example, if you installed the 5.1 Master Server and assigned ownership to user foo, then the 5.2 Master Server must have user foo assigned as its owner.
The following process overview describes the tasks necessary to properly upgrade from the Sun N1 Service Provisioning System 5.1 to the Sun N1 Service Provisioning System 5.2.
Determine whether the servers that you are upgrading meet the minimum requirements to run the Sun N1 Service Provisioning System 5.2.
See Chapter 2, System Requirements for the Sun N1 Service Provisioning System 5.2.
Complete the instructions to upgrade the Master Server.
Complete the instructions to upgrade the Remote Agents and Local Distributors.
CLI Clients do not need to be upgraded. Simply install the 5.2 version of the CLI Client and uninstall the 5.1 version.
The Master Server application is not upgraded like most software is upgraded. Rather, the new version of the Master Server is installed on the same server as the previous version of the Master Server. Then, the data is migrated from the previous version of the Master Server to the new version of the Master Server.
Migrating data from the 5.1 version of the Master Server to the 5.2 version of the Master Server deletes any data in the 5.2 version of the Master Server. The migration script stops both versions of the Master Server until the script completes the migration. The Master Servers will be unavailable for the duration of the migration.
Verify that the operating system version on the server you want to upgrade is supported by the Sun N1 Service Provisioning System 5.2. For a list of supported operating systems, see Operating System Requirements.
Back up your data before you migrate. See Chapter 9, Backing Up and Restoring, in Sun N1 Service Provisioning System 5.2 System Administration Guide.
Log into the machine as the user who installed the 5.1 version of the Master Server.
Install the 5.2 version of the Master Server on the same server where the 5.1 version of the Master Server is installed.
If you are running a Linux or UNIX system, follow the instructions in How to Install the Sun N1 Service Provisioning System 5.2 on Linux and UNIX Systems to install the Sun N1 Service Provisioning System 5.2 Master Server.
If you are running Windows, complete the following steps.
Stop the 5.1 Master Server by using the Service application in the Windows Administrative Tools to stop the IPC Daemon service.
Set the 5.1 Master Services to start manually, specifically the IPC Daemon and Server.
Install the 5.2 version of the Master Server by following the instructions in How to Install the Sun N1 Service Provisioning System 5.2 Master Server on Windows.
Install the 5.2 version of the Master Server with ownership by the same user and group that owns the 5.1 version of the Master Server.
For Linux and UNIX Master Servers, verify that the database will not be optimized during the migration process.
Check that you do not have any cron jobs scheduled that would start a database optimization while you are migrating the data.
Access a command prompt.
On Linux and UNIX servers, open a shell window and log in as the user that owns the Master Server.
On Windows, open a Command Prompt window.
Change to the directory that contains the migration script.
On Linux and UNIX servers, type:
% cd /N1SPS5.2-home/server/bin/migrate |
N1SPS5.2-home is the directory where you installed the Master Server.
On Windows, type:
C:\> cd C:\N1SPS5.2-home\server\bin\migrate |
C:\N1SPS5.2-home is the directory in which you installed the Master Server.
Start the migration script.
On Linux and UNIX servers, type:
% ./migrateMS_5.1-5.2.sh |
The migration script has the following command line options:
Specify archive_file to which Master Server is archived
Run migration in the background
If you use the -bg option, you need to review the MS-Migration-number.log file to make sure that the migration completed successfully before starting the Master Server.
Migration started : date_and_time ... Master server migration completed successfully: date_and_time Stopping 5.2 Database stop Database in /opt/SUNWn1sps/N1_Service_Provisioning_System_5.2/server succeeded Issuing sync for flushing buffer data to disk. A log of migration can be found in /opt/SUNWn1sps/N1_Service_Provisioning_System_5.2/server/bin/migration/MS-Migration-number.log A log of output of database commands can be found in /opt/SUNWn1sps/N1_Service_Provisioning_System_5.2/server/bin/migration/MS-Migration-DB-CMD-number.log |
Write database migration log output to logfile instead of the default log file
The migration script now turns the fsync() system call off while restoring the database for performance improvement. This option can be used to keep the fsync() system call on.
The migration script now uses a new method to migrate the database. The new method uses binary dumps instead of textual dumps for a significant performance improvement. The -dbtextdump option is provided if you want to revert back to the previous method.
Write migration log output to logfile instead of the default log file
Specify archive_file from which to migrate Master Server
Specify the path of the new Master Server installation.
Specify the path of the old Master Server installation.
Skip Java migration
Default to yes
On Windows, type:
C:\N1SPS5.2-home\5.2\server\bin\migrate\>.\migrateMS_5.1-5.2.cmd |
Follow the instructions on the screen to complete the migration.
When the migration is complete, the following message appears.
Master Server migration completed successfully. |
The listener port numbers for the Postgres database, browser interface, and the Master Server are not migrated. The Sun N1 Service Provisioning System 5.2 Master Server uses the port numbers that you supplied during installation.
Check the log file for any errors that might have occurred during migration.
The migration script displays the location of the log file.
Clear the cache on the browser that you use to access the Master Server browser interface.
If you started a browser session before upgrading the Master Server, graphics and style sheets that are cached in the browser might prevent you from seeing the upgraded browser interface.
Back up the data that you migrated to the new Master Server by using the instructions in Chapter 9, Backing Up and Restoring, in Sun N1 Service Provisioning System 5.2 System Administration Guide.
You cannot restore data from the 5.1 Master Server to the 5.2 Master Server. Back up the data on the 5.2 Master Server so that you have a complete and accurate backup of the data to use if necessary.
(Optional) Uninstall the 5.1 version of the Master Server.
You can uninstall the 5.1 version of the Master Server if you do not want to use it by following the instructions in Chapter 11, Uninstalling the Sun N1 Service Provisioning System 5.2.
This section describes details about the data that is migrated from the previous version of the Master Server to the new version of the Master Server.
The following table details the types of data that are migrated on the Master Server.
Table 10–1 Migration Overview
Data on the Master Server |
Is the Data Migrated? |
Mechanism for Migration |
---|---|---|
PostgresSQL data |
Yes |
SQL scripts |
CLI Client script for changes to existing commands |
No | |
Migration of objects serialized through CLI Client |
No | |
Migration of changes to the config.properties file on each host |
Yes |
Properties listed in the file are migrated using the details found in Migration Details for the Properties File. |
Resource migration |
Yes |
Copy the resources directory. |
Logger Configuration file |
No | |
User interface customizations |
No |
The 5.1 config.properties file is migrated to the 5.2 config.properties file. During the migration, the value of each property in the 5.1 file is compared to the value of the property in the 5.2 config.properties file. If the value is the same, the property is ignored. If the value is different, then the 5.1 value is copied to the 5.2 config.properties file. If a property exists in the 5.1 file and is absent in the 5.2 file, then the 5.1 value is added to the 5.2 file. Values for the following properties are not migrated to the 5.2 config.properties file:
webserver.TomcatHome
rsrc.localrepo
db.port
db.password
db.hostname
db.instancename
db.username
db.type
db.maxconnections
hostdb.ms.ipaddress
hostdb.ms.port
note.mailsubject
net.server.nconn
net.server.type.1
net.server.ip.1
net.server.port.1
net.server.parms.1
note.url
pe.defaultUserToRunAs
hostdb.ms.connectiontype
pe.maxSimulPlans
If you have changed the values for any of these properties in the 5.1 properties file, you need to manually change the value in the 5.2 config.properties file.
The Sun N1 Service Provisioning System 5.2 provides an automatic upgrade utility that allows you to upgrade Remote Agents and Local Distributors by using the browser interface to the Master Server.
For information on upgrading by using a CLI command, see Overview of the node Commands in Sun N1 Service Provisioning System 5.2 Command-Line Interface Reference Manual.
Migrate the Master Server before upgrading Remote Agents and Local Distributors.
Log in to the browser interface of the Sun N1 Service Provisioning System 5.2 Master Server.
Click Hosts.
Click masterserver.
Click the Update Entire N1 SPS network... button.
A window opens and displays a list of hosts that are being upgraded. The progress of the upgrade is also displayed. When the process completes, the window displays the following message.
Host Update not yet complete. |
Click the Close button.
To complete the second phase of the upgrade, click the Update Entire N1 SPS network... button again.
A window displays a list of hosts that are being upgraded. The progress of the upgrade is also displayed. When the process completes, the status for each of the hosts displays as Updated.
Click the Close button.
The upgrade is complete.
Prepare the Hosts that you upgraded.
Before you can run a Plan on a Host that you upgraded, you must Prepare the Host. To Prepare Hosts, follow the instructions in How to Prepare a Physical Host in Sun N1 Service Provisioning System 5.2 System Administration Guide .