mukul1987 edited a comment on pull request #1959:
URL: https://github.com/apache/ozone/pull/1959#issuecomment-787073348
The output of the tool when the layout doesn't match
> ➜
~/code/apache/ozone/oz_scm_ha/hadoop-ozone/dist/target/ozone-1.1.0-SNAPSHOT
git:(HDDS-4866) bin/ozone debug dnlayout --verify
--path=/tmp/chaos-2021-02-26-11-05-48-IST/MiniOzoneClusterImpl-510b80d0-fd9a-42f9-ae9a-7828893aedac/datanode-3/data-1/containers
> 2021-02-27 18:22:50,403 [main] INFO fs.SaveSpaceUsageToFile: Cached usage
info file
/tmp/chaos-2021-02-26-11-05-48-IST/MiniOzoneClusterImpl-510b80d0-fd9a-42f9-ae9a-7828893aedac/datanode-3/data-1/containers/scmUsed
not found
> 2021-02-27 18:22:50,406 [main] INFO volume.HddsVolume: Creating Volume:
/tmp/chaos-2021-02-26-11-05-48-IST/MiniOzoneClusterImpl-510b80d0-fd9a-42f9-ae9a-7828893aedac/datanode-3/data-1/containers/hdds
of storage type : DISK and capacity : 499963174912
> 2021-02-27 18:22:50,409 [main] INFO volume.MutableVolumeSet: Added Volume
:
/tmp/chaos-2021-02-26-11-05-48-IST/MiniOzoneClusterImpl-510b80d0-fd9a-42f9-ae9a-7828893aedac/datanode-3/data-1/containers/hdds
to VolumeSet
> 2021-02-27 18:22:50,416 [main] INFO volume.ThrottledAsyncChecker:
Scheduling a check for
/tmp/chaos-2021-02-26-11-05-48-IST/MiniOzoneClusterImpl-510b80d0-fd9a-42f9-ae9a-7828893aedac/datanode-3/data-1/containers/hdds
> 2021-02-27 18:22:50,431 [main] INFO volume.HddsVolumeChecker: Scheduled
health check for volume
/tmp/chaos-2021-02-26-11-05-48-IST/MiniOzoneClusterImpl-510b80d0-fd9a-42f9-ae9a-7828893aedac/datanode-3/data-1/containers/hdds
> 2021-02-27 18:22:50,458 [main] INFO ozoneimpl.ContainerReader: Running in
upgrade mode:false
> 2021-02-27 18:22:50,459 [Thread-3] INFO ozoneimpl.ContainerReader: Start
to verify containers on volume
/tmp/chaos-2021-02-26-11-05-48-IST/MiniOzoneClusterImpl-510b80d0-fd9a-42f9-ae9a-7828893aedac/datanode-3/data-1/containers/hdds
> 2021-02-27 18:22:50,459 [Thread-3] ERROR ozoneimpl.ContainerReader: Caught
a Run time exception during reading container files from Volume
/tmp/chaos-2021-02-26-11-05-48-IST/MiniOzoneClusterImpl-510b80d0-fd9a-42f9-ae9a-7828893aedac/datanode-3/data-1/containers/hdds
{}
> java.lang.IllegalArgumentException: Storage
Dir:/tmp/chaos-2021-02-26-11-05-48-IST/MiniOzoneClusterImpl-510b80d0-fd9a-42f9-ae9a-7828893aedac/datanode-3/data-1/containers/hdds/510b80d0-fd9a-42f9-ae9a-7828893aedac
doesn't exists
> at
com.google.common.base.Preconditions.checkArgument(Preconditions.java:142)
> at
org.apache.hadoop.ozone.container.ozoneimpl.ContainerReader.preProcessStorageLoc(ContainerReader.java:174)
> at
org.apache.hadoop.ozone.container.ozoneimpl.ContainerReader.readVolume(ContainerReader.java:143)
> at
org.apache.hadoop.ozone.container.ozoneimpl.ContainerReader.run(ContainerReader.java:108)
> at java.lang.Thread.run(Thread.java:748)
> 2021-02-27 18:22:50,466 [Thread-3] INFO volume.MutableVolumeSet: Moving
Volume :
/tmp/chaos-2021-02-26-11-05-48-IST/MiniOzoneClusterImpl-510b80d0-fd9a-42f9-ae9a-7828893aedac/datanode-3/data-1/containers/hdds
to failed Volumes
> 2021-02-27 18:22:50,466 [main] INFO ozoneimpl.OzoneContainer: Build
ContainerSet costs 0s
> Failed
Volume:/tmp/chaos-2021-02-26-11-05-48-IST/MiniOzoneClusterImpl-510b80d0-fd9a-42f9-ae9a-7828893aedac/datanode-3/data-1/containers/hdds
Output while running the conversion tool
> ➜
~/code/apache/ozone/oz_scm_ha/hadoop-ozone/dist/target/ozone-1.1.0-SNAPSHOT
git:(HDDS-4866) bin/ozone debug dnlayout
--path=/tmp/chaos-2021-02-26-11-05-48-IST/MiniOzoneClusterImpl-510b80d0-fd9a-42f9-ae9a-7828893aedac/datanode-3/data-1/containers
> 2021-02-27 18:23:05,042 [main] INFO fs.SaveSpaceUsageToFile: Cached usage
info file
/tmp/chaos-2021-02-26-11-05-48-IST/MiniOzoneClusterImpl-510b80d0-fd9a-42f9-ae9a-7828893aedac/datanode-3/data-1/containers/scmUsed
not found
> 2021-02-27 18:23:05,045 [main] INFO volume.HddsVolume: Creating Volume:
/tmp/chaos-2021-02-26-11-05-48-IST/MiniOzoneClusterImpl-510b80d0-fd9a-42f9-ae9a-7828893aedac/datanode-3/data-1/containers/hdds
of storage type : DISK and capacity : 499963174912
> 2021-02-27 18:23:05,047 [main] INFO volume.MutableVolumeSet: Added Volume
:
/tmp/chaos-2021-02-26-11-05-48-IST/MiniOzoneClusterImpl-510b80d0-fd9a-42f9-ae9a-7828893aedac/datanode-3/data-1/containers/hdds
to VolumeSet
> 2021-02-27 18:23:05,053 [main] INFO volume.ThrottledAsyncChecker:
Scheduling a check for
/tmp/chaos-2021-02-26-11-05-48-IST/MiniOzoneClusterImpl-510b80d0-fd9a-42f9-ae9a-7828893aedac/datanode-3/data-1/containers/hdds
> 2021-02-27 18:23:05,065 [main] INFO volume.HddsVolumeChecker: Scheduled
health check for volume
/tmp/chaos-2021-02-26-11-05-48-IST/MiniOzoneClusterImpl-510b80d0-fd9a-42f9-ae9a-7828893aedac/datanode-3/data-1/containers/hdds
> 2021-02-27 18:23:05,089 [main] INFO ozoneimpl.ContainerReader: Running in
upgrade mode:true
> 2021-02-27 18:23:05,090 [Thread-3] INFO ozoneimpl.ContainerReader: Start
to verify containers on volume
/tmp/chaos-2021-02-26-11-05-48-IST/MiniOzoneClusterImpl-510b80d0-fd9a-42f9-ae9a-7828893aedac/datanode-3/data-1/containers/hdds
> 2021-02-27 18:23:05,090 [Thread-3] INFO ozoneimpl.ContainerReader: Storage
dir based on clusterId doesn't exists.Renaming storage
location:/tmp/chaos-2021-02-26-11-05-48-IST/MiniOzoneClusterImpl-510b80d0-fd9a-42f9-ae9a-7828893aedac/datanode-3/data-1/containers/hdds/7af268c4-5139-40f3-a199-8b0d77a62581
to
/tmp/chaos-2021-02-26-11-05-48-IST/MiniOzoneClusterImpl-510b80d0-fd9a-42f9-ae9a-7828893aedac/datanode-3/data-1/containers/hdds/510b80d0-fd9a-42f9-ae9a-7828893aedac
> 2021-02-27 18:23:05,833 [Thread-3] INFO ozoneimpl.ContainerReader: Finish
verifying containers on volume
/tmp/chaos-2021-02-26-11-05-48-IST/MiniOzoneClusterImpl-510b80d0-fd9a-42f9-ae9a-7828893aedac/datanode-3/data-1/containers/hdds
> 2021-02-27 18:23:05,833 [main] INFO ozoneimpl.OzoneContainer: Build
ContainerSet costs 0s
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]