Resize a volume
This tutorial show how you can resize a volume via STACKIT CLI
STACKIT Volumes can only be extended not shrunk.
Prerequisites
Section titled “Prerequisites”- Switch over to where you have installed the STACKIT CLI
- First use the cli to Authenticate to the API and set the project ID
$ stackit auth loginSuccessfully logged into STACKIT CLI.$ stackit config set --project-id xxx$ PROJECTID=xxxVolume resize
Section titled “Volume resize”Execute the following command to resize a volume:
stackit beta volume resize <VOLUME_ID> --size <DRIVE_SIZE> --project-id <PROJECT_ID>Replace the placeholders in the command as follows:
<PROJECT_ID>: Your STACKIT Project ID<VOLUME_ID>: The ID of the Volume you want to resize<DRIVE_SIZE>: The new size of the Volume in gigabytes (GB)
After resizing the volume, you may need to perform additional steps to utilize the extra disk space, depending on your operating system.
These steps typically involve extending the file system to recognize and use the newly allocated space.