Professional Documents
Culture Documents
Netezza Corporation
Corporate Headquarters
26 Forest St., Marlborough, Massachusetts 01752
tel 508.382.8200 fax 508.382.8300 www.netezza.com
The specifications and information regarding the products described in this manual are subject to change without notice. All statements, information, and
recommendations in this manual are believed to be accurate.
Netezza makes no representations or warranties of any kind, express or implied, including, without limitation, those of merchantability, fitness for a partic-
ular purpose, and non infringement, regarding this manual or the products' use or performance. In no event will Netezza be liable for indirect, incidental,
consequential, special, or economic damages (including lost business profits, business interruption, loss or damage of data, and the like) arising out of the
use or inability to use this manual or the products, regardless of the form of action, whether in contract, tort (including negligence), breach of warranty, or
otherwise, even if Netezza has been advised of the possibility of such damages.
Netezza, the Netezza logo, Netezza TwinFin, TwinFin, Snippet Blades, S-Blades, NPS, Snippet, Snippet Processing Unit, SPU, Snippet Processing Array,
SPA, Performance Server, Netezza Performance Server, Asymmetric Massively Parallel Processing, AMPP, Intelligent Query Streaming and other marks are
trademarks or registered trademarks of Netezza Corporation in the United States and/or other countries. All rights reserved.
Red Hat is a trademark or registered trademark of Red Hat, Inc. in the United States and/or other countries.
Linux is a trademark or registered trademark of Linus Torvalds in the United States and/or other countries.
D-CC, D-C++, Diab+, FastJ, pSOS+, SingleStep, Tornado, VxWorks, Wind River, and the Wind River logo are trademarks, registered trademarks, or service
marks of Wind River Systems, Inc. Tornado patent pending.
APC and the APC logo are trademarks or registered trademarks of American Power Conversion Corporation.
All document files and software of the above named third-party suppliers are provided "as is" and may contain deficiencies. Netezza and its suppliers dis-
claim all warranties of any kind, express or implied, including, without limitation, those of merchantability, fitness for a particular purpose, and non
infringement.
In no event will Netezza or its suppliers be liable for indirect, incidental, consequential, special, or economic damages (including lost business profits, busi-
ness interruption, loss or damage of data, and the like), or the use or inability to use the above-named third-party products, even if Netezza or its suppliers
have been advised of the possibility of such damages.
All other trademarks mentioned in this document are the property of their respective owners.
Document Number: 20668-16
Software Release Number: 5.0.x
Netezza Software Upgrade Guide
Copyright © 2001-2009 Netezza Corporation.
All rights reserved.
PostgreSQL
Portions of this publication were derived from PostgreSQL documentation. For those portions of the documentation that were derived originally from Postgr-
eSQL documentation, and only for those portions, the following applies:
PostgreSQL is copyright © 1996-2001 by the PostgreSQL global development group and is distributed under the terms of the license of the University of
California below.
Postgres95 is copyright © 1994-5 by the Regents of the University of California.
Permission to use, copy, modify, and distribute this documentation for any purpose, without fee, and without a written agreement is hereby granted, pro-
vided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies.
In no event shall the University of California be liable to any party for direct, indirect, special, incidental, or consequential damages, including lost profits,
arising out of the use of this documentation, even if the University of California has been advised of the possibility of such damage.
The University of California specifically disclaims any warranties, including, but not limited to, the implied warranties of merchantability and fitness for a
particular purpose. The documentation provided hereunder is on an "as-is" basis, and the University of California has no obligations to provide maintenance,
support, updates, enhancements, or modifications.
ICU Library
The Netezza implementation of the ICU library is an adaptation of an open source library Copyright (c) 1995-2003 International Business Machines Corpo-
ration and others.
ICU License - ICU 1.8.1 and later
COPYRIGHT AND PERMISSION NOTICE
Copyright (c) 1995-2003 International Business Machines Corporation and others
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so, provided that the above copyright notice(s) and this permission notice appear in all cop-
ies of the Software and that both the above copyright notice(s) and this permission notice appear in supporting documentation.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRAN-
TIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE
COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAM-
AGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in
this Software without prior written authorization of the copyright holder.
ODBC Driver
The Netezza implementation of the ODBC driver is an adaptation of an open source driver, Copyright © 2000, 2001, Great Bridge LLC. The source code for
this driver and the object code of any Netezza software that links with it are available upon request to source-request@netezza.com
Botan License
Copyright (C) 1999-2008 Jack Lloyd
2001 Peter J Jones
2004-2007 Justin Karneges
2005 Matthew Gregan
2005-2006 Matt Johnston
2006 Luca Piccarreta
2007 Yves Jerschow
2007-2008 FlexSecure GmbH
2007-2008 Technische Universitat Darmstadt
2007-2008 Falko Strenzke
2007-2008 Martin Doering
2007 Manuel Hartl
2007 Christoph Ludwig
2007 Patrick Sona
All rights reserved.
Redistribution and use in source and binary forms, for any use, with or without modification, of Botan (http://botan.randombit.net/license.html) is permitted
provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions, and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions, and the following disclaimer in the documentation and/
or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CON-
SEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBIL-
ITYOF SUCH DAMAGE.
Regulatory Notices
Install the NPS system in a restricted-access location. Ensure that only those trained to operate or service the equipment have physical access to it. Install
each AC power outlet near the NPS rack that plugs into it, and keep it freely accessible.
Provide approved 30A circuit breakers on all power sources.
Product may be powered by redundant power sources. Disconnect ALL power sources before servicing.
High leakage current. Earth connection essential before connecting supply. Courant de fuite élevé. Raccordement à la terre indispensable avant le raccor-
dement au réseau.
FCC - Industry Canada Statement
This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to part 15 of the FCC rules. These limits are
designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment. This equipment gen-
erates, uses, and can radiate radio-frequency energy and, if not installed and used in accordance with the instruction manual, may cause harmful
interference to radio communications. Operation of this equipment in a residential area is likely to cause harmful interference, in which case users will be
required to correct the interference at their own expense.
This Class A digital apparatus meets all requirements of the Canadian Interference-Causing Equipment Regulations.
Cet appareil numérique de la classe A respecte toutes les exigences du Règlement sur le matériel brouilleur du Canada.
WEEE
Netezza Corporation is committed to meeting the requirements of the European Union (EU) Waste Electrical and Electronic Equipment (WEEE) Directive.
This Directive requires producers of electrical and electronic equipment to finance the takeback, for reuse or recycling, of their products placed on the EU
market after August 13, 2005.
CE Statement (Europe)
This product complies with the European Low Voltage Directive 73/23/EEC and EMC Directive 89/336/EEC as amended by European Directive 93/68/EEC.
Warning: This is a class A product. In a domestic environment this product may cause radio interference in which case the user may be required to take
adequate measures.
VCCI Statement
Preface
v
Steps Following a Failed Upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4
Default Option Upgrades . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4
Custom Data and Capabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4
Managing System Configuration Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5
Restoring Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5
Upgrade Cleanup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
Enabling Optional Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
Upgrading Client Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
NzAdmin Client Updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
CLI Tools Updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
Web GUI Updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7
SQL Clients. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7
About the Client Kits and CDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7
Obtaining the Latest Netezza Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7
Index
vi
Tables
vii
viii
Preface
This guide describes how to upgrade your Netezza software from Release 5.0 or later to
Release 5.0.x. The Netezza software resides on a Netezza host and controls the basic oper-
ation of the system, such as the starting and stopping of services, system administration
commands, the processing of Netezza SQL commands, and Netezza host operations.
You can also use the instructions in this guide to patch a Netezza release. A patch installa-
tion process is typically much faster than an upgrade, as only the patch steps are required.
This guide does not describe the following procedures:
X Installing the Netezza software for the first time on a host. Netezza systems are
shipped with the Netezza software preinstalled.
X Installing or configuring Netezza client applications, such as NzAdmin or Web Admin,
or SQL clients such as the ODBC, JDBC, or OLE DB. The client applications are
described in the Netezza System Administrator’s Guide, and the SQL clients in the
Netezza ODBC, JDBC and OLE DB Installation and Configuration Guide.
Topics See
Reviewing system prerequisites, supported paths, and spe- “Overview of the Upgrade Process” on page 1-1
cial information about the upgrade and downgrade
processes
Unpacking the upgrade software kit and running pre- “Preparing for the Netezza Upgrade” on page 2-1
upgrade verification checks to ensure that your system is
ready for a software upgrade
Upgrading the Netezza software on your system and “Upgrading the Netezza Software” on page 3-1
enabling the new release
Downgrading your Netezza software to return to the previ- “Downgrading the Netezza Software” on page 4-1
ously running release
ix
Symbols and Conventions
This guide uses the following typographical conventions:
X Italics for emphasis on terms and user-defined values such as user input
X Upper case for SQL commands; for example INSERT, DELETE
X Bold for command line input; for example, nzsystem stop
x
CHAPTER 1
Overview of the Upgrade Process
What’s in this chapter
X Prerequisites
X About the Upgrade Process
X Netezza-Related Software
X Best Practices for a Successful Upgrade
This chapter provides an overview of the process to upgrade the Netezza software. It
includes important steps that you should follow to prepare for an upgrade. These steps
include reviewing the supported upgrade paths, obtaining the release software, and check-
ing the Netezza system for any problems that might prevent an upgrade.
This document uses the term Release 5.0.x to represent Release 5.0 or any service pack of
that release.
Prerequisites
Table 1-1 lists the software, hardware, and other prerequisites that your existing Netezza
system must meet before you can upgrade it to Release 5.0.x. The upgrade process checks
your Netezza system to verify that it meets the hardware and software prerequisites before
upgrading the system.
Supported You can upgrade to Release 5.0.x from Release 5.0 Use the nzrev command, or run
Upgrade including patch levels. To upgrade to or install Release the nzupgrade check command.
Paths 5.0.6 or later, the Netezza system must have HPF v4.4
or later installed.
Note: You cannot upgrade from any prior release such
as 4.0.x or 4.5.x to 5.0.x.
You may downgrade from Release 5.0.x to the 5.0.x
release from which you upgraded. See Chapter 4,
“Downgrading the Netezza Software.”
1-1
Netezza Software Upgrade Guide for Release 5.0.x
Supported This release requires the Netezza TwinFin system hard- Run the nzupgrade check
Hardware ware. Release 5.0.x is NOT supported on z-series or command.
earlier models such as the 5200-, 8000-, or 10000-
series systems.
Supported Red Hat Enterprise Linux 5.3 Run the nzupgrade check
Host OS command.
User Account Make sure that you have the following account Verify that you can log in to the
Information information: Netezza system as the nz user as
Required • Root or equivalent superuser account password to well as root or a user account that
the Netezza system has superuser or sudo privileges.
• The Netezza nz account password Make sure that you can log in to
nzsql using the admin account
• The Netezza admin account password
and password. If the upgrade
commands cannot find the admin
password in your nz account envi-
ronment, you will be prompted for
the password.
7. Test the operation of the new release by verifying that your usual queries and tasks con-
tinue to work as expected. If there are multiple Netezza users at your site, select a few
users to upgrade their clients and test the new release.
8. Enable and/or start to use the new features of the release, and continue to verify the
operation of the system. (The Netezza Release Notes outlines the new features and
changes in this release. Chapter 3 describes the optional features for the release, if
any, and how to enable them.)
9. After the release passes your verification testing, roll out the new release to the Netezza
users. Direct users to update their Netezza client applications.
Upgrade Logs
The upgrade process provides user messaging in the screen display and also captures
extensive message logging to document the steps and actions taken during all phases of
the upgrade. The log files are typically used by Support to diagnose problems that occurred
during a failed upgrade; the information is very technical in nature. The log files reside in
the /nz/var/log directory and are named upgrade.target-rel.date. The upgrade command dis-
plays the name of the uncompressed log file at the beginning of the command session. An
example follows:
Logfile: /nz/var/log/upgrade.5.0.20090108
If you run the upgrade command several times in the same day, the log is appended with
the incremental number n for each additional time the command runs. If an upgrade fail-
ure should occur, the log file provides valuable information that can help Support to
identify the source of the problem.
After the upgrade completes, the cleanup operations compress the log file and save it as
upgrade.target-ver.date.n.gz in the same directory. The upgrade command displays the
name of the compressed log file. An example follows:
Logfile: /nz/var/log/upgrade.5.0.20090108.gz
If the upgrade does not complete successfully, it displays a message similar to the follow-
ing with one or more reasons for the failure:
ERROR: NPS software initial install was NOT successful!
Please contact Netezza Customer Support for assistance.
Make sure that you review the command output messages for more information on the
errors. The messages provide details about the issues that have blocked the upgrade. In
some cases, the errors may be conditions or prerequisites that are blocking the upgrade or
downgrade. Other reasons could include a configuration problem that you may need to
resolve. If you have any questions about the errors, contact Support for assistance; they will
often request the upgrade log files for further investigation.
Upgrade Backups
The upgrade process creates extensive backups of key Netezza host data and configuration
files. It saves a copy of the /nz/data directory and the system configuration files in the
/nz/var/backups directory. After the upgrade completes successfully, it compresses the
backups directory into a file named upgrade.target-rel.date.tar.gz.
The upgrade backups are typically used by Support to troubleshoot an unsuccessful
upgrade, and in very rare cases, to recover files that may not have been replaced following
the upgrade failure.
Downgrade Support
The upgrade process also provides features that can help to ease the process of downgrad-
ing to the previous version of the Netezza software. Downgrades are not common, but they
can be helpful if a new software release introduces a change which has an unexpected
effect on your existing operations or queries. In those cases, downgrades can help to restore
the previous release before users are impacted.
The downgrade process follows the same overall process of an upgrade:
1. Run the pre-downgrade check to ensure that your system is ready for the downgrade.
2. Resolve any required changes to help ensure a problem-free downgrade. You may need
to work with Netezza Support to resolve some of the recommended actions.
3. Downgrade the system.
4. Ensure that custom settings and configuration changes are restored to your system.
5. Test and verify the operation of the previous release; ensure that your usual queries and
operations continue to work without problem.
Always work with Netezza Support or your Sales representative to troubleshoot any upgrade
problems. Never downgrade a Netezza system on your own. Netezza can help you to
address common issues as well as to determine whether a downgrade is necessary.
Chapter 4, “Downgrading the Netezza Software,” provides more detail about this process.
Netezza-Related Software
You use the software upgrade process described in this guide to upgrade the Netezza soft-
ware to Release 5.0.x. The Netezza system has many software components such as flash,
host firmware, a Linux host operating system, and host drivers. These additional applica-
tions are not upgraded during the Netezza software upgrade process; instead, you upgrade
these applications if needed using separate installation programs.
The Netezza software upgrade requires Netezza operational downtime because the Netezza
software must be stopped during the upgrade, but it usually does not require a reboot of
the system. If you want to or need to upgrade your Linux host Red Hat kernel version, con-
tact Netezza Support for assistance and information.
Prepare Backups
Before you upgrade, make sure that you have a recent, full database backup. This provides
some safety and recovery for situations such as power outages, failures, or other events that
might occur during the upgrade process. For a complete description of how to create a
backup, refer to the Netezza System Administrator’s Guide.
To upgrade a Netezza system under the screen program, log in to the Netezza appliance as
root and enter a command similar to the following:
# screen /nz/kit.5.0/sbin/nzupgrade upgrade
If the session is lost, the nzupgrade process continues to run. Log back in to the Netezza
system as root and run the following command to attach to your session:
# screen -r
Note: The screen program is not available on prior releases of Netezza software. If your sys-
tem does not have the screen command, contact Support for assistance.
If you do not use the screen program, and your remote session to the Netezza system is lost
or disconnected, the upgrade continues to run in the background. You can reconnect to the
Netezza system and take either of the following actions:
X Use the ps command to find the nzupgrade process and stop it with the command: kill
-INT pid
X Wait for the nzupgrade process to complete. Use the tail -f command or similar to
watch the log file at /nz/var/log/upgrade.version.YYYYMMDD.# and review the upgrade
progress.
As a best practice, run nzupgrade within the screen program.
This chapter describes how to prepare for the Netezza software upgrade by obtaining the
software upgrade kit, unpacking the software, and running a pre-check to identify any
issues to resolve before the upgrade can occur.
2-1
Netezza Software Upgrade Guide for Release 5.0.x
(fdtver.package.tar.z), and the Red Hat operating system. These additional packages are
not often used during routine Netezza upgrades, but are available for full system installa-
tions or re-installations.
To perform a Netezza software upgrade, you must download the package.tar.z file. The
package.tar.z file provides the Netezza installation program and pre-upgrade check, which
informs you if your system needs other updates before you can proceed with the Netezza
upgrade. Save the file on the Netezza system in a location such as /tmp/release or in loca-
tion that is accessible from the Netezza system. Use the following command to uncompress
the package.tar.z file:
tar -xzvpf package.tar.z
After the Netezza software upgrade, you may need to download other client kits such as
NzAdmin, Web Admin, ODBC, JDBC, OLE DB, or Netezza client CLIs for your Netezza cli-
ent users to update to the latest software release. The downloads will vary depending upon
the clients that you use, but you should ensure that you and your Netezza users upgrade to
the latest clients for best performance.
The Netezza Server Software CD contains the Netezza software installation files.
The Netezza Solaris and AIX Clients CD contains the Netezza client software such as the
CLI and the ODBC/JDBC drivers for Solaris/AIX clients.
The Netezza Linux and HP Clients CD contains the interface software such as the CLI
and the ODBC/JDBC drivers for Linux/HP clients.
The Netezza Windows Client CD contains the Netezza client software such as the NzAd-
min interface, the Netezza CLI, the ODBC/JDBC drivers, and the OLE DB connector. This
CD also includes the Web Admin UI installation program.
The Netezza DataDirect Driver Manager CD contains the Netezza-licensed version of the
ODBC driver from DataDirect Technologies.
The Host Platform Configuration CD (formerly the Netezza Software Support CD) con-
tains various programs, tools, and files for upgrading the Netezza Linux system files.
The Netezza Firmware/Diagnostics/Tools DVD contains firmware and flash for various
devices and components of the Netezza appliance as well as diagnostics and Support
tools.
The IBM Host Firmware CD contains firmware for the IBM host server included in your
appliance.
Mounting CDs
If you use CDs to upgrade your system, you use the mount command to make the system
aware of a CD and you use the umount command to “disconnect” or unmount that CD prior
to ejecting it from the disk drive.
To mount a CD on your Netezza system:
1. Log on as root or become root using the su - command.
2. Place the appropriate CD in the CD tray.
3. Mount the CD using the following command:
mount /media/cdrom
For systems with a DVD/CD-RW drive: mount /media/cdrecorder
4. To change to the mount point, use the cd command and specify the mount pathname
that you used in step 3. This guide uses the term /mountPoint to refer to the applicable
CD mount point location on your system, as used in step 3.
unpack Script
You use the unpack script to extract the contents of the software package file into a new,
empty directory on the Netezza system. The unpack script does not modify or replace any
existing Netezza software files, nor does it change the running version of the software.
Make sure that you change to the directory where the command resides to run the
command.
The script has the following syntax:
./unpack [-f] [unpack_directory]
The -f argument specifies that the command should unpack the upgrade software to the
default directory, which is /nz. You can specify a different location using the unpack_
directory argument.
The script creates a new directory with the following name in the specified location:
kit.release
The release value is a string with two or three digits separated by periods. It represents the
major, minor, and service pack (if applicable) release numbers, such as 5.0 or 5.0.2.
Note: If the kit.release directory already exists, the new directory will be named
kit.release.build, where build represents a unique build number for the software package.
If the build number does not make the directory unique, the unpack script adds unique
integers such as .1, .2, and so on, until the new unpack location is unique.
The unpack script performs some checks to confirm that the upgrade package can be used
on the current Netezza system. For example, it confirms that there is sufficient disk space
in the specified unpack location and that the current host operating system and Netezza
release support upgrades to the kit that you are installing.
You can start the upgrade (which also checks the system) with (as
root):
/nz/kit.5.0/sbin/nzupgrade upgrade
Unpacking complete.
If you are installing from CDs, you can eject the Netezza Server Software CD as it is no
longer needed.
As a next step, run the nzupgrade check command to check the system before you upgrade.
The verification check looks for any issues that might prevent an upgrade or that should be
resolved before upgrading. You could also run the nzupgrade upgrade command to start the
upgrade, which also performs the verification checks and if no problems are found, pro-
ceeds with the upgrade.
Logfile: /nz/kit.5.0/var/log/upgrade.5.0.20090417
You can start the upgrade (which also checks the system) with (as
root):
/nz/kit.5.0/sbin/nzupgrade upgrade
Logfile: /nz/kit.5.0/var/log/upgrade.5.0.20090417.gz
The following is sample command output where the pre-upgrade check detected active
data slice regenerations which could impact the upgrade. The upgrade process instructs
you to retry the upgrade after the regeneration finishes.
----------------------------------------------------------------------
Netezza Performance Server Operating System
Copyright 2007-2009 Netezza Corporation. All rights reserved.
----------------------------------------------------------------------
Logfile: /nz/var/log/upgrade.5.0.B1.20091221.2
As another example, if some of the SPUs on the system are older versions that do not
support Release 5.0.x, the upgrade exits with an error similar to the following:
ERROR: Some SPUs in this system are not supported by NPS version
5.0. Please contact Netezza Customer Support for assistance.
Unsupported SPUs (by hardware ID):
1001, 1003, 1005
For these problems, contact Netezza Support to determine the possible steps to resolve
the issues.
X An existing process such as a data slice regeneration is in progress. If the upgrade
detects that one or more regenerations are active (as in the example in the section
“Running the Pre-Upgrade Check” on page 2-6), an error message stops the upgrade
and instructs you to wait until the process finishes.
X There is a hardware, configuration, or other system problem that must be resolved. For
common problems, the upgrade verification typically provides more information about
commands or steps to resolve the issues. Contact Netezza Support for assistance with
resolving issues that are blocking the upgrade.
X An external table or a view uses a datatype that has been deprecated for use in user
objects, such as TEXT or OIDVECTOR. For external tables, the pre-upgrade check dis-
plays errors and will block the upgrade so that you can recreate those external tables
and cast any deprecated types to supported datatypes. For views, the pre-upgrade
check displays warnings, which do not block the upgrade. Following the upgrade, test
any queries which use those views to ensure that they are operating as expected, and if
necessary, recreate the views and cast deprecated types to supported datatypes.
X The database contains identifiers which do not confirm to the “legal” and supported
characters for an identifier. Although the commands and Netezza user interfaces do
not allow users to create invalid identifiers, it is possible that they could have been
loaded into the database or created by string functions such as trim() or others. Review
the reported identifier problems and change the names of the identifiers to proceed
with the upgrade.
This chapter describes how to upgrade the Netezza software. The chapter also provides
best practices for installing the latest Netezza documentation as well as upgrading client
users and applications.
3-1
Netezza Software Upgrade Guide for Release 5.0.x
Input Description
-f Forces the upgrade to continue without prompting for input. The upgrade
process uses all the default values for any prompts. If the nzupgrade com-
mand has a required argument which does not have a default, the
command exits and you must use the interactive mode.
-D data Specifies the location of the Netezza data directory to use. The upgrade
process checks the value of the NZ_DATA_DIR environment variable; other-
wise, it attempts to determine the data directory relative to the location of
the Netezza kit.
-K kit Specifies the location of the unpacked software kit files. The default is the
location where the nzupgrade command resides.
Note that for downgrades, you can specify the -K argument to point to the
pathname of the kit directory to which you want to downgrade, or you can
run the nzupgrade command from that downgrade kit directory. For more
information, see Chapter 4, “Downgrading the Netezza Software.”
-O old_kit Specifies the location of the existing Netezza kit directory. The default is
the directory referenced by the kit symbolic link.
check Checks the currently active system to verify that the upgrade will succeed,
but does not perform the upgrade. No changes are made to the system. For
more information, see “Running the Pre-Upgrade Check” on page 2-6.
upgrade Upgrades the Netezza software to a new release. This option requires supe-
ruser permissions. It runs the check option by default and proceeds to the
upgrade if the checks pass.
Interactive Upgrades
To upgrade the Netezza software using the interactive process:
1. Log in to the Netezza system as the root user or a user that has sudo or other supe-
ruser privileges.
Note: Make sure that you log in to the active host where the nps resource group is run-
ning. To identify the active host, you can use the crm_resource command as follows:
crm_resource -r nps -W
crm_resource[5377]: 2009/01/31_10:13:12 info: Invoked: crm_resource
-r nps –W resource nps is running on: npsrack1
If you run the nzupgrade command from the standby host, the upgrade checks will fail
and the command exists with a message to run the command from the active host.
2. Change to the directory where the software kit is installed with a command similar to
the following:
cd /nz/kit.5.0
The software kit location is listed at the end of the unpack script output, as shown in
the example on page “How to Run the unpack Script” on page 2-5.
3. Change to the sbin directory using the following command:
cd sbin
4. Run the following command:
./nzupgrade upgrade
Note: If you are remotely connected to the Netezza system, consider using the screen
command (screen ./nzupgrade upgrade). For more information, see “Manage Upgrade
Session Disconnects” on page 1-5.
The command starts the upgrade process. It stops the Netezza system and uses the kit
files in the /nz/kit.5.0.x area to upgrade the Netezza host software. The command also
updates the catalog whenever the new release introduces a catalog change.
Sample command output follows:
----------------------------------------------------------------------
Netezza Performance Server Operating System
Copyright 2007-2009 Netezza Corporation. All rights reserved.
----------------------------------------------------------------------
Logfile: /nz/var/log/upgrade.5.0.20090417.1
Stopping NPS...
System state change complete.
If the upgrade fails, it displays the message “ERROR: NPS software initial install was NOT
successful!” It is important that you investigate and resolve the reasons for a failed upgrade
before you restart the Netezza software. Proceed to the section “Steps Following a Failed
Upgrade” on page 3-4.
The upgrade process creates a backup copy of the old file named filename.release, and
then installs the new version of the file. The backup copy is saved under the
/nz/var/tmp directory. After the upgrade, you can compare the filename.release file to
the new file, and if necessary, edit the new file to apply any customizations that you
require for your environment.
Note: In the sample output, there are two types of messages: the startup.cfg file may
have conflicting changes, but the sysctl.conf file has conflicting changes. The may
have messages usually can be safely ignored. The has conflicting changes messages
are more important; for these files, check the backup file and the newly installed file to
look for the differences. Edit the newly installed file to restore any changes which are
needed for your Netezza system.
Restoring Events
During the upgrade to Release 5.0.x, the upgrade process reviews your Netezza nzevents
and migrates all the rules to the new event format. If you have customized events, this will
preserve your customizations and restore them automatically.
Upgrade Cleanup
After a successful software upgrade, the upgrade process performs the following cleanup
tasks:
X Creates a compressed file of the backups created in the /nz/var/backups directory as
well as the upgrade log saved in the /nz/var/log directory. The backups directory con-
tains copies of the previous release’s /nz/kit/data directory, including any core files,
plus the log files and various system configuration files.
X Deletes the plan files in the previous release’s directory.
commands for managing the Netezza system. To update the CLI tools, install the latest cli-
ent kit. For a description of how to install the CLI, refer to the Netezza System
Administrator’s Guide.
SQL Clients
The SQL clients allow users to access the Netezza system as a data source. Netezza sup-
ports connectivity from clients that use applications such as ODBC, JDBC, and OLE DB to
access the Netezza database. Before you upgrade to a new Netezza software release, it is
recommended that you review the supported SQL client revisions described in the Netezza
Release Notes to ensure that the clients and revisions used at your site will work with the
Netezza release. After you upgrade the Netezza software, your client users may need to
upgrade the drivers to the latest versions for best access performance. For a description of
how to install the ODBC and JDBC drivers, refer to the Netezza ODBC, JDBC and OLE DB
Installation and Configuration Guide.
You can install the contents of the documentation package to a network location or the
Netezza system if you have multiple users at your site who require access to the user
guides.
If you would like to have the latest documentation included on the Netezza system, do the
following:
1. Log on to the Netezza system as nz.
2. Change to the following location:
cd /nz/kit.5.0.x
3. Create a doc subdirectory:
mkdir doc
4. Change to the doc directory:
cd doc
5. If you are installing from CD, do the following:
a. Mount the Netezza Documentation CD.
b. Copy the user guide files using the following commands:
cp /mountPoint/*.pdf .
cp -r /mountPoint/index* .
6. If you are installing from downloaded software, do the following:
a. Copy the documentation package from the downloaded software area to the doc
directory. For example, if the downloaded software is in /tmp/5.0.x:
cp /tmp/5.0.x/doc.package.tar.z .
b. Run the following command:
tar -xzvpf doc.package.tar.z
c. Optionally, delete the doc package file to free the disk space:
rm doc.package.tar.z
This chapter describes how to downgrade a Netezza system from a running 5.0.x release to
a previous 5.0.x version.
Never downgrade the Netezza system unless you encounter issues or changes in behavior
that affect your queries or system operation. Be sure to work with Netezza Support to trou-
bleshoot any issues, as there may be simple steps to resolve them. If Netezza Support
determines that the best course of action is to return to the previous release, Support will
work with you to make that transition.
4-1
Netezza Software Upgrade Guide for Release 5.0.x
successful downgrade. It displays messages about any problems which should or must be
resolved before you can downgrade. The command does not impact the running Netezza
system.
To run the pre-downgrade check:
1. Log in to the Netezza system with a root or superuser account. Note that you can also
use the nz account, or use sudo to run the command with superuser privileges. If you
use an account with superuser privileges, the command also checks the host operating
system to identify any potential problems.
2. Change to the kit directory of the current running release, which is usually the /nz/kit
symbolic link:
cd /nz/kit/sbin
Note: You can also change to the kit directory of the target release to which you are
downgrading (/nz/kit.target/sbin) and run the nzupgrade command from that directory.
If you use this process, omit the -K option in the next step, as the downgrade will auto-
matically use the target release as the destination.
3. Run the following command, where -K specifies the pathname of the kit to which you
want to downgrade.
./nzupgrade -K /nz/kit.5.0 check
The command checks the system and displays the following output. The messages in the
output can vary depending upon the release to which you are planning to downgrade, as
well as any problems that the command finds. The following is sample command output for
a pre-downgrade check that found no issues:
----------------------------------------------------------------------
Netezza Performance Server Operating System
Copyright 2007-2009 Netezza Corporation. All rights reserved.
----------------------------------------------------------------------
Logfile: /nz/var/log/upgrade.5.0.20090417
You can start the upgrade (which also checks the system) with (as
root):
./nzupgrade -K /nz/kit.5.0 upgrade
Logfile: /nz/var/log/upgrade.5.0.20090417.gz
Some of the reported problems may be warnings; these warnings indicate that a downgrade
would proceed, but you should be prepared for certain changes. Errors typically indicate
situations that will prevent the downgrade from running until they are resolved.
Interactive Downgrades
To downgrade the Netezza software using the interactive process:
1. Log in to the Netezza system as the root user or a user that has sudo or other supe-
ruser privileges.
Note: Make sure that you log in to the active host where the nps resource group is run-
ning. To identify the active host, you can use the crm_resource command as follows:
crm_resource -r nps -W
crm_resource[5377]: 2009/01/31_10:13:12 info: Invoked: crm_resource
-r nps –W resource nps is running on: npsrack1
If you run the nzupgrade command from the standby host, the upgrade checks will fail
and the command exists with a message to run the command from the active host.
2. Change to the directory that holds the Netezza software kit to which you want to down-
grade with a command similar to the following:
cd /nz/kit.target_release
3. Change to the sbin directory using the following command:
cd sbin
nzstart
Downgrade Cleanup
After a successful software downgrade, the downgrade process performs the same cleanup
tasks as performed for an upgrade. For a description, see “Upgrade Cleanup” on page 3-6.
X SQL clients such as ODBC, JDBC, OLE DB, and others: Make sure that the clients sup-
port the Netezza release to which you downgraded. For a description of how to install
the ODBC and JDBC drivers, refer to the Netezza ODBC, JDBC and OLE DB Installation
and Configuration Guide.
You can obtain the Netezza client applications on the Netezza Client Software CDs.
Index
B K
backup Knowledge Base, accessing 1-5
files 1-3
Netezza system, prior to upgrade 1-5
L
logs, upgrade 1-3
C
CDs
mounting 2-4 N
Netezza software 2-3
Netezza
unmounting 2-4
documentation, installing 3-7
cleanup
FTP account 2-1
downgrades 4-5
FTP site
upgrades 3-6
about 1-5
CLI tools, updating 3-6
accessing 2-2
client applications
Knowledge Base
downgrade 4-5
about 1-5
updating after Netezza upgrade 1-6
accessing 2-2
upgrading 3-6
software, CDs 2-3
client CDs 3-7
NzAdmin client, updating 3-6
create_system_views.sql script 3-4
nzstart command, running after upgrade 3-4
customized files
nzupgrade command 3-1
restoring after downgrades 4-5
restoring after upgrades 3-4
O
D ODBC clients, updating 3-7
datatypes, deprecated 2-8
documentation
FTP site 3-7 P
installing 3-7 package.tar.z, obtaining latest 1-5
latest updates 3-7 patch kits, looking for 1-5
downgrade pre-downgrade check
about 1-4 about 4-1
cautions 4-1 failures, resolving 4-2
client applications 4-5 prerequisites, upgrade 1-1
failures, resolving 4-4 pre-upgrade check
Netezza software 4-1 about 2-6
pre-downgrade check 4-1 resolving problems 2-7
preparing for 4-1
resolving pre-downgrade check problems 4-2
restoring customizations 4-5 R
running 4-3
release software, downloading 2-1
schedule 4-3
remote login session, managing disconnects 1-5
silent option 4-5
remote session upgrade, recovering following disconnect
downtime, planning 2-8
1-6
F S
FTP
screen command 1-5
account, Netezza 2-1
software release directory, contents of 2-2
latest documentation updates 3-7
software, downloading upgrade kits 2-1
software directory, contents of 2-2
SQL clients, updating 3-7
using to retrieve upgrade software 2-1
system health, verifying 1-5
Index-1
Index
T
two-stage upgrade process 1-6
U
UNIX client CDs 3-7
unpack script
about 2-4
running 2-5
upgrade
backups 1-3
best practices 1-5
cleanup 3-6
client applications 1-6
default options 3-4
failures, how to resolve 1-3
host OS support 1-2
kit, obtaining 2-1
locating latest package.tar.z file 1-5
logs 1-3
Netezza releases 1-1
Netezza-related software 1-4
nzupgrade command 3-1
prerequisites 1-1
pre-upgrade check 2-6
process, about 1-2
restoring options 3-4
running 3-2
schedule 2-8
silent mode 3-1
supported hardware 1-2
two-stage best practice 1-6
user accounts required 1-2
verification process 1-4
workflow 1-2
upgrade kit
obtaining 2-1
unpacking 2-4
upgrade session time-outs, avoiding 1-5
W
Web browser, using to retrieve upgrade software 2-2
Web GUI client, updating 3-7
WGET, using to retrieve upgrade software 2-1
Windows client CD 3-7
Index-2