Skip to main content

Manage Filesystems

This guide provides an overview of how to create, resize, attach, and delete filesystems.

Create a Filesystem

The region must support the filesystems:create capability in order to create a filesystem.

Use the fluidctl filesystems create command to create a new filesystem. Supported units are Gi and Ti. For example:

fluidctl filesystems create --name test --size "100Gi"
  • --name: The name of the filesystem.
  • --size: The size of the filesystem.

Attach a Filesystem

You can attach a filesystem to an instance during instance creation. This ensures the filesystem is mounted and available for use as soon as the instance is launched.

Use the fluidctl instances create command with the --filesystem flag to attach a filesystem during instance creation. For example:

fluidctl instances create \
--name test \
--type cpu.8x \
--filesystem id=<filesystem-id>
  • --filesystem: The filesystem to attach to the instance.

Resize a Filesystem

info

It is not possible to shrink a filesystem once it has been grown. Ensure you allocate the correct size before resizing.

Use the fluidctl filesystems update command to update a filesystem. For example:

fluidctl filesystems update --id <uuid> --size "200Gi"
  • --id: The ID of the filesystem to update.
  • --name: The name of the filesystem to update.
  • --size: The new size of the filesystem in GB.

Delete a Filesystem

The region must support the filesystems:delete capability in order to delete a filesystem.

caution

Deleting a filesystem is irreversible. Any data stored on the filesystem will be permanently lost and cannot be recovered. Ensure you back up any important data before proceeding.

Use the fluidctl filesystems delete command to delete a filesystem. For example:

fluidctl filesystems delete --id <uuid>
  • --id: The ID of the filesystem to delete.