docker

docker devicemapper lvm

Submitted by isntall on Mon, 12/07/2015 - 23:28

I finally found something useful on docs.docker.com

https://docs.docker.com/engine/userguide/storagedriver/device-mapper-driver/

The steps I went thru for centOS6

# service docker stop 
# puppet agent --disable 
# umount /var/lib/docker 
# rm -rf /var/lib/docker/* 
# lvcreate -L 450G -n data vg_db4new 
# lvcreate -L 10G -n metadata vg_db4new 
# vim /etc/sysconfig/docker 
other_args="--storage-driver=devicemapper --storage-opt dm.datadev=/dev/vg_db4new/data --storage-opt dm.metadatadev=/dev/vg_db4new/metadata --storage-opt dm.fs=xfs" # service docker start

I originally tried to make metadata 20G, but that gave me errors.

 

For centOS7 on fresh aws install

https://docs.docker.com/engine/installation/centos/