Sunday, March 17, 2013
Expanding your data storage to a different partition
I ran into space issues so here is what I did to deal with the situation:
Situation:
/var was running low and /home had lots of free space.
Stopped owncloud
sudo /etc/init.d/apache2 stop
cd /home
Create new directory in /home for my ownCloud's data:
mkdir mycloud
Moved my old data:
sudo mv /var/www/owncloud/data /home/mycloud/data
Created a symlink. Linking to a new storage location:
sudo ln -s /home/mycloud/data /var/www/owncloud/data
Same as above for config directory:
sudo mv /var/www/owncloud/config /home/mycloud/config
sudo ln -s /home/mycloud/config /var/www/owncloud/config
Set permissions:
sudo chown -R www-data:www-data data
sudo chown -R www-data:www-data config
Started owncloud:
sudo /etc/init.d/apache2 start
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment