You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Linstor primary storage: capacity is the sum of all nodes' storage pools, ignoring the resource group's replica count #14959
For Linstor primary storage, CloudStack reports as capacity the sum of the total capacity of every LINSTOR storage pool in the resource group's pool list, on every node. Each volume, however, is stored on place_count nodes of the resource group, so the real capacity is about the sum divided by the replica count (and a single volume can be no larger than one node's pool). CloudStack therefore shows several times the storage that exists, and its allocation checks (pool.storage.capacity.disablethreshold, over-provisioning) work against the inflated number.
LinstorUtil.getCapacityBytes() and LinstorUtil.getStorageStats() (4.22 branch, same in 4.23.0.0):
getRscGroupStoragePools() returns that pool on every node, so the sum grows with the node count while the replica count is ignored.
Steps to reproduce
3 KVM hosts, each with a LINSTOR LVM thin pool of 39 GiB (pool0); resource group cloudstack with place_count 2; Linstor primary storage using that resource group.
Infrastructure → Primary Storage: 116 G total (3 × 39 GiB), although at most ~58 GiB of data fits (2 copies of everything) and no volume can exceed 39 GiB.
With 27 GiB free on the nodes, createVolume of 35 GiB is accepted; attached and written from an instance, the thin pools of the two nodes holding it fill up after about two minutes, DRBD detaches both replicas, and everything else on those pools (other volumes, in our case also the CloudStack management database on the same pool) gets I/O errors.
Divide by the resource group's replica count (getSelectFilter().getPlaceCount()), or ask LINSTOR: linstor resource-group query-size-info <rg> (also in the REST API) returns the maximum volume size the resource group can place, taking replicas and node placement into account.
Activity
boring-cyborg commentedon Dec 2, 2026
Thanks for opening your first issue here! Be sure to follow the issue template!