> ## Documentation Index
> Fetch the complete documentation index at: https://docs.siderolabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

> LVMVolumeGroupConfig is an LVM volume group config document.
Defines volume group and selector for backing disks.


# LVMVolumeGroupConfig

```yaml theme={null}
apiVersion: v1alpha1
kind: LVMVolumeGroupConfig
name: vg-pool # Volume group name.
# The provisioning describes how the Physical Volumes are provisioned.
provisioning:
    # Matches disks to initialize as physical volumes.
    volumeSelector:
        match: volume.partition_label.startsWith("r-lvm") # CEL expression matching a disk or partition to use as a physical volume.
```

<table>
  <thead>
    <tr>
      <th>Field</th>
      <th>Type</th>
      <th>Description</th>
      <th>Value(s)</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>`name`</td>
      <td>string</td>
      <td>Volume group name.<br /><br />Must be 1-63 chars: ASCII letters, digits, hyphens, underscores.</td>

      <td />
    </tr>

    <tr>
      <td>`provisioning`</td>
      <td><a href="#provisioning">ProvisioningSpec</a></td>
      <td>The provisioning describes how the Physical Volumes are provisioned.</td>

      <td />
    </tr>
  </tbody>
</table>

## provisioning

ProvisioningSpec describes how the Physical Volumes are provisioned.

<table>
  <thead>
    <tr>
      <th>Field</th>
      <th>Type</th>
      <th>Description</th>
      <th>Value(s)</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>`volumeSelector`</td>
      <td><a href="#volumeselector">LVMVolumeSelectorSpec</a></td>
      <td>Matches disks to initialize as physical volumes.</td>

      <td />
    </tr>
  </tbody>
</table>

### volumeSelector

LVMVolumeSelectorSpec matches disks with CEL.

<table>
  <thead>
    <tr>
      <th>Field</th>
      <th>Type</th>
      <th>Description</th>
      <th>Value(s)</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>`match`</td>
      <td>Expression</td>
      <td>CEL expression matching a disk or partition to use as a physical volume.<br /><br />The expression is evaluated against each discovered volume with the<br />`volume` variable (the discovered volume) and, for whole disks, the<br />`disk` variable. Partitions (e.g. raw volumes) can be matched by their<br />partition label via `volume.partition_label`.</td>

      <td />
    </tr>
  </tbody>
</table>
