Can I move my media files to a different path or partition on the server?
I have installed Centova Cast on a small partition on my server, and I want to place my media files on a different, large partition on the server. How can I do this?
If your Centova Cast server is already hosting client data, you will need to move the existing data to its new home prior to setting up the bind mount. The general procedure for doing so involves the following steps:
Temporarily disable your Centova Cast cron jobs.
mv -f /etc/cron.d/centovacast /etc/centovacast-cron.disabled
Stop any streams that may be online.
/usr/local/centovacast/bin/ccmanage batch --method=stop --username=all
Stop Centova Cast.
service centovacast stop
Move all client data to the new location. We will use
/home/vhostsas the new path for our client data; change this to whatever path you would like to use.
mv /usr/local/centovacast/var/vhosts /home
Create a placeholder
Make sure ownerships are sane.
chown ccuser.ccuser /home/vhosts /usr/local/centovacast/var/vhosts
Set up the bind mount.
echo "/home/vhosts /usr/local/centovacast/var/vhosts none bind" >> /etc/fstab
Mount the bind mount.
Start Centova Cast.
service centovacast start
Re-enable your Centova Cast cron jobs
mv -f /etc/centovacast-cron.disabled /etc/cron.d/centovacast
Optionally, start all streams.
/usr/local/centovacast/bin/ccmanage batch --method=start --username=all
After performing this procedure, the contents of
should appear identical to the contents of the
/home/vhosts/ directory --
has been "grafted" into the filesystem at a new location.
It is important to understand that, as a result of the mount command above,
/usr/local/centovacast/var/vhosts is now essentially a shortcut to the
/home/vhosts directory. While you can see the files in two different places, the
files only physically exist (and thus only take up disk space) in the
Accordingly, any changes you make in
will actually affect
/home/vhosts -- for example, if you delete a file named
/usr/local/centovacast/var/vhosts/user-x/foo.txt, you're actually deleting