Expanding the Netezza Performance Server instance and redistributing tables
Learn how to expand the Netezza Performance Server instance.
Before you begin
Procedure
- Ensure that no data slice is degraded.
nzds -issuesMake sure that Netezza Performance Server is in a
healthystate. Also, allow regens to complete. - Ensure that no node is in the
FAILEDstate.nzhw -issuesIf there are failed disks, it is preferable to resolve them before expansion.
If the system is going through rebalance or node failover, wait for the system to comeOnlinebefore expanding. - Provision the Cloud Pak for Data System hardware nodes by using an automation
script.
- Identify the master node.The automated SPU node configuration script must be run from the master node.
Output example:ap node------------------- ----------- --------------- ----------- ----------- | Node | State | Personality | Monitored | Is Master | ------------------- ----------- --------------- ----------- ----------- | enclosure1.node1 | ENABLED | CONTROL | YES | NO | | enclosure1.node2 | ENABLED | CONTROL | YES | YES |In this example,
enclosure1.node2is the master node. - Run the command on the master node to set up enclosure 5 and 6 to SPU
nodes.
/opt/ibm/appliance/platform/xcat/scripts/xcat/automation_script/ips_add_spu_nodes -n e{5..6}n{1..4}This setup process takes 45 - 60 minutes, depending on system size.
When the configuration is completed, the SPU nodes are shut down.
- Identify the master node.
- Run table row counts to validate the data.
nz_db_tables_rowcount - Expand the instance and redistribute
tables.
nzredrexpandYou are suggested to run nzredrexpand through a screen session that is started on the host. The tool outputs progress and status messages to both the console and to the log file,
nzredrexpand.log. The same information is written to both the console and the log file (duplicated).During the topology expand phase, you can monitor the
For more information about the process, see In-field expansion with offline redistribute.sysmgrlog or use nzpush -a status -a to monitor the progress. - Starting from version 11.2.1.1, nzredr is modified for more accurate
estimates and improved redistribution performance. The updated nzredr command
skips tables that are distributed on random that satisfy both of the following criteria:
- The number of extents on the largest data slice is no more than NZREDR_RANDOM_DIST_THRESH1. The default is one extent).
- The total number of extents is no larger than NZREDR_RANDOM_DIST_THRESH2. The default is unlimited.
The threshold values must be passed in the environment with the nzredrexpand command.
Example:Skip the redistribution of randomly distributed tables with 2 or fewer extents on the largest slice.
When expansion needs to be resumed.export NZREDR_RANDOM_DIST_THRESH1=2 export NZREDR_RANDOM_DIST_THRESH2=768 nzredrexpandexport NZREDR_RANDOM_DIST_THRESH1=2 export NZREDR_RANDOM_DIST_THRESH2=768 nzredrexpand --resume - Run table row counts to validate the data again:
nz_db_tables_rowcountFor troubleshooting, see Failures and troubleshooting.