1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/graphdriver
Brian Goff 5ef07d79c4 Add option to auto-configure blkdev for devmapper
Instead of forcing users to manually configure a block device to use
with devmapper, this gives the user the option to let the devmapper
driver configure a device for them.

Adds several new options to the devmapper storage-opts:

- dm.directlvm_device="" - path to the block device to configure for
  direct-lvm
- dm.thinp_percent=95 - sets the percentage of space to use for
  storage from the passed in block device
- dm.thinp_metapercent=1 - sets the percentage of space to for metadata
  storage from the passed in block device
- dm.thinp_autoextend_threshold=80 - sets the threshold for when `lvm`
  should automatically extend the thin pool as a percentage of the total
  storage space
- dm.thinp_autoextend_percent=20 - sets the percentage to increase the
  thin pool by when an autoextend is triggered.

Defaults are taken from
[here](https://docs.docker.com/engine/userguide/storagedriver/device-mapper-driver/#/configure-direct-lvm-mode-for-production)

The only option that is required is `dm.directlvm_device` for docker to
set everything up.

Changes to these settings are not currently supported and will error
out.
Future work could support allowing changes to these values.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2017-05-03 13:49:15 -04:00
..
aufs Remove aufs debugEBusy() 2017-03-09 14:35:13 -08:00
btrfs Run btrfs rescan only if userDiskQuota is enabled 2017-01-05 05:18:11 -08:00
devmapper Add option to auto-configure blkdev for devmapper 2017-05-03 13:49:15 -04:00
graphtest Moves graphdriver plugn docs out of experimental 2016-12-22 15:30:25 -05:00
overlay 'docker daemon' deprecation message doesn't use the new versioning scheme 2017-03-03 17:26:49 +08:00
overlay2 'docker daemon' deprecation message doesn't use the new versioning scheme 2017-03-03 17:26:49 +08:00
overlayutils 'docker daemon' deprecation message doesn't use the new versioning scheme 2017-03-03 17:26:49 +08:00
quota Make golint happy. 2016-10-17 17:28:27 -07:00
register Add separate overlay2 driver 2016-06-08 00:16:01 -07:00
vfs Pass all graphdriver create() parameters in a struct 2016-11-09 15:59:58 -05:00
windows Windows: graph cleanup '-removing' 2017-03-20 09:15:27 -07:00
zfs Merge pull request #27903 from kim0/master 2017-01-12 11:28:07 -08:00
counter.go Merge pull request #31083 from xulike666/fight-for-readability 2017-03-03 15:13:01 +01:00
driver.go fix some typos from module contrib to man 2017-02-18 10:08:55 +08:00
driver_freebsd.go Move layer mount refcounts to mountedLayer 2016-03-23 14:42:52 -07:00
driver_linux.go promote overlay(2) graphdriver 2016-10-31 23:32:10 -07:00
driver_solaris.go Add functional support for Docker sub commands on Solaris 2016-11-07 09:06:34 -08:00
driver_unsupported.go Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
driver_windows.go Windows: Remove windowsdiff driver 2016-05-20 16:18:19 -07:00
fsdiff.go pkg/archive: remove unnecessary Archive and Reader type 2016-10-20 19:31:24 -07:00
plugin.go plugingetter: Avoid all caps for constant declarations 2017-01-04 10:19:04 -08:00
proxy.go Reduce duplication in graphdriver 2017-02-28 11:12:02 +01:00