<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 1 Feb 2016, at 21:39, Bernard Kelly &lt;<a href="mailto:physicsbeany@gmail.com">physicsbeany@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi all. I'm having checkpoint/recovery issues with a particular simulation:<br><br>An initial short run stopped some time after iteration 32000, leaving<br>me with checkpoints at it 30000 &amp; 32000. I found I couldn't recover<br>from the later of these, but as the earlier one *did* allow recovery,<br>I didn't worry too much about it.<br><br>Now the recovered run went until some time after it 124000. I again<br>have two sets of checkpoint data, from it 122000 and 124000. *Neither*<br>of these work. I could imagine the later one being corrupted somehow<br>because of disk space issues, but both?<br><br>In each case, the error output in the STDERR consists of multiple<br>instances of the message below.<br><br>* Is this likely due to file corruption?<br><br>* What's the best way to check CarpetIOHDF5 files for corruption?<br></blockquote><div><br></div><div>Hi Bernard,</div><div><br></div><div>There is a tool called h5check (Google for "What's the best way to check HDF5 files for corruption"):</div><div><br></div><div><div><blockquote type="cite"><div><span class="Apple-tab-span" style="white-space: pre;">        </span>•&nbsp;h5check: A tool to check the validity of an HDF5 file.</div><div><br></div><div>The HDF5 Format Checker,&nbsp;h5check, is a validation tool for verifying that an HDF5 file is encoded&nbsp;according to the HDF File Format Specification. Its purpose is to ensure data model integrity and long-term compatibility between evolving versions of the HDF5 library.<br><br>Note that&nbsp;h5check&nbsp;is designed and implemented without any use of the HDF5 Library.&nbsp;<br><br>Given a file,&nbsp;h5check&nbsp;scans through the encoded content, verifying it against the defined library&nbsp;format. If it finds any non-compliance,&nbsp;h5check&nbsp;prints the error and the reason behind the non-compliance; if possible, it continues the scanning. If&nbsp;h5check&nbsp;does not find any non-compliance, it&nbsp;prints an approval statement upon completion.&nbsp;<br><br>By default, the file is verified against the latest version of the file format, but the format version can be&nbsp;specified.</div></blockquote></div><div><div><br></div></div><div>I have used this successfully in the past.</div><div><br></div></div><blockquote type="cite">* Can I do anything about this particular run, apart from start<br>(again) from the "good" 30000 checkpoint?<br></blockquote><div><br></div><div>If the file is corrupt, then I doubt it. &nbsp;You might be able to add debugging code to work out which dataset is corrupt, and if it is not an important one, you might be able to create a new HDF5 file with a corrected version. &nbsp;But this is a lot of work, and if there is more than one corrupt dataset, it's unlikely to be practical. It's probably much more realistic to just repeat the run. &nbsp;However, if you got corruption twice already, I suspect you will get it again. &nbsp;It's probably a good idea to checkpoint more frequently, as you can probably expect more corruption.</div><div><br></div><div>The only legitimate reason for the files being corrupted is if you ran out of disk space during write (and this is only legitimate because HDF5 does not support journaled writing, which is disappointing in 2016). &nbsp;If that happened, I would expect to see evidence of it in stdout/stderr, which you didn't see. &nbsp;If you don't have abort_on_io_errors set, then Cactus would have happily continued on after the HDF5 disk write failed, but I think it would have crashed if it couldn't write the error message to stdout/stderr, so I don't think you ran out of disk space. &nbsp;If the files are corrupt, it would either be a problem with the filesystem, or a bug in Cactus.</div><div><br></div><div>You might want to run some filesystem-checking program to see if this can be reproduced in a test case, or ask the system admins to do so. &nbsp;</div><div><br></div></div><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>--&nbsp;</div><div>Ian Hinder</div><div><a href="http://members.aei.mpg.de/ianhin">http://members.aei.mpg.de/ianhin</a></div></div></div></div></div>
</div>
<br></body></html>