Skip to content

stratumctl storage-classes

Manage storage classes

Terminal window
stratumctl storage-classes [flags]

Aliases: storage-class, sc

Create a storage class (bootstrap-admin)

Terminal window
stratumctl storage-classes create <name> [flags]
Terminal window
stratumctl storage-classes create fast --driver lvm-thin --pool vg_fast
stratumctl storage-classes create replicated --driver ceph-rbd --pool volumes --default --max-iops-limit 16000
Flag Type Default Description
--default bool false Mark as default for this driver
--default-iops-limit int 0 IOPS limit a new volume gets when it asks for none
--default-throughput-limit-mbps int 0 MB/s limit a new volume gets when it asks for none
--description string Free-form description
--display-name string Human-friendly display name
--driver string lvm-thin Driver (lvm-thin | ceph-rbd)
--max-iops-limit int 0 The most IOPS a volume of this class may ask for
--max-throughput-limit-mbps int 0 The most MB/s a volume of this class may ask for
--pool string Backend pool name

Delete a storage class (refused if any volumes/snapshots/images reference it)

Terminal window
stratumctl storage-classes delete <name> [flags]
Terminal window
stratumctl storage-classes delete fast

Describe a storage class

Terminal window
stratumctl storage-classes get <name> [flags]
Terminal window
stratumctl storage-classes get replicated
stratumctl storage-classes get replicated --output json

List storage classes

Terminal window
stratumctl storage-classes list [flags]
Terminal window
stratumctl storage-classes list
stratumctl storage-classes list --output json

Replace a storage class’s per-volume I/O default and maximum (bootstrap-admin)

Terminal window
stratumctl storage-classes set-qos <name> [flags]

Replaces all four QoS fields at once; a flag not passed becomes “none”:

Terminal window
stratumctl storage-classes set-qos replicated --default-iops-limit 3000 --max-iops-limit 16000
Terminal window
stratumctl storage-classes set-qos replicated --default-iops-limit 3000 --max-iops-limit 16000
stratumctl storage-classes set-qos replicated --default-throughput-limit-mbps 125 --max-throughput-limit-mbps 500
Flag Type Default Description
--default-iops-limit int 0 IOPS limit a new volume gets when it asks for none
--default-throughput-limit-mbps int 0 MB/s limit a new volume gets when it asks for none
--max-iops-limit int 0 The most IOPS a volume of this class may ask for
--max-throughput-limit-mbps int 0 The most MB/s a volume of this class may ask for

Capacity + utilization stats (refreshed every 60s by the pool poller)

Terminal window
stratumctl storage-classes stats <name> [flags]
Terminal window
stratumctl storage-classes stats replicated
stratumctl storage-classes stats replicated --output json