Well, I seem to have figured it out. This worked and did what I wanted to (I 
think):

    $ sudo sacctmgr archive dump Directory=/data/Backups/Slurm 
PurgeEventAfter=1hour \
          PurgeJobAfter=1hour PurgeStepAfter=1hour PurgeSuspendAfter=1hour \
          PurgeUsageAfter=1hour Events Jobs Steps Suspend Usage

This generated various usage dump files, and the job_table and step_table dumps.

--
David Chin, PhD (he/him)   Sr. SysAdmin, URCF, Drexel
dw...@drexel.edu                     215.571.4335 (o)
For URCF support: urcf-supp...@drexel.edu
https://proteusmaster.urcf.drexel.edu/urcfwiki
github:prehensilecode

________________________________
From: slurm-users <slurm-users-boun...@lists.schedmd.com> on behalf of 
Chin,David <dw...@drexel.edu>
Sent: Friday, February 5, 2021 15:47
To: Slurm-Users List <slurm-users@lists.schedmd.com>
Subject: [slurm-users] sacctmgr archive dump - no dump file produced, and data 
not purged?


External.

Hi all:

I have a new cluster, and I am attempting to dump all the accounting data that 
I generated in the test period before our official opening.

Installation info:

  *   Bright Cluster Manager 9.0
  *   Slurm 20.02.6
  *   Red Hat 8.1

In slurmdbd.conf, I have:

    ArchiveJobs=yes
    ArchiveSteps=yes
    ArchiveEvents=yes
    ArchiveSuspend=yes

On the commandline, I do:

    $ sudo sacctmgr archive dump Directory=/data/Backups/Slurm 
PurgeEventAfter=1hours PurgeJobAfter=1hours PurgeStepAfter=1hours 
PurgeSuspendAfter=1hours
    This may result in loss of accounting database records (if Purge* options 
enabled).
    Are you sure you want to continue? (You have 30 seconds to decide)
    (N/y): y
    sacctmgr: slurmdbd: SUCCESS

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".)

Is there something I am missing?

Thanks,
    Dave Chin

--
David Chin, PhD (he/him)   Sr. SysAdmin, URCF, Drexel
dw...@drexel.edu                     215.571.4335 (o)
For URCF support: urcf-supp...@drexel.edu
https://proteusmaster.urcf.drexel.edu/urcfwiki
github:prehensilecode



Drexel Internal Data


Drexel Internal Data


Drexel Internal Data

Reply via email to