jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Parvulescu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-4146) Improve tarmkrecovery docs
Date Wed, 23 Mar 2016 16:17:25 GMT

    [ https://issues.apache.org/jira/browse/OAK-4146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15208689#comment-15208689

Alex Parvulescu commented on OAK-4146:

note to self: also add a note about broken tar files that need to be recreated, the _tarmkrecovery_
will not do that automatically as it's a readonly tool, you need to start an oak console so
it will rewrite the broken bits first, then you are good to run recovery.

> Improve tarmkrecovery docs
> --------------------------
>                 Key: OAK-4146
>                 URL: https://issues.apache.org/jira/browse/OAK-4146
>             Project: Jackrabbit Oak
>          Issue Type: Documentation
>          Components: run, segmentmk
>            Reporter: Alex Parvulescu
>            Assignee: Alex Parvulescu
>            Priority: Minor
> Add some helper steps on output and what you can actually do with it:
> {quote}
> 1. Run tarmkrecovery command
> {code:none}
> nohup java -Xmx2048m -jar oak-run-*.jar tarmkrecovery repository/segmentstore &>
tarmkrecovery.log &
> {code}
> 2. Take the output of the tarmkrecovery, take the top 10 items output (excluding "Current
head revision line") then reverse the order of those and format them to journal.log file format
(revision:offset root) and put those values in a fresh journal.log in that format
> For example:
> {code:none}
> 6ee64a26-491e-4630-ac2e-bdad1f27e73a:257016 root
> 5ee64a26-491e-4630-ac2e-bdad1f27e73b:257111 root
> {code}
> 3. After setting up the new journal.log then run this command on the segmentstore
> {code:none}
> nohup java -Xmx2048m -jar oak-run-*.jar check -p repository/segmentstore -d &>
check.log &
> {code}
> 4. That command will give you output of which of those 10 items in the journal.log are
good. Now remove all lines from the journal that come after the last known good revision.
> {quote}

This message was sent by Atlassian JIRA

View raw message