Can we use Docker Storage Driver in loop-lvm Mode on PMK Cluster?
Problem
- Is it possible to setup the PMK cluster with docker storage driver in
loop-lvmmode and are there any concerns related to it?
Environment
- Platform9 Managed Kubernetes - All Versions
- Docker
Answer
- For production setups, the device-mapper docker storage driver must be configured to use
direct-lvmmode. - The
loop-lvmmode is acceptable only for testing but is not supported for production deployments. - Frequently
loop-lvmmode is preferred over thedirect-lvmmode in non-production or testing setups because unlike direct-lvm, it does not needone free block device (a disk or a partition)on the node. - Although with
loop-lvmthere is a common and known issue where the the Docker storage gets filled up more frequently due to failure in deletion of the old unwanted data. - The remedy to this is pruning the docker data manually using the below mentioned command.
# docker system prune -a -f --volumes- There is one more and most recommended approach which is to use the
Overlay2as the Docker storage driver in production environment since it is more stable thatdevice-mapper.
Was this page helpful?