Browse Source

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.
Aleksandr Didenko 8 years ago
parent
commit
4ca2931ae9
2 changed files with 7 additions and 0 deletions
  1. 1
      Vagrantfile
  2. 6
      vagrant-scripts/bootstrap-node.sh

1
Vagrantfile

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

6
vagrant-scripts/bootstrap-node.sh

@ -15,3 +15,9 @@ sudo mv ~vagrant/ssh /root/.ssh
sudo rm -f /root/.ssh/id_rsa*
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
Loading…
Cancel
Save