Add new virtual drive for /var/lib/docker

Otherwise 10G is not enough to host all the CCP images and it
leads to deployment failures.
This commit is contained in:
Aleksandr Didenko 2016-06-29 16:40:34 +02:00
parent 9744972f4a
commit 4ca2931ae9
2 changed files with 7 additions and 0 deletions

1
Vagrantfile vendored
View file

@ -67,6 +67,7 @@ Vagrant.configure("2") do |config|
domain.cpu_mode = "host-passthrough" domain.cpu_mode = "host-passthrough"
domain.volume_cache = "unsafe" domain.volume_cache = "unsafe"
domain.disk_bus = "virtio" domain.disk_bus = "virtio"
domain.storage :file, :type => 'qcow2', :bus => 'virtio', :size => '20G', :device => 'vdb'
end end
# Networks and interfaces # Networks and interfaces

View file

@ -15,3 +15,9 @@ sudo mv ~vagrant/ssh /root/.ssh
sudo rm -f /root/.ssh/id_rsa* sudo rm -f /root/.ssh/id_rsa*
sudo chown -R root: /root/.ssh sudo chown -R root: /root/.ssh
# Setup new drive for docker
sudo mkfs.ext4 /dev/vdb
sudo mkdir -p /var/lib/docker
sudo echo '/dev/vdb /var/lib/docker ext4 defaults,noatime,nodiratime 0 0' >> /etc/fstab
sudo mount -a