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.thinPoolsfield must be filled in by yourself.
- objectspec
Required value
- stringspec.actualVGNameOnTheNode
Required value
The desired name of a Volume Group. Must be unique for the node it is on.
This field is immutable.
- objectspec.blockDeviceSelector
Required value
The desired block device selector.
- array of objectsspec.blockDeviceSelector.matchExpressions
The desired block device selector expressions.
- stringspec.blockDeviceSelector.matchExpressions.key
- stringspec.blockDeviceSelector.matchExpressions.operator
Allowed values:
In,NotIn,Exists,DoesNotExist - array of stringsspec.blockDeviceSelector.matchExpressions.values
- objectspec.blockDeviceSelector.matchLabels
The desired block device selector labels.
- objectspec.local
The desired configuration for a local Volume Group.
- stringspec.local.nodeName
Required value
The desired node for the LVM Volume Group.
This field is immutable.
- array of objectsspec.thinPools
The desired thin pool configuration.
- stringspec.thinPools.allocationLimit
Thin pool oversize limit. Default is 150%.
Default:
"150%"Pattern:
^[1-9][0-9]{2,3}%$ - stringspec.thinPools.name
Required value
The desired thin pool name.
This field is immutable.
- integer or stringspec.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%
- stringspec.type
Required value
The type of a VolumeGroup:
Local— that is, local if the devices used are not distributed (not Shared LUN).
Allowed values:
Local