Zum Inhalt springen

Resize a volume

Diese Seite ist noch nicht in deiner Sprache verfügbar. Englische Seite aufrufen

This tutorial show how you can resize a volume via STACKIT CLI

STACKIT Volumes can only be extended not shrunk.

  • 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 login
Successfully logged into STACKIT CLI.
$ stackit config set --project-id xxx
$ PROJECTID=xxx

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.