sarvekshayr opened a new pull request, #7662:
URL: https://github.com/apache/ozone/pull/7662

   ## What changes were proposed in this pull request?
   `ozone repair om`
       These commands make repairs to an individual OM instance.
   - `ozone repair om quota`
           The new location of `ozone repair quota` which is an online command 
(requires running OM).
   - Add [HDDS-11727](https://issues.apache.org/jira/browse/HDDS-11727) check 
to see if OM is running in`ozone repair om snapshot chain` and `ozone repair om 
update-transaction`.
   
   ## What is the link to the Apache JIRA
   [HDDS-12039](https://issues.apache.org/jira/browse/HDDS-12039)
   
   ## How was this patch tested?
   Tested the patch on a docker cluster.
   
   ```
   bash-5.1$ ozone repair om
   ATTENTION: Running as user hadoop. Make sure this is the same user used to 
run the Ozone process. Are you sure you want to continue (y/N)? y
   Run as user: hadoop
   Missing required subcommand
   Usage: ozone repair om [COMMAND]
   Operational tool to repair OM.
   Commands:
     fso-tree            Identify and repair a disconnected FSO tree by marking
                           unreferenced entries for deletion. OM should be 
stopped
                           while this tool is run.
     snapshot            Subcommand for all snapshot related repairs.
     update-transaction  CLI to update the highest index in 
transactionInfoTable.
                           Currently it is only supported for OM.
     quota               Operational tool to repair quota in OM DB.
   
   ```
   
   ```
   bash-5.1$ ozone repair om quota
   ATTENTION: Running as user hadoop. Make sure this is the same user used to 
run the Ozone process. Are you sure you want to continue (y/N)? y
   Run as user: hadoop
   Missing required subcommand
   Usage: ozone repair om quota [COMMAND]
   Operational tool to repair quota in OM DB.
   Commands:
     status  CLI to get the status of last trigger quota repair if available.
     start   CLI to trigger quota repair.
   ```
   
   ```
   bash-5.1$ ozone repair om update-transaction --db /data/metadata/om.db 
--term 2 --index 2
   ATTENTION: Running as user hadoop. Make sure this is the same user used to 
run the Ozone process. Are you sure you want to continue (y/N)? y
   Run as user: hadoop
   Error: OM is currently running on this host with PID 7. Stop the service 
before running the repair tool.
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to