Resize database instance volume
When you first create a database instance, you specify the size of the volume the instance has in use. If you later on notice that the size is not enough, you can resize the volume either from the web interface or from the CLI. Note that you can only increase the size of the volume, not decrease.
Precautions
Resizing the volume should not affect your data, but you can make a backup of your instance manually before resizing to prevent any data loss.
See the steps to make manual backups in Backups.
Resize volume from the Web interface
-
In the column on the left hand side you can go to
Database->Instancesand locate the instance you want to resize the volume of. -
On the right hand side of the select row, next to Create Backup -button, press the
arrow iconto open up a drop-down list, and selectResize Volume.
-
From there you can specify the
new sizefor the database instance in GB.
Note that the new value must be greater than the existing volume size. -
Confirm the change with
Resize Database Volume.
-
The change should take 1-2 minutes. If the web interface does not automatically update the status from
ResizingtoActive, try to reload the page.If the status is
Resizingfor over 5 minutes, checkI'm having problems with resizing the volumebelow.
Resize volume from the CLI
-
Locate the
instance IDfor the instance you want to resize the volume of: -
Resize the volumeof the instance:for example:
openstack database instance resize volumef37a8ea6-5ed7-4982-8a71-9131756f04ae5 -
After 1-2 minutes, the
statusof the instance should beACTIVE:If the status is
Resizingfor over 5 minutes, checkI'm having problems with resizing the volumebelow.
I'm having problems with resizing the volume
Status stuck on RESIZING
Make sure you have tried to reload the web interface page or ran openstack database instance show $INSTANCE_ID command after 5 minutes of resizing the volume.
If the status of instance is RESIZING after 5 minutes, please contact us.