Objective
To either grow or shrink the total size of the current EBS Volume or Stripe of EBS Volumes.
Background
Over the lifecycle of your Server, it may become necessary to change the total size of the stripe of EBS Volumes. Typically, you will want to grow the size of the volume, but there may be some scenarios where you will want to shrink the size of the volume stripe. Fortunately, the steps to perform both actions is relatively the same.
This tutorial will show you how to restore the EBS contents on a larger EBS volume stripe by creating a new EBS volume stripe based on the size specified by the EBS_TOTAL_VOLUME_GROUP_SIZE input.
Steps
Below are the steps that you will need to make modifications to your volume stripe.
- If you haven't already done so, import the 'Toolbox' ServerTemplate
- Go to your Deployment (Manage -> Deployments).
- Click the nickname of the Server that has the EBS Volumes Stripe attached.
- The "grow and restore" script will use the most recent backup (snapshot) that's available when creating a larger volume stripe, unless the optional override inputs are used. So, you may want to create a manual backup now to preserve any unsaved data.
- Before you grow the size of the volume stripe, you'll need to temporarily disable continuous backups. Run the "EBS Freeze volume backups" script.
- Script Dependencies: The following scripts must be run before you can successfully run the "grow and restore" script.
- For "EBS Stripe Toolbox" - (Stripe)
- EBS Stripe Rightscale tools install
- Under the Server's Scripts tab, use the 'Any Script' option to run the "EBS Stripe volume grow and restore" script. You'll need to specify values for any missing inputs:
- EBS_TOTAL_VOLUME_GROUP_SIZE - Enter the new total size for the EBS Stripe. Note: You will not be able to change the number of EBS Volumes in the Stripe.
- Next, create a manual backup of the volume stripe. Run the "EBS Stripe volume backup" script, to create an EBS Snapshot of each volume in the stripe.
- Re-enable continuous backups. Run the "DB unfreeze binary backups" script.
What feedback to expect
The Events pane will highlight the progress of the operation. Click on the name of an action in the pane to view a detailed output of the action that can be used to troubleshoot the cause of a failure, if necessary.