Introduction
In this tutorial, we will show you how to increase the size of your (bootable) volume.
Prerequisites:
- A Fuga Cloud account
- Running instance (with bootable volume)
- OpenStack CLI tools installed
STEP 1: Volume ID
In order to extend the volume storage, we need to know the volume ID. You can look it up using the following command.
$ openstack volume list
STEP 2: Extend (bootable) volume
Now, let’s extend our volume to 20 GB. Replace the <volume-id> with that of your own.
note: The volume must be detached from an instance.
$ openstack volume set <volume-id> --size 20
STEP 3: Stop and restart
To let your instance know that you have more disk space available on your volume, you have to shut down the machine and start it again, a restart will not do it.
$ openstack server stop <server-name>
$ openstack server start <server-name>
That's it, to confirm that your operating system sees the new volume size you can log in using SSH and use the list block device command:
$ lsblk
Conclusion
You have now extended the bootable volume of your instance using the OpenStack CLI tools.