Enable LVM ephemeral storage

Enable LVM ephemeral storageΒΆ

Note

Consider this section as part of Deploy an OpenStack cluster.

Note

This feature is available as technical preview. Use such configuration for testing and evaluation purposes only.

Caution

This feature is available starting from MOS 21.2.

This section instructs you on how to configure LVM as back end for the VM disks and ephemeral storage.

To enable LVM ephemeral storage:

  1. In BareMetalHostProfile in the spec:volumeGroups section, specify the following pillar for the OpenStack compute nodes:

    spec:
      devices:
        - device:
            byName: /dev/nvme0n1
            minSizeGiB: 30
            wipe: true
          partitions:
            - name: lvm_nova_vol
              sizeGiB: 0
              wipe: true
      volumeGroups:
        - devices:
          - partition: lvm_nova_vol
          name: nova-vol
      logicalVolumes:
        - name: fake
          vg: nova-vol
          sizeGiB: 0.1
      fileSystems:
        - fileSystem: ext4
          logicalVolume: fake
          mountPoint: /fake
    

    Note

    Due to a limitation, it is not possible to create volume groups without logical volumes and formatted partitions. Therefore, set the logicalVolumes:name, fileSystem:logicalVolume, and file:System:mountPoint parameters to fake.

    For details about BareMetalHostProfile, see Mirantis Container Cloud Operations Guide: Create a custom bare metal host profile.

  2. Configure the OpenStackDeployment CR to deploy OpenStack with LVM ephemeral storage. For example:

    spec:
      features:
        nova:
          images:
            backend: lvm
            lvm:
              volume_group: "nova-vol"
    
  3. Optional. Enable encryption for the LVM ephemeral storage by adding the following metadata in the OpenStackDeployment CR:

    spec:
      features:
        nova:
          images:
            encryption:
              enabled: true
              cipher: "aes-xts-plain64"
              key_size: 256
    

    Caution

    Live migration is not supported for such instances.