Upgrading to CloudByte ElastiStor Patch

Prerequisites

  • Download the patch.
  • Copy the patch to the Nodes at the location /cbdir/patch.
  • Ensure no new Storage Volumes are provisioned.
  • Do not create Snapshots during the upgrade activity.
  • Back up ElastiCenter and Node configurations.. For details, see Backup Node configurations.
  • Install the following configuration utilities on all the Nodes:
    • cp configobj-4.4.0-py2.5.egg /usr/local/lib/python2.7/site-packages
    • cd /usr/local/lib/python2.7/site-packages
    • python easy_install.py configobj-4.4.0-py2.5.egg

Procedures

The following sections explain the patch upgrade scenarios.

Scenario 1: Installed ElastiStor in EC-HA mode

  1. (On secondary Node) Run the following commands to stop the ElastiCenter sync:
    1. service cbc_ec_secondary onestop
    2. ps -auxww | grep masterha | grep -v grep
  2. Move the primary Node to Maintenance state.
  3. SSH to the primary Node.
  4. Go to the location /cbdir/patch/.
  5. Run the following command to untar the patch: tar -xzvf patch.tar.gz
  6. Do the following to upgrade Node:
    1. Run the command python apply_patch.py
    2. Select option 2.
  7. Do the following to upgrade the Kernel:
    1. Run the command python apply_patch.py
    2. Select option 3.
  8. Do the following to upgrade ElastiCenter:
    1. Run the command python apply_patch.py
    2. Select option 1.
  9. Run the following command to reboot the primary Node: reboot.
  10. After the Node is online, move it to Available state.
  11. Bring down the secondary Node.
  12. SSH to the secondary Node.
  13. Repeat step 4 to step 9 on the secondary Node.

Scenario 2: ElastiCenter and Node installed together

  1. Move the Node to Maintenance state.
  2. SSH to Node.
  3. Go to the location /cbdir/patch/.
  4. Run the following command to untar the patch: tar -xzvf patch.tar.gz
  5. Do the following to upgrade ElastiCenter:
    1. Run the command python apply_patch.py
    2. Select option 1.
  6. Do the following to upgrade the Node:
    1. Run the command python apply_patch.py
    2. Select option 2.
  7. Do the following to upgrade the Kernel:
    1. Run the command python apply_patch.py
    2. Select option 3.
  8. Run the following command to reboot ElastiCenter: reboot.

Scenario 3: ElastiCenter and Node on the different machines

  1. SSH to ElastiCenter.
  2. Go to the location /cbdir/patch/.
  3. Run the following command to untar the patch: tar -xzvf patch.tar.gz
  4. Do the following to upgrade ElastiCenter:
    1. Run the command python apply_patch.py
    2. Select option 1.
  5. Run the following command to reboot ElastiCenter: reboot.
  6. After ElastiCenter is online, move the Node to maintenance mode.
  7. Go to the location /cbdir/patch/.
  8. Run the following command to untar the patch: tar -xzvf patch.tar.gz
  9. Do the following to upgrade the Node:
    1. Run the command python apply_patch.py
    2. Select option 2.
  10. Do the following to upgrade the Kernel:
    1. Run the command python apply_patch.py
    2. Select option 3.
  11. Run the following command to reboot the Node: reboot.
  12. Repeat step 6 to step 11 for all the Nodes.