Running out of disk space in development
You may run out of disk space when replicating data into your development environment.
First check if you are out of disk space on your host machine (
If your host machine has plenty of available space, then the problem may be
the space allocated to the VM for its root partition.
You can run
ncdu / from the command line to browse the filesystem and
identify large directories and files. On your host machine you could also use
graphical tools like Disk Inventory X.
What to delete on your host machine
On the host machine, you can safely delete:
- Old backups from
- Old log files from
What to delete on the VM
On the VM, you can safely delete old elasticsearch indexes:
cd /var/govuk/govuk-puppet/development-vm/replication bundle exec ruby delete_closed_indices.rb
If you plan on replicating all your data again, you can also delete big mongodb databases to clear space.
mongo > show databases > use draft_content_store_development > db.dropDatabase()
Similarly, you can find large postgres databases with:
sudo -u postgres psql \l+