GPDB is on v4.3 and needs to be upgraded to the later version.
Note: The current database could be v4.3.2 or above, this article instructs how to upgrade the GPDB to a higher version.
Important: If upgrading to v4.3.6.1 and above, the gp_interconnect_type must be UDPIFC. UDP has been deprecated from v4.3.6.1.
Follow the instructions below for upgrading the GPDB to a later version:
gpstop -af
IMPORTANT NOTE: If installing the Greenplum Database 4.3 on a Pivotal DCA system, see "Install the Greenplum Database 4.3 Software Binaries on DCA Systems" below. This section explains how to install Greenplum Database 4.3 on non-DCA systems.
# unzip greenplum-db-4.3.5.3-PLATFORM.zip # chmod +x greenplum-db-4.3.5.3-PLATFORM.bin3. Launch the installer using bash. For example:
# /bin/bash greenplum-db-4.3.5.3-PLATFORM.bin4. The installer will prompt you to accept the Greenplum Database license agreement. Type "yes" to accept the license agreement.
# su - gpadmin # source /usr/local/greenplum-db-4.3.5.3/greenplum_path.sh8. Run the gpseginstall utility to install the v4.3.5.3 binaries on all the segment hosts specified in the host file. For example:
$ gpseginstall -f hostfile9. Once done, start the database.
Important: Skip this section if you are not installing Greenplum Database 4.3 on DCA systems. This section is only for installing Greenplum Database 4.3 on DCA systems. For Non-DCA Greenplum binaries installation, refer to the section above.
# chmod +x greenplum-db-appliance-4.3.5.3-build-1-RHEL5-x86_64.bin # ./greenplum-db-appliance-4.3.5.3-build-1-RHEL5-x86_64.bin hostfile
The file hostfile is a text file that lists all hosts in the cluster, one hostname per line.
# rm -rf /usr/local/greenplum-db # ln -s /usr/local/greenplum-db-4.3.5.3 /usr/local/greenplum-db # chown -R gpadmin /usr/local/greenplum-db
On a DCA system, the "ln" command will specify the install directory created by the DCA installer. An example is shown below:
# ln -s /usr/local/GP-4.3.5.3 /usr/local/greenplum-db
Using gpssh, also update the Greenplum-db symbolic link on all of your segment hosts. For example (as root):
# gpssh -f segment_hosts_file => rm -rf /usr/local/greenplum-db => ln -s /usr/local/greenplum-db-4.3.5.3 /usr/local/greenplum-db => chown -R gpadmin /usr/local/greenplum-db => exit
On a DCA system, the "ln" command would specify the install directory created by the DCA installer. For example:
=> ln -s /usr/local/GP-4.3.5.3 /usr/local/greenplum-db
$ source /usr/local/greenplum-db-4.3.5.3/greenplum_path.sh
On a DCA system, the path to the file will be similar to /usr/local/GP-4.3.5.3/greenplum_path.sh.
gpstart -a
1. If upgrading a version of Greenplum Database between v4.3.0 and v4.3.2, check your Greenplum Database for inconsistencies due to an incorrect conversion of v4.2.x append-only tables to v4.3.x append-optimized tables.
Note: The Greenplum Database system must be started but should not be running any SQL commands while the utility is running.
$ $GPHOME/share/postgresql/upgrade/fix_ao_upgrade.py --host=mdw --port=5432 --report
3. If the utility displays a list of inconsistencies, fix them by running the fix_ao_upgrade.py utility without the --report option.
$ $GPHOME/share/postgresql/upgrade/fix_ao_upgrade.py --host=mdw --port=5432
4. (Optional step) Run the fix_ao_upgrade.py utility with the option --report again. No inconsistencies should be reported.
5. If utilizing Data Domain Boost, re-enter your DD Boost credentials after upgrading from Greenplum Database v4.3.x to latest v4.3.x as follows:
gpcrondump --ddboost-host ddboost_hostname --ddboost-user ddboost_user --ddboost-backupdir backup_directory
Note: If login credentials are not re-entered after an upgrade, the backup will never start because the Greenplum Database cannot connect to the Data Domain system. An error message will be received to check your login credentials.