cancel
Showing results for 
Search instead for 
Did you mean: 

NAS Solution for Content.Store

eswbitto
Confirmed Champ
Confirmed Champ
I'm trying to find documentation on configuring using a synology nas for my content.store directory and my alfresco install on a completely different server. Basically it would just be a mapped drive, but I'm using CentOS 6.4. I have found some hints that you have to modify the global properties file, but I can't find the "How to configure" that. Can anyone throw me a link?

[Edit]
Ok so…I have found the repository.properties file that has the file paths in /tomcat/webapps/alfresco/WEB-INF/classes/alfresco/repository.properties

I guess I would just direct the

dir.contentstore=${dir.root}/contentstore
dir.contentstore.deleted=${dir.root}/contentstore.deleted

Then point the contentstore to a shared drive that would live on the NAS? Maybe call it the same thing. Suggestions?

8 REPLIES 8

kaynezhang
World-Class Innovator
World-Class Innovator
you'd better modify alfresco-global.properties file instead of repository.properties.

please reference http://docs.alfresco.com/4.1/index.jsp
under Alfresco Documentation > Administering > Configuring Alfresco

eswbitto
Confirmed Champ
Confirmed Champ
I understand that, but I guess my question is more towards what do I put in the global.properties file. Should I just copy the contents from this one file over to the global.properties file and then make my changes there?

eswbitto
Confirmed Champ
Confirmed Champ
Ok so I have tried many things today with no success.

I've looked through the forums on changing the location of my content.store and content.store.deleted. So here's what I did.

I have my basica install from the bin installer. Postgresql all that good stuff. Running a linux 6.4 CentOS so keep this in mind.

So I have my install in /opt/alfresco/alf_data that is the default install.

In testing I am trying to use the same alf_data but have it located in a different directory location.
/opt/test/

So I rename /opt/alfresco/alf_data to alf_data.old, but copy the contents from that directory over to /opt/test

So now I have /opt/test/alf_data/

In the global.properties file I change the

dir.root=/opt/alfresco/alf_data
TO
dir.root=/opt/test/alf_data

Start alfresco and postgresql doesn't like it…

So…I take a backup that has a dump of the database and content all in one zipped file and unload it to the same location. Doesn't like that either.

The reason I am testing this is I'm trying to test how it would behave changing the directory location. Progressively I would eventually change this to a cifs for a nas share.

I've looked at other posts and have parroted their instructions and I don't have the same outcome. Please help!


kaynezhang
World-Class Innovator
World-Class Innovator
Yes you can copy contents from repository.properties to repository.properties file ,settings in alfresco-global.properties will ooverwrite counterpart  in repository.properties.
make sure the file name is "alfresco-global.properties" and it has settings like below

dir.root=./alf_data

dir.contentstore=${dir.root}/contentstore
dir.contentstore.deleted=${dir.root}/contentstore.deleted


dir.auditcontentstore=${dir.root}/audit.contentstore

and also make sure you have not  set the setting within the JMX client,.Once you change the property setting using JMX, and it is therefore stored in the DB, you cannot use the properties files to change the value of that property.

eswbitto
Confirmed Champ
Confirmed Champ
Well yes it helps, but it still doesn't answer my problem with the other post that I made.

[Edit]

This is the output I am getting from the postgresql log.
postgres cannot access the server configuration file "/opt/alfresco/alf_data/postgresql/postgresql.conf": No such file or directory

So I know it is looking for that, but I'm kind of at a loss as to where the config file is that starts this.

mrogers
Star Contributor
Star Contributor
If you are using postgresql and the alfresco installer then the database tables are probably also under alf_data. alf_data/postgressql.   You are probably "parroting instructions"  from installations which are not using an enbedded database.

Option 1 is to just move your content store onto your NAS.   And leave the database and index where it is.
Option 2 is to change the database configuration to look at your new location.
Option 3 is to install a separate instance of Postgress, install the backup and use that instead.

If I went to Option 2 which file would I make the change in? I would like for both the content and the database to live together that way backing up will be straight forward.

I just did option 1…
In the default install file path I put it back to the default name. BUT Renamed contentstore.OLD and contentstore.deleted.OLD

Then in my /opt/test/alf_data directory copied over the contents from the other "alf_data" directory…Start up alfresco and log in and everything looks good.

Thank You Mrogers for clarification!

eswbitto
Confirmed Champ
Confirmed Champ
@mrogers,

I think I answered my own question. I modified the following:

/alfresco/postgresql/bin/setenv.sh to

PGDATA="/opt/test/alf_data/postgresql"

and also the /alfresco/postgresql/scripts/ctl.sh

HOSTNAME=`hostname`
POSTGRESQL_PIDFILE=/opt/test/alf_data/postgresql/postmaster.pid

POSTGRESQL_START="/opt/alfresco/postgresql/bin/pg_ctl start -w -D /opt/test/alf_data/postgresql"
POSTGRESQL_STOP="/opt/alfresco/postgresql/bin/pg_ctl stop -D /opt/test/alf_data/postgresql"

Changed the ownership of the new /test/alf_data/postgresql to the user postgres and at 700 permission. When restarting I don't get any errors and everything seems to be working correctly.

Is there any issues that I might have happen with this setup?



[Edit]

Ok I did find something that breaks. Apparently it breaks the site preview for images.