[slurm-users] Possible to copy sacctmgr info from one cluster to another?

326 views
Skip to first unread message

Julius, Chad

unread,
Jan 13, 2021, 1:02:23 PM1/13/21
to Slurm User Community List
All, 

Curious if it is possible to copy my sacctmgr information (accounts, users, etc...) from one cluster to another?  For example slurm_cluster1 to slurm_cluster2.  

Thanks, 

Chad

Chad Julius
Cyberinfrastructure Engineer Specialist
South Dakota State University
Old Horticulture 205
Brookings, SD  57007
 
Phone:  605.688.5767

Mando Rodriguez

unread,
Jan 13, 2021, 1:20:10 PM1/13/21
to Slurm User Community List
Hi chad,

You can ‘dump’ the info in the slurm database to a file and reload the file (here named cluster.cfg).

Dump the info with: 

sacctmgr dump slurm_cluster file=cluster.cfg

You can load the info with:

sacctmgr load file=cluster.cfg

It saves all accounts, associations, and partition permissions. 




--
Mando Rodriguez
http://mandorodriguez.com

Enterprise Research Solutions Engineer
Research Computing Support Group
University of Texas at San Antonio
Office: 210-458-7141
Tech cafe: 210-458-2609
Cel: 210-237-9871



On Jan 13, 2021, at 12:01 PM, Julius, Chad <Chad....@sdstate.edu> wrote:

  **EXTERNAL EMAIL**
  This email originated outside of The University of Texas at San Antonio.
  Please exercise caution when clicking on links or opening attachments.

Tina Friedrich

unread,
Jan 13, 2021, 1:27:35 PM1/13/21
to slurm...@lists.schedmd.com
You can also run both clusters from the same database (with or without
federating them).

Might not be what you want - you can then e.g. in sinfo see both
clusters, and/or submit to all clusters from everywhere and such.

Tina

On 13/01/2021 18:19, Mando Rodriguez wrote:
> Hi chad,
>
> You can ‘dump’ the info in the slurm database to a file and reload the
> file (here named cluster.cfg).
>
> Dump the info with:
>
> sacctmgr dump slurm_cluster file=cluster.cfg
>
> You can load the info with:
>
> sacctmgr load file=cluster.cfg
>
> It saves all accounts, associations, and partition permissions.
>
>
>
>
> --
> Mando Rodriguez
> http://mandorodriguez.com <http://mandorodriguez.com>
>
> Enterprise Research Solutions Engineer
> Research Computing Support Group
> University of Texas at San Antonio
> Office: 210-458-7141
> Tech cafe: 210-458-2609
> Cel: 210-237-9871
>
>
>
>> On Jan 13, 2021, at 12:01 PM, Julius, Chad <Chad....@sdstate.edu
>> <mailto:Chad....@sdstate.edu>> wrote:
>>
>> *  **EXTERNAL EMAIL***
>>   This email originated outside of The University of Texas at San Antonio.
>>   Please exercise caution when clicking on links or opening attachments.
>>
>> All,
>>
>> Curious if it is possible to copy my sacctmgr information (accounts,
>> users, etc...) from one cluster to another?  For example
>> slurm_cluster1 to slurm_cluster2.
>>
>> Thanks,
>>
>> Chad
>>
>> *Chad Julius*
>> Cyberinfrastructure Engineer Specialist
>> South Dakota State University
>> Old Horticulture 205
>> Brookings, SD  57007
>> *Phone:*605.688.5767
>> *Email:*chad....@sdstate.edu <mailto:chad....@sdstate.edu>
>

--
Tina Friedrich, Advanced Research Computing Snr HPC Systems Administrator

Research Computing and Support Services
IT Services, University of Oxford
http://www.arc.ox.ac.uk http://www.it.ox.ac.uk

Julius, Chad

unread,
Jan 13, 2021, 1:40:21 PM1/13/21
to Slurm User Community List
Thanks for the replies, 

I can dump the file and it has all the data I need.  I really appreciate the help.  

Chad

Chad Julius
Cyberinfrastructure Engineer Specialist
South Dakota State University
Old Horticulture 205
Brookings, SD  57007
 
Phone:  605.688.5767


From: slurm-users <slurm-use...@lists.schedmd.com> on behalf of Mando Rodriguez <Armando....@utsa.edu>
Sent: Wednesday, January 13, 2021 12:19 PM
To: Slurm User Community List <slurm...@lists.schedmd.com>
Subject: Re: [slurm-users] [EXTERNAL] Possible to copy sacctmgr info from one cluster to another?
 

Ole Holm Nielsen

unread,
Jan 14, 2021, 4:43:19 AM1/14/21
to slurm...@lists.schedmd.com
On 1/13/21 7:19 PM, Mando Rodriguez wrote:
> You can ‘dump’ the info in the slurm database to a file and reload the
> file (here named cluster.cfg).
>
> Dump the info with:
>
> sacctmgr dump slurm_cluster file=cluster.cfg
>
> You can load the info with:
>
> sacctmgr load file=cluster.cfg
>
> It saves all accounts, associations, and partition permissions.


>> On Jan 13, 2021, at 12:01 PM, Julius, Chad <Chad....@sdstate.edu
>> <mailto:Chad....@sdstate.edu>> wrote:
>>
>> *  **EXTERNAL EMAIL***
>>   This email originated outside of The University of Texas at San Antonio.
>>   Please exercise caution when clicking on links or opening attachments.
>>
>> All,
>>
>> Curious if it is possible to copy my sacctmgr information (accounts,
>> users, etc...) from one cluster to another?  For example slurm_cluster1
>> to slurm_cluster2.

I just tried "sacctmgr dump" as suggested above, and the dump file
contains all account information needed for migrating to another cluster

If you plan to manage users and accounts by manually editing such a file,
IMHO this is error-prone and not very transparent. For daily management I
propose to use my Slurm accounts tool at
https://github.com/OleHolmNielsen/Slurm_tools/tree/master/slurmaccounts

This tool uses sacctmgr in a structured way based upon account
configuration files which define your account hierarchy.

Best regards,
Ole





Reply all
Reply to author
Forward
0 new messages