Note: This script is no longer needed as of Docker 17.06 as there is built in functionality in the engine to do this. See the devicemapper documentation.
Simple script to setup devicemapper
on CentOS, RHEL, or Oracle Linux for use with Docker. These instructions are based of the official direct-lvm configuration for production documentation.
Warning: This will destroy anything on the specified block device or partition!
sudo ./docker_thinpool_setup.sh /path/to/block/device
sudo ./docker_thinpool_setup.sh /dev/sdb
sudo ./docker_thinpool_setup.sh /dev/sdb3
sudo ./deferred_deletion_check/standalone_deferred_deletion_check.sh