TKL Owncloud - Change Data Directory

JC Connell

Member
Apr 6, 2016
29
1
23
38
I'm attempting to use the TKL template for Owncloud on my Proxmox host but I'm having some issues with changing the data directory. According to Owncloud, changing the data directory after installation is not supported. The TKL template sets this directory during it's initialization script, so I can not set it to another directory at the time of installation (as suggested by Owncloud).

My containers run on fast SSD storage and my data are stored on a larger array of spinners. I'd like to set the Owncloud data directory to an LXC bind mount. A TKL forum member suggested that I mount my data directory in the same location that the data directory already exists in the owncloud installation. I have tried this on an existing installation and a fresh installation. Neither of them boot after adding the bind mount to the same data directory (Yet they boot if I mount the data directory to the /media directory inside the container).

Does anyone use this template? How have you solved this problem? And advice even if you don't use it? I'm a bit of a newbie to both Proxmox and Owncloud.
 
Hi,

If you mount the bind mount over the existing data directory it must be empty, else a mount fails (mount only work on empty directory, else the system does not know where to put the data which is already there).
Did you ensure that? If that is already ensured please post the error messages you get when starting the Container.
 
Thank you!!!!

Tried that this morning and now all is well. I sincerely appreciate the suggestion. I'm not sure why it didn't occur to me to try it sooner.