Maybe use something like this (untested):

mmrepquota -u -v -f gpfs0 | awk -F: 'NR>2 {print "quota: device=gpfs1 command=setQuota type=USR id=" $9 " blockQuota=" $12 " blockLimit=" $13}' > /tmp/quota.stanza
mmsetquota -F /tmp/quota.stanza


  -jf

On Fri, Jul 1, 2022 at 11:51 AM Peter Childs <p.childs@qmul.ac.uk> wrote:
I've opened a Spectrum Scale Idea for Enhancement, https://ibm-sys-storage.ideas.ibm.com/ideas/GPFS-I-857 I suspect I'm not the first one trying to achieve this so it might be worth upvoting the idea.

Basically I'd like to see some way to copy quotas between filesystems, either within scale and outside that can in theory be already done with mmedquota -F but there is no way to dump the quotas in this format currently.

Thanks




Peter Childs

_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at gpfsug.org
http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org