Page MenuHomePhabricator

Jessie-based Vagrant box stores uploaded files on small 9.2G root partition
Closed, ResolvedPublic

Description

When testing TimedMediaHandler transcoding in MediaWiki-Vagrant, I noticed that uploaded files and their transcodes both go in /srv/images which is on the root partition... but the root partition has only 9.2G total space available. This runs out fairly quickly when running a few gigs of test videos:

vagrant@mediawiki-vagrant:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       9.2G  8.8G     0 100% /
udev             10M     0   10M   0% /dev
tmpfs           403M   41M  362M  11% /run
tmpfs          1006M     0 1006M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs          1006M     0 1006M   0% /sys/fs/cgroup
none            233G   86G  148G  37% /vagrant
none            233G   86G  148G  37% /vagrant/logs

Workaround: symlink /srv/images into /vagrant/images.

Event Timeline

Sounds like an issue with the used images more than anything?

The Debian Jessie base box? Yes, I believe that's where the small partition layout is coming from.

Workaround: in VirtualBox, create a second hard drive and restart Vagrant. Create an ext4 filesystem, and mount it at /srv/images with the correct partitions and contents.

I've written up full instructions after replicating this setup on a new install: https://www.mediawiki.org/wiki/MediaWiki-Vagrant#Additional_storage_space

bd808 assigned this task to brion.
bd808 added a project: Documentation.