<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
Well, I seem to have figured it out. This worked and did what I wanted to (I think):<br>
<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
$ sudo sacctmgr archive dump Directory=/data/Backups/Slurm PurgeEventAfter=1hour \</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
PurgeJobAfter=1hour PurgeStepAfter=1hour PurgeSuspendAfter=1hour \</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
PurgeUsageAfter=1hour Events Jobs Steps Suspend Usage</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
This generated various usage dump files, and the job_table and step_table dumps.</div>
<div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div></div>
<div></div>
<div></div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:'Courier New',monospace">
<div class="BodyFragment"><font size="2"><span style="font-size:10pt">
<div class="PlainText"></div>
<div class="PlainText" style="font-family:"Courier New",monospace; font-size:13.3333px">
</div>
<span id="ms-rterangepaste-start"></span>
<div>--</div>
<div>
<div>David Chin, PhD (he/him) Sr. SysAdmin, URCF, Drexel</div>
<div>dwc62@drexel.edu 215.571.4335 (o)</div>
<div>For URCF support: urcf-support@drexel.edu</div>
<div>https://proteusmaster.urcf.drexel.edu/urcfwiki</div>
<div>github:prehensilecode</div>
</div>
<span id="ms-rterangepaste-end"></span>
<div class="PlainText"><br>
</div>
</span></font></div>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> slurm-users <slurm-users-bounces@lists.schedmd.com> on behalf of Chin,David <dwc62@drexel.edu><br>
<b>Sent:</b> Friday, February 5, 2021 15:47<br>
<b>To:</b> Slurm-Users List <slurm-users@lists.schedmd.com><br>
<b>Subject:</b> [slurm-users] sacctmgr archive dump - no dump file produced, and data not purged?</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<table width="100%">
<tbody>
<tr>
<td style="border-left:4px solid goldenrod; background:cornsilk; padding:0 3pt">
<p style="font:small-caps bold 100% sans-serif">External.</p>
</td>
</tr>
</tbody>
</table>
<div>
<div style="font-family:"Courier New",monospace; font-size:12pt; color:rgb(0,0,0)">
Hi all:</div>
<div style="font-family:"Courier New",monospace; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:"Courier New",monospace; font-size:12pt; color:rgb(0,0,0)">
I have a new cluster, and I am attempting to dump all the accounting <span style="color:rgb(0,0,0); font-family:"Courier New",monospace; font-size:12pt">data that I generated in the test period before our official opening.</span></div>
<div style="font-family:"Courier New",monospace; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:"Courier New",monospace; font-size:12pt; color:rgb(0,0,0)">
Installation info:</div>
<div style="font-family:"Courier New",monospace; font-size:12pt; color:rgb(0,0,0)">
<ul>
<li><span>Bright Cluster Manager 9.0</span></li><li><span>Slurm 20.02.6</span></li><li>Red Hat 8.1</li></ul>
<div>In slurmdbd.conf, I have:</div>
<div><br>
</div>
<div> ArchiveJobs=yes</div>
<div> ArchiveSteps=yes</div>
<div> ArchiveEvents=yes</div>
<div> ArchiveSuspend=yes</div>
<div><br>
</div>
<div>On the commandline, I do:</div>
<div><br>
</div>
<div> $ sudo sacctmgr archive dump Directory=/data/Backups/Slurm PurgeEventAfter=1hours PurgeJobAfter=1hours PurgeStepAfter=1hours PurgeSuspendAfter=1hours</div>
<div> This may result in loss of accounting database records (if Purge* options enabled).
<div> Are you sure you want to continue? (You have 30 seconds to decide)</div>
<div> (N/y): y</div>
sacctmgr: slurmdbd: SUCCESS</div>
<div><br>
</div>
<div>However, no dump file is produced. And if I run sreport, I still see data from last month. (I also tried "1hour", i.e. dropping the "s".)</div>
<div><br>
</div>
<div>Is there something I am missing?</div>
<div><br>
</div>
<div>Thanks,</div>
<div> Dave Chin</div>
</div>
<div>
<div style="font-family:"Courier New",monospace; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="x_Signature">
<div>
<div></div>
<div></div>
<div></div>
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:'Courier New',monospace">
<div class="x_BodyFragment"><font size="2"><span style="font-size:10pt">
<div class="x_PlainText"></div>
<div class="x_PlainText" style="font-family:"Courier New",monospace; font-size:13.3333px">
</div>
<span id="x_ms-rterangepaste-start"></span>
<div>--</div>
<div>
<div>David Chin, PhD (he/him) Sr. SysAdmin, URCF, Drexel</div>
<div>dwc62@drexel.edu 215.571.4335 (o)</div>
<div>For URCF support: urcf-support@drexel.edu</div>
<div>https://proteusmaster.urcf.drexel.edu/urcfwiki</div>
<div>github:prehensilecode</div>
</div>
<span id="x_ms-rterangepaste-end"></span>
<div class="x_PlainText"><br>
</div>
</span></font></div>
</div>
</div>
</div>
</div>
<br>
<p align="Left" style="font-family:Calibri; font-size:10pt; color:#000000; margin:5pt">
Drexel Internal Data<br>
</p>
</div>
<br>
<p align="Left" style="font-family:Calibri; font-size:10pt; color:#000000; margin:5pt">
Drexel Internal Data<br>
</p>
</div>
<br>
<p style="font-family:Calibri;font-size:10pt;color:#000000;margin:5pt;" align="Left">
Drexel Internal Data<br>
</p>
</body>
</html>