[slurm-users] sacctmgr archive dump - no dump file produced, and data not purged?

456 views
Skip to first unread message

Chin,David

unread,
Feb 5, 2021, 3:48:16 PM2/5/21
to Slurm-Users List
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-s...@drexel.edu
github:prehensilecode


Drexel Internal Data

Chin,David

unread,
Feb 9, 2021, 5:28:16 PM2/9/21
to Slurm-Users List
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-s...@drexel.edu
github:prehensilecode


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

External.

Drexel Internal Data


Drexel Internal Data

Reply all
Reply to author
Forward
0 new messages