LVMVolumeGroup
Scope: Cluster
Version: v1alpha1
An interface for managing Volume Groups and Thin pools on the nodes.
These resources might be created both by a user and the sds-node-configurator controller. The sds-node-configurator controller will automatically create an LVMVolumeGroup resource if it detects an existing Volume Group on a node tagged with ‘storage.deckhouse.io/enabled=true’. The controller will fill in both the ‘spec’ and ‘status’ fields. The
spec.thinPools
field must be filled in by yourself.
- spec
Required value
- spec.actualVGNameOnTheNode
Required value
The desired name of a Volume Group. Must be unique for the node it is on.
This field is immutable.
- spec.blockDeviceSelector
Required value
The desired block device selector.
- spec.blockDeviceSelector.matchExpressions
The desired block device selector expressions.
- spec.blockDeviceSelector.matchExpressions.key
- spec.blockDeviceSelector.matchExpressions.operator
Allowed values:
In
,NotIn
,Exists
,DoesNotExist
- spec.blockDeviceSelector.matchExpressions.values
- spec.blockDeviceSelector.matchLabels
The desired block device selector labels.
- spec.local
The desired configuration for a local Volume Group.
- spec.local.nodeName
Required value
The desired node for the LVM Volume Group.
This field is immutable.
- spec.thinPools
The desired Thin-pool configuration.
- spec.thinPools.allocationLimit
Thin pool oversize limit. Default is 150%.
Default:
"150%"
Pattern:
^[1-9][0-9]{2,3}%$
- spec.thinPools.name
Required value
The desired thin pool name.
This field is immutable.
- spec.thinPools.size
Required value
The desired thin pool size. Might be specified as number or percent size of total VG space.
Note, that if you specify the percent size, the thin pool will be automatically extended when VG is extended.
Pattern:
^[0-9]+(\.[0-9]+)?(E|P|T|G|M|k|Ei|Pi|Ti|Gi|Mi|Ki)?$|^[1-9][0-9]?%$|100%
- spec.type
Required value
The type of a VolumeGroup. Might be:
- Local, that is, local if the devices used are not distributed (not Shared LUN).
Allowed values:
Local