Skip to content

Commit

Permalink
deploy: 9191c4d
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Dec 9, 2024
1 parent 6d8eee7 commit a1a78ad
Show file tree
Hide file tree
Showing 10 changed files with 221 additions and 5 deletions.
48 changes: 48 additions & 0 deletions _sources/olcf-kronos.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
Archiving Data on Kronos
========================

`Kronos <https://docs.olcf.ornl.gov/data/#kronos-nearline-archival-storage-system>`_
is the mass storage system at OLCF. Each user has a directory of the form:

.. code:: bash
/nl/kronos/olcf/<projectID>/users/<userID>
and data can be transferred there using standard Unix commands.

.. note::

You need to be logged into ``dtn.olcf.ornl.gov`` to access kronos. It is
not visible directly from Frontier or Andes.

A submission / shell script pair that automates the transfer of data is available in
`workflow/job_scripts/hpss <https://github.com/AMReX-Astro/workflow/tree/main/job_scripts/hpss>`_ as:

* ``olcf_kronos.submit`` : the slurm submission script
* ``kronos_process.sh`` : a BASH script that finds output and automates the archiving.

You submit the job from the directory containing the plotfiles you wish to archive.
It will then:

* tar up the diagnostic files, inputs, and other metadata into a file with the
date-stamp in the file name and copy that to kronos

* find all of the plotfiles and tar them directly to kronos. If the tar is successful,
it will move the plotfile into a ``plotfiles/`` subdirectory and add a ``.processed``
file so the script knows it was archived already.

* find the checkpoint files matching a pattern (currently defaults to every 5000 steps)
and archive those in the same fashion, moving them to a ``checkfiles/`` subdirectory
once archived.

* loop, looking for new output files

By default, it will not transfer the last file, in case it is actively being written to.

.. tip::

The ``olcf_kronos_once.submit`` can be used to just transfer without the loop
waiting for new files.



1 change: 1 addition & 0 deletions _sources/olcf.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ Working at OLCF
olcf-compilers
olcf-workflow
olcf-jupyter
olcf-kronos
olcf-andes
Binary file modified objects.inv
Binary file not shown.
5 changes: 3 additions & 2 deletions olcf-andes.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Working at IACS" href="iacs.html" />
<link rel="prev" title="Running Jupyter Remotely from OLCF" href="olcf-jupyter.html" />
<link rel="prev" title="Archiving Data on Kronos" href="olcf-kronos.html" />
</head>

<body class="wy-body-for-nav">
Expand Down Expand Up @@ -54,6 +54,7 @@
<li class="toctree-l2"><a class="reference internal" href="olcf-compilers.html">Compiling at OLCF</a></li>
<li class="toctree-l2"><a class="reference internal" href="olcf-workflow.html">Managing Jobs at OLCF</a></li>
<li class="toctree-l2"><a class="reference internal" href="olcf-jupyter.html">Running Jupyter Remotely from OLCF</a></li>
<li class="toctree-l2"><a class="reference internal" href="olcf-kronos.html">Archiving Data on Kronos</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">Batch Visualization on Andes</a></li>
</ul>
</li>
Expand Down Expand Up @@ -149,7 +150,7 @@ <h1>Batch Visualization on Andes<a class="headerlink" href="#batch-visualization
</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="olcf-jupyter.html" class="btn btn-neutral float-left" title="Running Jupyter Remotely from OLCF" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="olcf-kronos.html" class="btn btn-neutral float-left" title="Archiving Data on Kronos" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="iacs.html" class="btn btn-neutral float-right" title="Working at IACS" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>

Expand Down
1 change: 1 addition & 0 deletions olcf-compilers.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
</li>
<li class="toctree-l2"><a class="reference internal" href="olcf-workflow.html">Managing Jobs at OLCF</a></li>
<li class="toctree-l2"><a class="reference internal" href="olcf-jupyter.html">Running Jupyter Remotely from OLCF</a></li>
<li class="toctree-l2"><a class="reference internal" href="olcf-kronos.html">Archiving Data on Kronos</a></li>
<li class="toctree-l2"><a class="reference internal" href="olcf-andes.html">Batch Visualization on Andes</a></li>
</ul>
</li>
Expand Down
5 changes: 3 additions & 2 deletions olcf-jupyter.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<script src="_static/js/theme.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Batch Visualization on Andes" href="olcf-andes.html" />
<link rel="next" title="Archiving Data on Kronos" href="olcf-kronos.html" />
<link rel="prev" title="Managing Jobs at OLCF" href="olcf-workflow.html" />
</head>

Expand Down Expand Up @@ -57,6 +57,7 @@
<li class="toctree-l3"><a class="reference internal" href="#creating-a-conda-environment">Creating a conda environment</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="olcf-kronos.html">Archiving Data on Kronos</a></li>
<li class="toctree-l2"><a class="reference internal" href="olcf-andes.html">Batch Visualization on Andes</a></li>
</ul>
</li>
Expand Down Expand Up @@ -119,7 +120,7 @@ <h2>Creating a conda environment<a class="headerlink" href="#creating-a-conda-en
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="olcf-workflow.html" class="btn btn-neutral float-left" title="Managing Jobs at OLCF" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="olcf-andes.html" class="btn btn-neutral float-right" title="Batch Visualization on Andes" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
<a href="olcf-kronos.html" class="btn btn-neutral float-right" title="Archiving Data on Kronos" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>

<hr/>
Expand Down
161 changes: 161 additions & 0 deletions olcf-kronos.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@


<!DOCTYPE html>
<html class="writer-html5" lang="en" data-content_root="./">
<head>
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Archiving Data on Kronos &mdash; AMReX-Astro 1.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="_static/theme_overrides.css?v=5694489b" />


<script src="_static/jquery.js?v=5d32c60e"></script>
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="_static/documentation_options.js?v=f2a433a1"></script>
<script src="_static/doctools.js?v=9bcbadda"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="_static/clipboard.min.js?v=a7894cd8"></script>
<script src="_static/copybutton.js?v=f281be69"></script>
<script src="_static/js/theme.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Batch Visualization on Andes" href="olcf-andes.html" />
<link rel="prev" title="Running Jupyter Remotely from OLCF" href="olcf-jupyter.html" />
</head>

<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >



<a href="index.html" class="icon icon-home">
AMReX-Astro
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">AMReX Astro basics</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="alcf.html">Working at ALCF</a></li>
<li class="toctree-l1"><a class="reference internal" href="nersc.html">Working at NERSC</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="olcf.html">Working at OLCF</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="olcf-compilers.html">Compiling at OLCF</a></li>
<li class="toctree-l2"><a class="reference internal" href="olcf-workflow.html">Managing Jobs at OLCF</a></li>
<li class="toctree-l2"><a class="reference internal" href="olcf-jupyter.html">Running Jupyter Remotely from OLCF</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">Archiving Data on Kronos</a></li>
<li class="toctree-l2"><a class="reference internal" href="olcf-andes.html">Batch Visualization on Andes</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="iacs.html">Working at IACS</a></li>
<li class="toctree-l1"><a class="reference internal" href="workstations.html">Linux Workstations</a></li>
</ul>

</div>
</div>
</nav>

<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="index.html">AMReX-Astro</a>
</nav>

<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="olcf.html">Working at OLCF</a></li>
<li class="breadcrumb-item active">Archiving Data on Kronos</li>
<li class="wy-breadcrumbs-aside">
<a href="_sources/olcf-kronos.rst.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<section id="archiving-data-on-kronos">
<h1>Archiving Data on Kronos<a class="headerlink" href="#archiving-data-on-kronos" title="Link to this heading"></a></h1>
<p><a class="reference external" href="https://docs.olcf.ornl.gov/data/#kronos-nearline-archival-storage-system">Kronos</a>
is the mass storage system at OLCF. Each user has a directory of the form:</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>/nl/kronos/olcf/&lt;projectID&gt;/users/&lt;userID&gt;
</pre></div>
</div>
<p>and data can be transferred there using standard Unix commands.</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>You need to be logged into <code class="docutils literal notranslate"><span class="pre">dtn.olcf.ornl.gov</span></code> to access kronos. It is
not visible directly from Frontier or Andes.</p>
</div>
<p>A submission / shell script pair that automates the transfer of data is available in
<a class="reference external" href="https://github.com/AMReX-Astro/workflow/tree/main/job_scripts/hpss">workflow/job_scripts/hpss</a> as:</p>
<ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">olcf_kronos.submit</span></code> : the slurm submission script</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">kronos_process.sh</span></code> : a BASH script that finds output and automates the archiving.</p></li>
</ul>
<p>You submit the job from the directory containing the plotfiles you wish to archive.
It will then:</p>
<ul class="simple">
<li><p>tar up the diagnostic files, inputs, and other metadata into a file with the
date-stamp in the file name and copy that to kronos</p></li>
<li><p>find all of the plotfiles and tar them directly to kronos. If the tar is successful,
it will move the plotfile into a <code class="docutils literal notranslate"><span class="pre">plotfiles/</span></code> subdirectory and add a <code class="docutils literal notranslate"><span class="pre">.processed</span></code>
file so the script knows it was archived already.</p></li>
<li><p>find the checkpoint files matching a pattern (currently defaults to every 5000 steps)
and archive those in the same fashion, moving them to a <code class="docutils literal notranslate"><span class="pre">checkfiles/</span></code> subdirectory
once archived.</p></li>
<li><p>loop, looking for new output files</p></li>
</ul>
<p>By default, it will not transfer the last file, in case it is actively being written to.</p>
<div class="admonition tip">
<p class="admonition-title">Tip</p>
<p>The <code class="docutils literal notranslate"><span class="pre">olcf_kronos_once.submit</span></code> can be used to just transfer without the loop
waiting for new files.</p>
</div>
</section>


</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="olcf-jupyter.html" class="btn btn-neutral float-left" title="Running Jupyter Remotely from OLCF" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="olcf-andes.html" class="btn btn-neutral float-right" title="Batch Visualization on Andes" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>

<hr/>

<div role="contentinfo">
<p>&#169; Copyright 2018-2024, AMReX-Astro development tem.</p>
</div>

Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.


</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>

</body>
</html>
1 change: 1 addition & 0 deletions olcf-workflow.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="olcf-jupyter.html">Running Jupyter Remotely from OLCF</a></li>
<li class="toctree-l2"><a class="reference internal" href="olcf-kronos.html">Archiving Data on Kronos</a></li>
<li class="toctree-l2"><a class="reference internal" href="olcf-andes.html">Batch Visualization on Andes</a></li>
</ul>
</li>
Expand Down
2 changes: 2 additions & 0 deletions olcf.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
<li class="toctree-l2"><a class="reference internal" href="olcf-compilers.html">Compiling at OLCF</a></li>
<li class="toctree-l2"><a class="reference internal" href="olcf-workflow.html">Managing Jobs at OLCF</a></li>
<li class="toctree-l2"><a class="reference internal" href="olcf-jupyter.html">Running Jupyter Remotely from OLCF</a></li>
<li class="toctree-l2"><a class="reference internal" href="olcf-kronos.html">Archiving Data on Kronos</a></li>
<li class="toctree-l2"><a class="reference internal" href="olcf-andes.html">Batch Visualization on Andes</a></li>
</ul>
</li>
Expand Down Expand Up @@ -113,6 +114,7 @@ <h1>Working at OLCF<a class="headerlink" href="#working-at-olcf" title="Link to
<li class="toctree-l2"><a class="reference internal" href="olcf-jupyter.html#creating-a-conda-environment">Creating a conda environment</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="olcf-kronos.html">Archiving Data on Kronos</a></li>
<li class="toctree-l1"><a class="reference internal" href="olcf-andes.html">Batch Visualization on Andes</a></li>
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit a1a78ad

Please sign in to comment.