Skip to main content

Volumes

Volumes provide a way to keep data even after a workload (e.g., a Notebook or a ModelService) is restarted or deleted. They also allow different workloads to share data (with storage providers that supports ReadWriteMany access mode). Volumes are usually connected to host paths and managed by storage providers through a StorageClass.

When setting up a workload that needs persistent storage, you can choose the StorageClass and specify the volume size in the configuration. LLMOS includes built-in StorageClasses like local-path, llmos-ceph-block, and llmos-ceph-filesystem, which let you create volumes on demand.

note
  1. The local-path StorageClass doesn't support resizing volumes or assigning them to specific nodes.
  2. To use the llmos-ceph-block or llmos-ceph-filesystem StorageClasses, you must first enable the Ceph Cluster in your cluster.

Volume List

Create a Volume

When creating a workload like Notebook or ModelService, you can choose to use Add New Volume to automatically create new volumes along with the workload.

But if you want to create a volume manually, you can follow these steps:

  1. Go to the LLMOS Management > Storage > Volumes page.
  2. Click Create to create a volume.
  3. Specify the volume name, storage class, and size.
  4. On the Customize tab, you can specify the volume access mode.
    • Single Node Read-Write: The volume can be mounted by only one workload at a time.
    • Many Nodes Read-Only: The volume can be mounted by multiple workloads, but the workloads can only read the volume.
    • Many Nodes Read-Write: The volume can be mounted by multiple workloads at the same time.
  5. Click Create to create the volume.

Volume Create

Storageclass with Supported Access Mode

Storage ClassSingle Node Read-WriteMany Nodes Read-OnlyMany Nodes Read-Write
local-path
llmos-ceph-block
llmos-ceph-filesystem

Resize a Volume

To resize a volume, you can follow these steps:

  1. Go to the LLMOS Management > Storage > Volumes page.
  2. Click the ⋮ > Expand button of the volume you want to resize.
  3. Specify the new size and click Save.
  4. The volume will be resized automatically in the background.
note

The resize operation may take some time, so please be patient.

Storage providers may not support resizing volumes (e.g., local-storage). If you encounter any issues, please check with the storage provider.

Volume Resize

Delete a Volume

By default, volumes are deleted when the workload is removed. However, if you want to keep the volumes, you can choose to keep the volumes when deleting the workload.

You can check those volumes in the Volumes page and click the ⋮ > Delete button to delete the volume.

Volume Delete Prompt