RHEL: Upgrade Pivotal GemFire from RPM
RHEL: Upgrade Pivotal GemFire from RPM
If your operating system is Red Hat Enterprise Linux (RHEL) and you have installed a previous version of standalone GemFire using RPM, Pivotal recommends that you use RPM distribution to upgrade Pivotal GemFire. You complete the upgrade procedure on every virtual and physical machine that will run GemFire.
When you upgrade Pivotal GemFire on RHEL from RPM, the software is installed by default into /opt/pivotal/Pivotal_GemFire_XXX where XXX corresponds to the version of GemFire (for example, Pivotal_GemFire_820) that you have installed. The Pivotal GemFire installation is owned by the gemfire user in the pivotal group.
When you upgrade Pivotal GemFire using the RPM, the upgrade process installs the new version into its own installation directory (/opt/pivotal/Pivotal_GemFire_XXX where XXX corresponds to the newly installed version). Any older GemFire RPM installations (including those installed with VMware vFabric RPMs) will be removed. Data files from those installations will not be removed and should be moved manually to the new Pivotal installation.
Prerequisites
Before you upgrade, complete the following prerequisites:
- Confirm that your system meets the hardware and software requirements described in Supported Configurations and System Requirements.
- Read Before You Upgrade.
- Use the following steps to download the
Pivotal GemFire RPM.
- From the Pivotal GemFire product page, locate Downloads.
- Download the Pivotal GemFire RPM appropriate for your RHEL operating
system.
- RHEL 6: pivotal-gemfire-8.2.0-17919.el6.noarch.rpm
- RHEL 7: pivotal-gemfire-8.2.0-17919.el7.noarch.rpm
Procedure for Upgrading Pivotal GemFire 6.x.x to 8.2.x
Use the following procedure to upgrade Pivotal GemFire 6.x.x to 8.2.x using RPM:
- Review the items listed in Prerequisites and make any appropriate preparations.
- Stop all members of the system running
with the prior 6.x.x version.
- Shut down all members running a
cache by using the gemfire shut-down-all command:
sudo -u gemfire -E gemfire –J-DgemfirePropertyFile=mygemfire.properties shut-down-all
In the sample command, substitute mygemfire.properties with the location of the previous Pivotal GemFire's gemfire.properties file for the distributed system you are shutting down. -
Shut down any locators. To shut down a locator in 6.x.x deployments, issue the following command:
gemfire stop-locator -port=port -address=ipAddr -dir=locatorDir
Replace port, ipAddr and locatorDir with the appropriate values.
- Make backups of your disk store files.
- Shut down all members running a
cache by using the gemfire shut-down-all command:
- Execute the following rpm command.
If necessary, use sudo to run the command either as root or as
the gemfire user. For example: RHEL 6:
prompt# sudo -u gemfire -E rpm -Uvh pivotal-gemfire-8.2.0-17919.el6.noarch.rpm
RHEL 7:prompt# sudo -u gemfire -E rpm -Uvh pivotal-gemfire-8.2.0-17919.el7.noarch.rpm
The rpm command begins the install process, resolves dependencies, and displays the packages it plans to install.
- Repeat this upgrade procedure for every virtual or physical machine on which you will run Pivotal GemFire.
- Recompile your Java applications against the gemfire.jar in the 8.2.0 version of the product.
- Upgrade your disk store files.
- If you will be upgrading to GemFire 8.2.x from a GemFire version earlier than 6.5.x, upgrade your disk store files by using the DiskConverterPre65to65 tool. See DiskConverterPre65to65 for instructions on running the tool.
- If you are upgrading from GemFire 6.5.x or 6.6.x (or have just upgraded your disks to 6.5 compatibility with the DiskConverterPre65to65 tool), run the gfsh command upgrade offline-disk-store tool to upgrade the disk stores to Pivotal Gemfire 8.2.x. See upgrade offline-disk-store for more information.
- Redeploy your environment's
configuration files to the new version's installation. For example, you may need
to do one of the following tasks depending on your GemFire deployment
configuration:
- If you are want to use the cluster configuration service to configure your entire cluster, see Loading Existing Configuration Files into Cluster Configuration.
- If you are using local configuration files, update each set of configuration files that are local to the distributed system you are upgrading. See Deploying Configuration Files without the Cluster Configuration Service for more information on how to deploy configuration files.
- Point all member sessions to the new
installation of GemFire. For example, you may need to do one of the following
tasks depending on your application's configuration:
- Modify your applications to point to the new GemFire product tree location.
- Copy the gemfire.jar file out of the new GemFire product tree location and replace the existing gemfire.jar file in your application.
- Restart all system members according to your usual procedures. See Starting Up Your System for more information.
Procedure for Upgrading Pivotal GemFire 7.0.x to 8.2.x
The following procedure describes how to upgrade from Pivotal GemFire 7.0.x to 8.2.x.
- Review the items listed in Prerequisites and make any appropriate preparations.
- Stop all members of the system running
with the prior version. For example:
- Open a gfsh prompt.
- Make sure you are connected (via its JMX Manager) to the distributed system you wish to shutdown.
- At the gfsh prompt, type:
gfsh>shutdown
- Type Y at the prompt to shut down your entire distributed system.
- Shut down each locator in the
distributed system by using the stop locator command.
For example:
gfsh>stop locator --name=locator_name
- Make backups of your disk store files.
- Execute the following rpm command.
If necessary, use sudo to run the command either as root or as
the gemfire user. For example: RHEL 6:
prompt# sudo -u gemfire -E rpm -Uvh pivotal-gemfire-8.2.0-17919.el6.noarch.rpm
RHEL 7:prompt# sudo -u gemfire -E rpm -Uvh pivotal-gemfire-8.2.0-17919.el7.noarch.rpm
The rpm command begins the install process, resolves dependencies, and displays the packages it plans to install.
- Repeat this upgrade procedure for every virtual or physical machine on which you will run Pivotal GemFire.
- Redeploy your environment's configuration files to the new version's
installation. For example, you may need to do one of the following tasks
depending on your GemFire deployment configuration:
- If you are want to use the cluster configuration service to configure your entire cluster, see Loading Existing Configuration Files into Cluster Configuration.
- If you are using local configuration files, update each set of configuration files that are local to the distributed system you are upgrading. See Deploying Configuration Files without the Cluster Configuration Service for more information on how to deploy configuration files.
- Point all member sessions to the new
installation of GemFire. For example, you may need to do one of the following
tasks depending on your application's configuration:
- Modify your applications to point to the new GemFire product tree location.
- Copy the gemfire.jar file out of the new GemFire product tree location and replace the existing gemfire.jar file in your application.
- Restart all system members according to your usual procedures. See Starting Up Your System for more information.
What to Do Next
- For a really quick introduction to GemFire, try Pivotal GemFire in 15 Minutes or Less.
- Try a more detailed product tutorial with a sample social networking application. See Pivotal GemFire Tutorial.
- To learn about the cluster Configuration Service, see Tutorial: Creating and Using a Cluster Configuration.
- Go through the remaining QuickStart and code examples. See Setting Up the Product Examples for more information.