cancel
Showing results for 
Search instead for 
Did you mean: 

Moving dir.root (alf_data) and Solr

billerby
Champ on-the-rise
Champ on-the-rise
Running Alfresco 4.0.0 on an EC2 instance and running out of disk space made me decide to move alf_data to a EBS-volume. I followed the instructions stated in:

http://wiki.alfresco.com/wiki/EC2#Using_EBS_Volumes

However those instructions will only work if you run MySql and Lucene. When running PostgreSQL the dir.root gets hardcoded into two shell scripts:

If running PostgreSQL and Lucene I guess changing the path to dir.root in the following scripts in addition to alfresco-global.properties will be enough:

$ALF_HOME/postgresql/bin/setenv.sh
$ALF_HOME/postgresql/script/ctl.sh

However if using Solr (installed by alfresco installer) it was rather tricky to find all references to dir.root, below is my list:

- For every store in Alfresco there will be a "alf_data/solr/<store-name>-SpacesStore/solrcore.properties, where the old path to dir.root is hardcoded. Change to the new location.
- In $ALF_HOME/tomcat/conf/server.xml you will have to change the hardcoded paths in the ssl-connector solr uses.
- In $ALF_HOME/tomcat/conf/Catalina/localhost/solr.xml there is also a hardcoded path that needs to be changed.

After this I had to delete the solr-indexes ie removed the following folders (one per store):
   - alf_data/solr/archive
   - alf_data/solr/workspace

After starting Alfresco (finally) went back to normal.

/Erik
2 REPLIES 2

rmacian
Champ in-the-making
Champ in-the-making
I've found a similar situation where after using the installer I wanted to move the only the contentstore, not the full alf_data. I modified dir.contentstore and dir.contentstore.deleted in alfresco-global.properties. The directories where created on the new destination but Alfresco was still accessing to the old location.

I do not why. Here theoretically should not be involved postgresql and solr neither.

samnaction
Champ in-the-making
Champ in-the-making
Did you found the solution for moving content store. I am getting error when moving contentstore to network location. But if I move content store to another drive then I have no problem. I need to move to network location any help