Use a separate VirtualBox disk image to store the data files

I have just setup the ownCloud service with VirtualBox Appliance on my own server. But since the default virtual disk size is very limited, I’d like to create a separate disk image for data only.

My steps would include:

  1. Create a new disk image.
  2. Mount the new disk image to Debain VM.
  3. Create a Docker volume with the mounted space.
  4. Link the new volume to the default docker container.
  5. Update the config.php file to point data directory to the new volume.

While since I’m new to Docker, I can’t find where/how to link the new created volume to the ownCloud docker, which is the above Step 4. Could you please shed some light on this?

I temporarily resolved this problem by not creating a Docker volume but instead mounting the disk to a specific folder on the Debian VM as following:

Filesystem               Size  Used Avail Use% Mounted on
/dev/sdb1                991G   95M  940G   1% /var/lib/univention-appcenter/apps/owncloud/data/files
1 Like

You might want to ask in the univention forums if they have ideas about how you can deal with that problem.

On the ownCloud side, you can use an external storage and store files there (with the known limitations of using an external storage). Depending on how you plan to use ownCloud, this could be an option to have more space.

1 Like