Inplace upgrade from 5.6.1 to aem 6.2 | Community
Skip to main content
September 12, 2019

Inplace upgrade from 5.6.1 to aem 6.2

  • September 12, 2019
  • 3 replies
  • 7757 views

Hello,

I'm doing a inplace upgrade form 5.6.1 to aem 6.2, actually to 6.4 but its recommended to take a hop.

Following this Upgrading to AEM 6.2 for same.

On Dev server, repo size is 280GB.

Performed consistency and traversal check which took around 3 days.

Later ran crx2oak command.

java -Xmx32G -XX:MaxPermSize=4096m -jar cq5-author-p4502.jar -v -x crx2oak -xargs -- -o migrate

Set log level to 'info' (Is this correct or what can be for such a huge repo?).

Oak migration has finished in around 7-8 hours and reindexing is still happening from past 6 days.

It looked unusual to me.

Please help if the approach i'm following is correct and is usual.

Any specific preupgrade steps needs to be performed before executing the oak migration command.?

Using latest version of crx2oak migration tool helps.?

any key include & exclude paths to be given while running the crx2oak command

I'm worried, Coz the production is around 480GB and cannot wait for days to finish the inplace upgrade

Please share a guide or any kind of SOP/document if someone has done same practice earlier.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Adobe Employee
September 13, 2019

Hello,

I hope you are using AEM 6.2 jar to run crx2oak.

java -Xmx32G -XX:MaxPermSize=4096m -jar cq5-author-p4502.jar -v -x crx2oak -xargs -- -o migrate.

Use the crx2oak bundled with AEM 6.2

Also, can you check your index logs . Are the logs looping? It might be possible that re-indexing is failing. Can you upload your logs for review.

Best would be to open a daycare ticket so that we can take a closer look into your system.

Regards,

Manish Singh

Level 2
September 13, 2019

Hello,

Yes the jar used to run the crx2oak was of AEM 6.2.

The indexing got finished today after 7 days. But we cannot wait for days to finish the in place upgrade on other servers. Please suggest any way to migrate 480 GB repository in a short span of time.

Regards,

Nishita

Adobe Employee
September 13, 2019

You have a large repository and hence it's expected that a migration/upgrade will take significant time. You can try to clean your CQ 5.6.x repository manually to reduce the total number of nodes to migrate over to AEM 6.x.

1. Stop all replication agents, workflows and launchers.

2. Make sure that you stop, terminate all workflows instances.

3. Using content explorer (or CRXDE) create /tmp/todelete folder

4. Move the following folders to /tmp/todelete

• /var/audit

• /var/eventing/jobs

• /var/replication/data

• /etc/workflow/instances

After you move workflow instances node, you must immediately recreate an empty /etc/workflow/instances folder with exactly same properties)

5. Review /etc/packages folder and check if there any big in file size *.zip archives that you do not necessarily need to keep.

6. Stop and start CQ

7. Begin deleting recursively /tmp/todelete.

8. Run tar optimization.

9. Run datastore GC.

10. Run a consistency check. It is a good practice to re-build indexes along with a consistency check:

  • Stop CQ.
  • Delete all index*.tar files and locks if exists from the following locations:
    • \crx-quickstart\repository\workspaces\crx.default
    • \crx-quickstart\repository\version
    • \crx-quickstart\repository\tarJournal
  • Edit the following configuration files:
    • \crx-quickstart\repository\repository.xml

                       and

  • \crx-quickstart\repository\workspaces\crx.default\workspace.xml.
  • Search for all <SearchIndex class="..."> element in both xml files and add three parameters:
    • <param name="enableConsistencyCheck" value="true"/>
    • <param name="forceConsistencyCheck" value="true"/>
    • <param name="autoRepair" value="true"/>
  • Search for all <PersistenceManager class="..."> element in both xml files and add two parameters:
    • <param name="consistencyCheck" value="true" />
    • <param name="consistencyFix" value="true" />
  • Check an example in KB [1]. Pay attention, that in repository.xml those changes was also added to Versioning section.
  • Start CQ.
Adobe Employee
September 13, 2019

I've successfully done CQ 5.6.1 straight to AEM 6.5.


Where are you seeing that you need to do an interim-upgrade to 6.2 first?

Adobe Employee
September 13, 2019

I think he has 5.6 repository with crx2 backend. He is using "-- -o migrate" in tne migrate command.