kayobe/releasenotes/notes/default-lvm-data-vg-f2848066975beeda.yaml
Mark Goddard 1d8b4e2500 Enable 'data' LVM group only for Docker devicemapper
This change is a precursor to switching the default Docker storage
driver to overlay2.

Previously, Kayobe's default configuration included a 'data' LVM volume
group, with a 'docker-volumes' logical volume mounted at
/var/lib/docker/volumes. Additionally, if the Docker devicemapper
storage driver was used, the data volume group would contain the
docker-thinpool and docker-thinpoolmeta volumes.

This LVM setup was really included for devicemapper, and while in some
cases it may be useful to have docker volumes as a separate logical
volume, this doesn't really make sense as a default. Often in
environments using other Docker storage drivers, the data volume group
would be removed from configuration.

This change modifies the default LVM configuration to only create a
'data' volume group if the Docker storage driver is devicemapper.
Additionally, new flags are added to make this choice independent from
the storage driver, to support cases where the data volume group is
required without devicemapper.

Change-Id: Ia3c1f6423c32fa2580b57db32512a34ce35d7acc
Story: 2005667
Task: 30973
2020-04-23 14:20:59 +01:00

16 lines
803 B
YAML

---
upgrade:
- |
The default LVM configuration is now empty for all hosts, unless they are
configured to use the ``devicemapper`` Docker storage driver (which is the
default, but is expected to change in a future release).
Note that while the default LVM configuration existed primarily for the
``devicemapper`` driver, it also included a ``docker-volumes`` logical
volume mounted at ``/var/lib/docker/volumes`` for Docker volumes. If the
``docker-volumes`` volume is required on a host which is not configured to
use the Docker ``devicemapper`` storage driver, the following variables may
be used to enable it: ``compute_lvm_group_data_enabled``,
``controller_lvm_group_data_enabled``, ``seed_lvm_group_data_enabled``,
``storage_lvm_group_data_enabled``.