You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Hemant Kumar (Jira)" <ji...@apache.org> on 2024/04/05 22:54:00 UTC

[jira] [Commented] (HDDS-9802) Tool to fix corrupted snapshot chain

    [ https://issues.apache.org/jira/browse/HDDS-9802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17834459#comment-17834459 ] 

Hemant Kumar commented on HDDS-9802:
------------------------------------

As part of the change [#6386,|https://github.com/apache/ozone/pull/6386] a repair tool was added to fix the snapshot chain.
Here are the steps to fix the chain.
Step #1: Identify the snapshot which is causing the snapshot chain failure. Look for logs "Failure while loading snapshot chain" in {*}ozone-om.log{*}.
Step #2: Once you find the corruption snapshot info entry, use the tool to fix it.
Step #3: Use the below command by providing the necessary parameters. By default, the command runs in dry-run mode. Once you are sure that the changes look good in dry-run mode, disable the dry-run flag to actually run the command.
{code:java}
ozone repair ldb --db=<path-to-om.db> snapshot <vol-bucket-path> <snapshot-name> --dry-run=false --gp <global-previous-snapshot-it-should-point-to> --pp <path-previous-snapshot-it-should-point-to>
{code}
NOTE: Remember to run the repair tool command as system user which is *hdfs* by default.

> Tool to fix corrupted snapshot chain 
> -------------------------------------
>
>                 Key: HDDS-9802
>                 URL: https://issues.apache.org/jira/browse/HDDS-9802
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Hemant Kumar
>            Assignee: Hemant Kumar
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.5.0
>
>
> Currently whenever snapshot chain gets corrupted, we don't allow the snapshot operations in HDDS-9199. It may also affects KeyDeletingService because it depends on snapshot chain.
> This task is to create a tool to fix the snapshot chain if snapshot chain gets corrupted. As of not there is no way to fix the chain and resume snapshot options.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org