Open ellestad opened 2 years ago
Roadmap to implement this:
git commit ...
and git push
it, cf. https://github.com/ucsf-wynton/wynton-website-hpc/tree/master/cron-scriptsThings to consider:
Roadmap to implement this:
1. Figure out how to query the system for this information
Roadmap to implement this:
1. Figure out how to query the system for this information
And how do figure out which groups to be queried and reported on?
Turns out, from beegfs-ctl --getquota --help
, that one can do:
beegfs-ctl --getquota --storagepoolid=12 --gid --range "$GID_FROM" "$GID_TO"
to get more than one at the time. So, what's the GID range to scan?
GIDnumber range won't work, they could be in any part of the range.
Purchased group storage only.
If they have a non-zero quota for group storage, they have purchased storage. Ignore any group with a quota value of zero/unlimited (or 1).
GIDnumber range won't work, they could be in any part of the range.
Purchased group storage only.
If they have a non-zero quota for group storage, they have purchased storage. Ignore any group with a quota value of zero/unlimited (or 1).
So,
beegfs-ctl --getquota --storagepoolid=12 --gid --all
?
Hrmm, why do so many HPC tools output non-machine non-parsable output. You'd imagine it could generate tsv/csv output if it already produced tabular output. Oh well.
FYI, I've protyped a parser for the beegfs-ctl
output, cf. https://ucsf-wynton.github.io/wyntonquery/reference/beegfs_quota.html. It's the first step to automate this.
I think we should be able to use Greg's beegfs-quota
tool for this, because it reports on the hard limit too.
@HenrikBengtsson @murashka-ucsf any update?
@HenrikBengtsson and @murashka-ucsf any update?
I think we're waiting for @gregcouch to update his beegfs-quota
tool, so it's possible to list the quota for all available groups;
$ beegfs-quota --group
Group Name Used Hard Limit Use% Filesystem Storage Pool
cbi 14759580453008 43980465111040 34% beegfs_nodev#12 group
If someone can tell me how to list all available groups, one could write a for-loop around this tool (but it would more efficient if the tool does that internally).
@HenrikBengtsson I don't have rights to add labels or anything to this issue - can you check my permissions please?
@HenrikBengtsson I don't have rights to add labels or anything to this issue - can you check my permissions please?
Oh. I've now added this repo to the 'wynton-ops' team - try again
Now that we have groups and subgroups, revise this to:
@gregcouch Note, you cannot determine subgroups from the parent group. You can only locate the parent group from the "parentGroup" entry in the subgroup.
@Nicki-Martin raise in admin meeting
It would be handy to have the group storage quota contributions and current usage on the website as we do for the "Contributing Member Shares" page.