docs/daemon
Mike Snitzer d715803d45 devmapper: revert the default dm-thin-pool blocksize back to 64K
Commit 09ee269d ("devmapper: Add option for specifying the thin pool
blocksize") also switched the default dm-thin-pool blocksize from 64K to
512K.  That change unfortunately breaks the activation of dm-thin-pool
devices that were previously created using a 64K blocksize.  Here is an
example of the dm-thin-pool activation failure users may experience:

 device-mapper: thin: 253:4: pool target (204800 blocks) too small: expected 1638400
 device-mapper: table: 253:4: thin-pool: preresume failed, error = -22

The reason for this is docker is passing 512K as the blocksize for a
dm-thin-pool that was previously created using a 64K blocksize.  Docker
doesn't record the blocksize the is used when it creates a dm-thin-pool.
Until now it never had a need to do so because the blocksize was always
hardcoded.  The dm-thin-pool blocksize must be the same every time a
dm-thin-pool is activated.

As a stop-gap fix, revert to using 64K for the default blocksize.

But we do need a proper fix for this now that 'dm.blocksize' is exposed
as a proper storage option.  One possible fix would be to record the
blocksize for each dm-thin-pool that docker creates and to pass that
recorded blocksize down in the dmsetup table load each time the
dm-thin-pool is activated (this would be comparable to what lvm2 does).

Docker-DCO-1.1-Signed-off-by: Mike Snitzer <snitzer@redhat.com> (github: snitm)
2014-07-09 16:47:30 -04:00
..
execdriver Merge pull request #6756 from kzys/lxc-linux 2014-07-07 18:46:46 +03:00
graphdriver devmapper: revert the default dm-thin-pool blocksize back to 64K 2014-07-09 16:47:30 -04:00
networkdriver Merge pull request #6799 from LK4D4/refactor_portallocator 2014-07-07 12:39:36 -07:00
MAINTAINERS Add cpuguy83 as volumes maintainer 2014-06-20 09:40:29 -04:00
README.md Add readme for daemon directory 2014-05-17 17:56:02 +00:00
attach.go Move Attach from container to daemon 2014-05-05 16:48:56 -07:00
container.go BroadcastWriter refactoring 2014-07-03 10:12:53 +04:00
container_unit_test.go Rename runtime/* to daemon/* 2014-04-17 14:43:01 -07:00
daemon.go Merge pull request #6821 from LK4D4/broadcast_writer_refactor 2014-07-07 12:15:47 -07:00
daemon_aufs.go Rename runtime/* to daemon/* 2014-04-17 14:43:01 -07:00
daemon_btrfs.go Rename runtime/* to daemon/* 2014-04-17 14:43:01 -07:00
daemon_devicemapper.go Rename runtime/* to daemon/* 2014-04-17 14:43:01 -07:00
daemon_no_aufs.go Rename runtime/* to daemon/* 2014-04-17 14:43:01 -07:00
history.go don't call sort for every add in history 2014-05-14 15:02:02 +03:00
inspect.go add links to inspect for 'linking' containers 2014-06-26 20:51:38 +00:00
network_settings.go Fix port mapping in ps display for public and private 2014-05-12 15:26:23 -07:00
server.go Rename runtime/* to daemon/* 2014-04-17 14:43:01 -07:00
state.go Use State waiting functions 2014-06-27 15:07:40 +04:00
state_test.go State refactoring and add waiting functions 2014-06-27 15:05:48 +04:00
utils.go Improve name generation on concurrent requests 2014-05-23 17:51:16 -07:00
utils_test.go Rename runtime/* to daemon/* 2014-04-17 14:43:01 -07:00
volumes.go daemon: *: updated getResourcePath and getRootResourcePath signatures 2014-06-18 15:51:28 -04:00

README.md

This directory contains code pertaining to running containers and storing images

Code pertaining to running containers:

  • execdriver
  • networkdriver

Code pertaining to storing images:

  • graphdriver