cancel
Showing results for 
Search instead for 
Did you mean: 

Moving alf_data on network drive

simonj
Champ in-the-making
Champ in-the-making
Hi,
I need to move the alf_data on a network drive and it does not seem to work.
I'm using alfresco community 4.0e on windows server 2008 R2.

I updated alfresco-global.properties and added those 2 lines:

dir.root=//Xfiles/info$/Archive_GED_Entretien/alf_data
dir.keystore=C:/Alfresco/alf_data/keystore

I have also tried this :

dir.root=R:/Archive_GED_Entretien/alf_data
dir.keystore=C:/Alfresco/alf_data/keystore

can anyone help?
Thanks
19 REPLIES 19

102020
Champ on-the-rise
Champ on-the-rise
I've got the same problem I'm working on. Actually on your network share (for testing), set your share permissions to 'everyone' + read/write.
Once I did that it created the contentstore. Now I'm trying to figure out the correct permissions as I'm seeing 'access denied' in event viewer when I'm trying it over the domain admin permissions.

102020
Champ on-the-rise
Champ on-the-rise
Issue resolved, so this is what you've gotta do if your setting up an alf_data network share:

I'm running on Windows Server 2008 Ent R2

1. Edit alfresco-global.properites located in: c:\alfresco\tomcat\shared\classes
Use this:
dir.root=C:/Alfresco/alf_data
dir.contentstore=\\\\FQDN-GOES-HERE\\Alfresco\\contentstore
dir.contentstore.deleted=\\\\FQDN-GOES-HERE\\Alfresco\\contentstore.deleted

Yes, make sure the slashes are doubled on network locations, it has to do with the way tomcat parses them.
Also note dir.root is still on your tomcat server, you want it to be like this as you want lucene index to run locally for performance purposes.

2. Make your network share, set permissions, in my case, I shared it with domain administrator only.

3. On the server running tomcat, go Start > 'Run' > services.msc
Find 'Apache Tomcat alfrescoTomcat' and open up the properties.
Goto the 'Log On' tab, change from 'local system account' to 'this account'.
Enter your domain administrator credentials here, or what ever share permission you set back on the file server.

4. Stop the tomcat server

5. Delete your current alf_data (you only need to delete cotentstore and contentstore.deleted)

6. Delete your database

7. Start the tomcat server, it should now recreate database, and create new contentstore and contentstore.deleted on the file server.

nabilfaouzi
Champ in-the-making
Champ in-the-making
Hi, I followed your instruction but i don't understand how and where can i do the step 6 "Delete your database", can you explain plz

simonj
Champ in-the-making
Champ in-the-making
Thanks a lot!
Everythings works perfectly!

102020
Champ on-the-rise
Champ on-the-rise
I have run into 1 issue though, hoping someone else has the issue, or knows how to resolve it.

Basically, the shares over the network work great, but try doing a search, I get no results. However when testing with a standalone install, or with the contentstore on the localsystem, I do get results. I've thrown my permissions to 'everyone read/write' and still nothing in this case.

Any clues?

luyanda
Champ in-the-making
Champ in-the-making
I can not access alfresco on the browser when i mount the contentstores. It does create them but i can't access alfresco.
Please assist me with this issue.

dir.root=C:/ALFRES~2/alf_data
dir.contentstore=\\\\D:\\Alfresco1\\alf_data\\contentstore
dir.contentstore.deleted=\\\\D:\\Alfresco1\\alf_data\\contentstore.deleted

Working on Alfresco Enterprise 4.1.3

luyanda
Champ in-the-making
Champ in-the-making
Is it possible to create new content on the new contentstore beside copying the old alf_data contettent store. Lets say the default drive is C: and now you want to use a new drive which is D:..

Please help me.

mrogers
Star Contributor
Star Contributor
get rid of those backslashes before the D.  Its not needed if you are using windows drive letters.