Expand my Community achievements bar.

Binary Migration from MongoDB to Shared NAS on author side

Avatar

Level 1

Currently we are on 6.1 and planning for upgrade to 6.4.2

   Existing AEM model: Author with MongoDB and Blobs also in MongoDB, Publisher with TarMK on file system with binaries in it

   I was successful in upgrade from 6.1 to 6.4.2 both on author and publisher but its taking long time to upgrade. So, we have decide to move binaries off from MongoDB(author) and TarMK(publisher) as well before upgrade to 6.4.2.

Author:     

  • copied binaries from MongoDB to NAS volume. But binaries are not deleted in DB, but by the end of migration we need that. how we can implement ?[0]
  • Now we are unable to figure out the correct steps to start AEM with binaries on NAS.

[0] used this command to migrate

java -Doak.mongo.maxQueryTimeMS=600000 -jar opt/extensions/crx2oak-1.4.6-standalone.jar --copy-binaries --datastore="<path to NAS>" mongodb://<Username>:<pwd>@<HostName>:<port>/<db> <path to NAS>

placed below two configurations in /crx-quicstart/install dir.

org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore.cfg

minRecordLength="4096"

path="/apps/mounts/cmsbinary/dvlp/datastore"

cacheSizeInMB="128"

service.pid="org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore"

org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.cfg

mongouri="mongodb://<username>:<pwd>@<host>:27017

db="aem-author"

customBlobStore=B"true"

cache=I"2048"

service.pid="org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService"

AEM seems picking up config file from install dir, which is reflected in console. But doesn't seem working. Still using MongoDB for blobs.

AEM also creating configuration files for DocumentNodeStoreService.config under config dir [/crx-quickstart/config/org/apache/jackrabbit/oak/plugins/document/.] and launchpad dir [/crx-quickstart/launchpad/config/org/apache/jackrabbit/oak/plugins/document] with default configuration not the one from file in install dir.

What are the correct steps for migration of binaries ?

How can we not only copy blobs from MongoDB to NAS but also delete them in MongoDB after migration ?

Used these two docs for reference:

https://helpx.adobe.com/experience-manager/6-4/sites/deploying/using/data-store-config.html#main-par...

https://jackrabbit.apache.org/oak/docs/osgi_config.html

Publisher:

Migrated binaries from TarMK to NAS and started AEM. It seems good. And also did upgrade to 6.4.2. It doesn't have any problems.

In future, We are planning to use same datastore (blobs) which is on NAS for both Author and Publisher. Whats your comments on this ?

0 Replies