Can someone tell me I'm not reading this wrong. This is using Spectrum Scale 5.0.2-1 It looks like the output from mmlsquota is not what it says In the man page it says, mmlsquota [-u User | -g Group] [-v | -q] [-e] [-C ClusterName] [-Y] [--block-size {BlockSize | auto}] [Device[:Fileset] ...] however mmlsquota -u username fs:fileset Return the output for every fileset, not just the "fileset" I've asked for, this is same output as mmlsquota -u username fs Where I've not said the fileset. I can work around this, but I'm just checking this is not actually a bug, that ought to be fixed. Long story is that I'm working on rewriting our quota report util that used be a long bash/awk script into a more easy to understand python script, and I want to get the user quota info for just one fileset. Thanks in advance. -- Peter Childs ITS Research Storage Queen Mary, University of London
I don't know the answer to your actual question, but have you thought about using the REST-API rather than parsing the command outputs? I can send over the Python stuff we're using if you mail me off list. Rob On Mon, 2019-03-25 at 09:38 +0000, Peter Childs wrote:
Can someone tell me I'm not reading this wrong.
This is using Spectrum Scale 5.0.2-1
It looks like the output from mmlsquota is not what it says
In the man page it says,
mmlsquota [-u User | -g Group] [-v | -q] [-e] [-C ClusterName] [-Y] [--block-size {BlockSize | auto}] [Device[:Fileset] ...]
however
mmlsquota -u username fs:fileset
Return the output for every fileset, not just the "fileset" I've asked for, this is same output as
mmlsquota -u username fs
Where I've not said the fileset.
I can work around this, but I'm just checking this is not actually a bug, that ought to be fixed.
Long story is that I'm working on rewriting our quota report util that used be a long bash/awk script into a more easy to understand python script, and I want to get the user quota info for just one fileset.
Thanks in advance.
-- Robert Horton | Research Data Storage Lead The Institute of Cancer Research | 237 Fulham Road | London | SW3 6JB T +44 (0)20 7153 5350 | E robert.horton@icr.ac.uk | W www.icr.ac.uk | Twitter @ICR_London Facebook: www.facebook.com/theinstituteofcancerresearch The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP. This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer and network.
On Mon, 2019-03-25 at 09:52 +0000, Robert Horton wrote:
I don't know the answer to your actual question, but have you thought about using the REST-API rather than parsing the command outputs? I can send over the Python stuff we're using if you mail me off list.
Thanks, We don't currently run the REST-API, partly I've never got around to getting the monitoring overhead working, and working out which extra packages we need to go round our 300 nodes and install. Out cluster has been gradually upgraded over the years from 3.5 and we don't routinely install all the new packages the GUI needs on every node. It might be nice to see a list of which Spectrum Scale packages are needed for the different added value features in Scale. I'm currently working on re-writing the cli quota reporting program which was originally written in a combination of bash and awk. Its a strict Linux Cli util for reporting quota's and hence I'd prefer to avoid the overhead of using a Rest-API. With reference to the issue people reported not being able to run "mmlsfileset" as a user a few weeks ago, I've found a handy work-around using "mmlsattr" instead, and yes it does use the -Y flag all the time. I'd like to share the code, once its gone though some internal code review...... With reference to the other post, I will I think raise a PMR for this as it does not look like mmlsquota is working as documented. Thanks Peter Childs
Rob
On Mon, 2019-03-25 at 09:38 +0000, Peter Childs wrote:
Can someone tell me I'm not reading this wrong.
This is using Spectrum Scale 5.0.2-1
It looks like the output from mmlsquota is not what it says
In the man page it says,
mmlsquota [-u User | -g Group] [-v | -q] [-e] [-C ClusterName] [-Y] [--block-size {BlockSize | auto}] [Device[:Fileset] ...]
however
mmlsquota -u username fs:fileset
Return the output for every fileset, not just the "fileset" I've asked for, this is same output as
mmlsquota -u username fs
Where I've not said the fileset.
I can work around this, but I'm just checking this is not actually a bug, that ought to be fixed.
Long story is that I'm working on rewriting our quota report util that used be a long bash/awk script into a more easy to understand python script, and I want to get the user quota info for just one fileset.
Thanks in advance.
-- Peter Childs ITS Research Storage Queen Mary, University of London
On Wed, 2019-03-27 at 11:51 +0000, Alexander Wolf wrote: The requirements for GUI & ReST API aren't actually that dramatic. It boils down to three things: 1) CCR. This is part of the base package but you need to migrate you config from server based to CCR which comes with the added benefit that your cluster config is now truly HA. 2) mmhealth/mmsysmonc. This comes with the base package as well. 3) mmperfmon. This comes with the pm-sensor packages that need to be distributed accross all nodes. And the pm-collector that sits on the GUI node (in large configuration you might want to have more than one collector). So from a package point of view it is basically just the pm-sensor package that needs to be installed all accross your cluster. It's possibly worth point out you don't actually *need* the mmhealth/mmperfmon stuff to make the GUI work if you just want the basic API functionality (for managing filesets/quotas etc) - although obviously the actual GUI won't look as attractive in that case. Rob -- Robert Horton | Research Data Storage Lead The Institute of Cancer Research | 237 Fulham Road | London | SW3 6JB T +44 (0)20 7153 5350 | E robert.horton@icr.ac.uk<mailto:robert.horton@icr.ac.uk> | W www.icr.ac.uk | Twitter @ICR_London Facebook: www.facebook.com/theinstituteofcancerresearch Making the discoveries that defeat cancer The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP. This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer and network.
participants (4)
-
Alexander Wolf -
Frederick Stock -
Peter Childs -
Robert Horton
