AEM / CQ 6.0 - JCR block Repository Writes unsupported (necessary for hot backups) | Community
Skip to main content
Level 2
October 16, 2015
Solved

AEM / CQ 6.0 - JCR block Repository Writes unsupported (necessary for hot backups)

  • October 16, 2015
  • 10 replies
  • 3166 views

Hi,

When attempting a "blockRepositoryWrites" via /system/console/jmx, I am getting a "javax.jcr.UnsupportedRepositoryOperationException".  When will this functionality be supported, as it is needed for performing online backups?  See screenshot for java error/stacktrace.

Thanks.

Michael C.

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

Hi,

That call is not necessary for a hot backup if you are using Oak.

Regards,

Justin

10 replies

JustinEd3Adobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

Hi,

That call is not necessary for a hot backup if you are using Oak.

Regards,

Justin

miqkAuthor
Level 2
October 16, 2015

Thanks Justin.  How is blocking repository writes, or its equivalent done in Oak then?  

Adobe Employee
October 16, 2015

Like I said, this isn't necessary. As such, there's no way to do it.

miqkAuthor
Level 2
October 16, 2015

Why is blocking writes not necessary?  What practical way is there then to have a clean backup of Oak & TarMK without shutting down the CQ application? With CQ 5.5/5.6 the blockRepositoryWrites command conveniently allowed for a system adminstrator to do a point-in-time volume snapshot, capturing the repository state for that point in time.  What similar method in CQ6 is there for this?  And I am not referring to the old way of doing online CQ backups which basically copies the entire repository to another folder - this was CPU as well as disk intensive, and was not practically for large (>100GB) repositories.

Adobe Employee
October 16, 2015

Due to the way that MVCC is used in Oak, if you want to create a filesystem snapshot, you do not need to block repository writes.

miqkAuthor
Level 2
October 16, 2015

What is the way then to create online backups in CQ without shutting down the application?

miqkAuthor
Level 2
October 16, 2015

Justin, can you provide the documentation that describes this?  I just want to make sure that this is a supported backup method.

Adobe Employee
October 16, 2015

I'm not aware of public documentation for this. I've created an internal documentation request. Feel free to file a DayCare issue indicating that this is a priority for you and reference DOC-4746.

Level 2
October 16, 2015

Sorry if I'm being thick here..

 

Are you saying that OAK can handle an Linux LVM SNAPSHOT  without shutting down the instance, or blocking writes?

 

And, IF this is the case, why 7 months later has that documentation not made it to the official documentation?

 

Thanks!
Matt

October 16, 2015

I think your questions/interest on this is a very good thing.

I have seen some documentation on this change - some for Oak and some for AEM.

For example:

 https://docs.adobe.com/docs/en/aem/6-0/deploy/upgrade/introduction-to-oak.html#What is different from Jackrabbit 2?

http://jackrabbit.apache.org/oak/docs/differences.html

http://jackrabbit.apache.org/oak/docs/dos_and_donts.html

https://cqdump.wordpress.com/2014/06/24/aem-6-0-and-apache-oak-what-has-changed/

 

I definitely encourage you to follow up via DayCare (referencing the issue Justin mentioned) to request further documentation, because we could do a better job in clearly stating the real-world implications on this change (e.g. no longer needing to block repo writes when taking a volume snapshot).

 

HTH!

- Carey