以 PDF 格式下載這本書 (1340 KB)
Chapter 11 Upgrading to the Sun N1 Service Provisioning System 6.0This chapter contains instructions for upgrading from the 5.2 or 5.2 Update 2 version of product to the Sun N1 Service Provisioning System 6.0. Note – If you have a version of the software that was released prior to version 5.2, you must upgrade to version 5.2 before you upgrade to the Sun N1 Service Provisioning System 6.0. Upgrading OverviewThe upgrade procedure that you complete depends on whether the N1 Service Provisioning System 5.2 or 5.2 Update 2 release is running on an operating system version that is supported for the Sun N1 Service Provisioning System 6.0. Occasionally, new versions of the Sun N1 Service Provisioning System no longer contain support for operating systems that were previously supported. Upgrading RequirementsWhen upgrading any of the Sun N1 Service Provisioning System applications, the new server on which you install the 6.0 application must meet the following requirements:
Upgrading – Process OverviewThe following process overview describes the tasks necessary to properly upgrade from the Sun N1 Service Provisioning System 5.2 or 5.2 Update 2 release to the Sun N1 Service Provisioning System 6.0.
Upgrading the Master ServerThe 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.
|
% cd /N1SPS6.0-home/server/bin/migrate |
N1SPS6.0-home is the directory where you installed the Master Server.
On Windows, type:
C:\> cd C:\N1SPS6.0-home\server\bin\migrate |
C:\N1SPS6.0-home is the directory in which you installed the Master Server.
Start the migration script.
On Linux and UNIX servers, type:
% ./migrateMS_5.2-6.0.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:\N1SPS6.0-home\6.0\server\bin\migrate\>.\migrateMS_5.2-6.0.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 6.0 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.2 or 5.2 Update 2 Master Server to the 6.0 Master Server. Back up the data on the 6.0 Master Server so that you have a complete and accurate backup of the data to use if necessary.
(Optional) Uninstall the 5.2 or 5.2 Update 2 version of the Master Server.
You can uninstall the 5.2 or 5.2 Update 2 version of the Master Server if you do not want to use it by following the instructions in Chapter 12, Uninstalling the Sun N1 Service Provisioning System 6.0.
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 11–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.2 Update 2 config.properties file is migrated to the 6.0 config.properties file. During the migration, the value of each property in the 5.2 Update 2 file is compared to the value of the property in the 6.0 config.properties file. If the value is the same, the property is ignored. If the value is different, then the 5.2 Update 2 value is copied to the 6.0 config.properties file. If a property exists in the 5.2 Update 2 file and is absent in the 6.0 file, then the 5.2 Update 2 value is added to the 6.0 file. Values for the following properties are not migrated to the 6.0 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.2 Update 2 properties file, you need to manually change the value in the 6.0 config.properties file.
The Sun N1 Service Provisioning System 6.0 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 6.0 Master Server.
Click Hosts.
Click masterserver.
Click the Upgrade Entire 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.
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 .