[ 
https://issues.apache.org/jira/browse/HDDS-15454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sreeja updated HDDS-15454:
--------------------------
    Description: 
Develop a CLI-based diagnostic tool under the Ozone debug framework to analyze 
container metadata consistency between container directories stored on a 
DataNode and container metadata maintained by SCM.

The tool will detect and report:
 * Containers that exist on disk but are not present in SCM metadata (Orphan 
Containers wrt SCM).
 * Containers whose lifecycle state is DELETED in SCM but whose container 
directories are still present under the DataNode current container hierarchy 
(Deleted-but-Present Containers).
 * Multiple container directories corresponding to the same container ID across 
different storage volumes on the same DataNode (Duplicate Container 
Directories).

The tool will scan all configured DataNode storage volumes, collect information 
about discovered container directories, and compare the results with SCM 
container records obtained from scm.db.

The tool should provide a standardized and reusable mechanism for detecting and 
reporting inconsistencies.

  was:
Develop a CLI-based diagnostic tool under the Ozone debug framework to analyze 
container consistency between container directories stored on a DataNode and 
container metadata maintained by SCM.

The tool will detect and report:
 * Containers that exist on disk but are not present in SCM metadata (Orphan 
Containers wrt SCM).
 * Containers whose lifecycle state is DELETED in SCM but whose container 
directories are still present under the DataNode current container hierarchy 
(Deleted-but-Present Containers).
 * Multiple container directories corresponding to the same container ID across 
different storage volumes on the same DataNode (Duplicate Container 
Directories).

The tool will scan all configured DataNode storage volumes, collect information 
about discovered container directories, validate and correlate the results with 
SCM container records obtained from scm.db.

The tool should provide a standardized and reusable mechanism for detecting and 
reporting inconsistencies.


> Tool to Identify Orphan(wrt scm), Duplicate and Deleted-but-Present 
> Containers in Ozone
> ---------------------------------------------------------------------------------------
>
>                 Key: HDDS-15454
>                 URL: https://issues.apache.org/jira/browse/HDDS-15454
>             Project: Apache Ozone
>          Issue Type: Epic
>            Reporter: Sreeja
>            Assignee: Sreeja
>            Priority: Major
>
> Develop a CLI-based diagnostic tool under the Ozone debug framework to 
> analyze container metadata consistency between container directories stored 
> on a DataNode and container metadata maintained by SCM.
> The tool will detect and report:
>  * Containers that exist on disk but are not present in SCM metadata (Orphan 
> Containers wrt SCM).
>  * Containers whose lifecycle state is DELETED in SCM but whose container 
> directories are still present under the DataNode current container hierarchy 
> (Deleted-but-Present Containers).
>  * Multiple container directories corresponding to the same container ID 
> across different storage volumes on the same DataNode (Duplicate Container 
> Directories).
> The tool will scan all configured DataNode storage volumes, collect 
> information about discovered container directories, and compare the results 
> with SCM container records obtained from scm.db.
> The tool should provide a standardized and reusable mechanism for detecting 
> and reporting inconsistencies.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to