quota on secondary groups for a user?
Suppose I want to set both USR and GRP quotas for a user, however GRP is not the primary group. Will gpfs enforce the secondary group quota for that user? What I mean is, if the user keeps writing files with secondary group as the attribute, and that overall group quota is reached, will that user be stopped by gpfs? Thanks Jaime ************************************ TELL US ABOUT YOUR SUCCESS STORIES http://www.scinethpc.ca/testimonials ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca - www.computecanada.org University of Toronto 256 McCaul Street, Room 235 Toronto, ON, M5T1W5 P: 416-978-2755 C: 416-505-1477 ---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto.
Hi, quotas are only counted against primary group sven On Wed, Aug 3, 2016 at 9:22 AM, Jaime Pinto <pinto@scinet.utoronto.ca> wrote:
Suppose I want to set both USR and GRP quotas for a user, however GRP is not the primary group. Will gpfs enforce the secondary group quota for that user?
What I mean is, if the user keeps writing files with secondary group as the attribute, and that overall group quota is reached, will that user be stopped by gpfs?
Thanks Jaime
************************************ TELL US ABOUT YOUR SUCCESS STORIES http://www.scinethpc.ca/testimonials ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca - www.computecanada.org University of Toronto 256 McCaul Street, Room 235 Toronto, ON, M5T1W5 P: 416-978-2755 C: 416-505-1477
---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Quoting "Sven Oehme" <oehmes@gmail.com>:
Hi,
quotas are only counted against primary group
sven
Thanks Sven I kind of suspected, but needed an independent confirmation. Jaime
On Wed, Aug 3, 2016 at 9:22 AM, Jaime Pinto <pinto@scinet.utoronto.ca> wrote:
Suppose I want to set both USR and GRP quotas for a user, however GRP is not the primary group. Will gpfs enforce the secondary group quota for that user?
What I mean is, if the user keeps writing files with secondary group as the attribute, and that overall group quota is reached, will that user be stopped by gpfs?
Thanks Jaime
************************************ TELL US ABOUT YOUR SUCCESS STORIES http://www.scinethpc.ca/testimonials ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca - www.computecanada.org University of Toronto 256 McCaul Street, Room 235 Toronto, ON, M5T1W5 P: 416-978-2755 C: 416-505-1477
---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto.
Hi Sven, Wait - am I misunderstanding something here? Let’s say that I have “user1” who has primary group “group1” and secondary group “group2”. And let’s say that they write to a directory where the bit on the directory forces all files created in that directory to have group2 associated with them. Are you saying that those files still count against group1’s group quota??? Thanks for clarifying… Kevin On Aug 3, 2016, at 11:35 AM, Sven Oehme <oehmes@gmail.com<mailto:oehmes@gmail.com>> wrote: Hi, quotas are only counted against primary group sven On Wed, Aug 3, 2016 at 9:22 AM, Jaime Pinto <pinto@scinet.utoronto.ca<mailto:pinto@scinet.utoronto.ca>> wrote: Suppose I want to set both USR and GRP quotas for a user, however GRP is not the primary group. Will gpfs enforce the secondary group quota for that user? What I mean is, if the user keeps writing files with secondary group as the attribute, and that overall group quota is reached, will that user be stopped by gpfs? Thanks Jaime ************************************ TELL US ABOUT YOUR SUCCESS STORIES http://www.scinethpc.ca/testimonials ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca<http://www.scinet.utoronto.ca/> - www.computecanada.org<http://www.computecanada.org/> University of Toronto 256 McCaul Street, Room 235 Toronto, ON, M5T1W5 P: 416-978-2755<tel:416-978-2755> C: 416-505-1477<tel:416-505-1477> ---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org/> http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633
Quoting "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu>:
Hi Sven,
Wait - am I misunderstanding something here? Let?s say that I have ?user1? who has primary group ?group1? and secondary group ?group2?. And let?s say that they write to a directory where the bit on the directory forces all files created in that directory to have group2 associated with them. Are you saying that those files still count against group1?s group quota???
Thanks for clarifying?
Kevin
Not really, My interpretation is that all files written with group2 will count towards the quota on that group. However any users with group2 as the primary group will be prevented from writing any further when the group2 quota is reached. However the culprit user1 with primary group as group1 won't be detected by gpfs, and can just keep going on writing group2 files. As far as the individual user quota, it doesn't matter: group1 or group2 it will be counted towards the usage of that user. It would be interesting if the behavior was more as expected. I just checked with my Lustre counter-parts and they tell me whichever secondary group is hit first, however many there may be, the user will be stopped. The problem then becomes identifying which of the secondary groups hit the limit for that user. Jaime
On Aug 3, 2016, at 11:35 AM, Sven Oehme <oehmes@gmail.com<mailto:oehmes@gmail.com>> wrote:
Hi,
quotas are only counted against primary group
sven
On Wed, Aug 3, 2016 at 9:22 AM, Jaime Pinto <pinto@scinet.utoronto.ca<mailto:pinto@scinet.utoronto.ca>> wrote: Suppose I want to set both USR and GRP quotas for a user, however GRP is not the primary group. Will gpfs enforce the secondary group quota for that user?
What I mean is, if the user keeps writing files with secondary group as the attribute, and that overall group quota is reached, will that user be stopped by gpfs?
Thanks Jaime
************************************ TELL US ABOUT YOUR SUCCESS STORIES http://www.scinethpc.ca/testimonials ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca<http://www.scinet.utoronto.ca/> - www.computecanada.org<http://www.computecanada.org/> University of Toronto 256 McCaul Street, Room 235 Toronto, ON, M5T1W5 P: 416-978-2755<tel:416-978-2755> C: 416-505-1477<tel:416-505-1477>
---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto.
Hi Jaime / Sven, If Jaime’s interpretation is correct about user1 continuing to be able to write to “group2” files even though that group is at their hard limit, then that’s a bug that needs fixing. I haven’t tested that myself, and we’re in a downtime right now so I’m a tad bit busy, but if I need to I’ll test it on our test cluster later this week. Kevin On Aug 3, 2016, at 1:30 PM, Jaime Pinto <pinto@scinet.utoronto.ca<mailto:pinto@scinet.utoronto.ca>> wrote: Quoting "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu<mailto:Kevin.Buterbaugh@vanderbilt.edu>>: Hi Sven, Wait - am I misunderstanding something here? Let?s say that I have ?user1? who has primary group ?group1? and secondary group ?group2?. And let?s say that they write to a directory where the bit on the directory forces all files created in that directory to have group2 associated with them. Are you saying that those files still count against group1?s group quota??? Thanks for clarifying? Kevin Not really, My interpretation is that all files written with group2 will count towards the quota on that group. However any users with group2 as the primary group will be prevented from writing any further when the group2 quota is reached. However the culprit user1 with primary group as group1 won't be detected by gpfs, and can just keep going on writing group2 files. As far as the individual user quota, it doesn't matter: group1 or group2 it will be counted towards the usage of that user. It would be interesting if the behavior was more as expected. I just checked with my Lustre counter-parts and they tell me whichever secondary group is hit first, however many there may be, the user will be stopped. The problem then becomes identifying which of the secondary groups hit the limit for that user. Jaime On Aug 3, 2016, at 11:35 AM, Sven Oehme <oehmes@gmail.com<mailto:oehmes@gmail.com><mailto:oehmes@gmail.com>> wrote: Hi, quotas are only counted against primary group sven On Wed, Aug 3, 2016 at 9:22 AM, Jaime Pinto <pinto@scinet.utoronto.ca<mailto:pinto@scinet.utoronto.ca><mailto:pinto@scinet.utoronto.ca>> wrote: Suppose I want to set both USR and GRP quotas for a user, however GRP is not the primary group. Will gpfs enforce the secondary group quota for that user? What I mean is, if the user keeps writing files with secondary group as the attribute, and that overall group quota is reached, will that user be stopped by gpfs? Thanks Jaime ************************************ TELL US ABOUT YOUR SUCCESS STORIES http://www.scinethpc.ca/testimonials ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca<http://www.scinet.utoronto.ca><http://www.scinet.utoronto.ca/> - www.computecanada.org<http://www.computecanada.org><http://www.computecanada.org/> University of Toronto 256 McCaul Street, Room 235 Toronto, ON, M5T1W5 P: 416-978-2755<tel:416-978-2755> C: 416-505-1477<tel:416-505-1477> ---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto. — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633
On 03/08/16 19:34, Buterbaugh, Kevin L wrote:
Hi Jaime / Sven,
If Jaime’s interpretation is correct about user1 continuing to be able to write to “group2” files even though that group is at their hard limit, then that’s a bug that needs fixing. I haven’t tested that myself, and we’re in a downtime right now so I’m a tad bit busy, but if I need to I’ll test it on our test cluster later this week.
Even if Jamie's interpretation is wrong it shows the other massive failure of group quotas under Unix and why they are not fit for purpose in the real world. So bufh here can deliberately or accidentally do a denial of service on other users and tracking down the offending user is a right pain in the backside. The point of being able to change group ownership on a file is to indicate the massive weakness of the whole group quota system, and why in my experience nobody actually uses it, and "project" quota options have been implemented in many "enterprise" Unix file systems. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
JAB, Our scratch filesystem uses user and group quotas. It started out as a traditional scratch filesystem but then we decided (for better or worse) to allow groups to purchase quota on it (and we don’t purge it, as many sites do). We have many users in multiple groups, so if this is not working right it’s a potential issue for us. But you’re right, I’m a nobody… Kevin On Aug 3, 2016, at 2:13 PM, Jonathan Buzzard <jonathan@buzzard.me.uk<mailto:jonathan@buzzard.me.uk>> wrote: On 03/08/16 19:34, Buterbaugh, Kevin L wrote: Hi Jaime / Sven, If Jaime’s interpretation is correct about user1 continuing to be able to write to “group2” files even though that group is at their hard limit, then that’s a bug that needs fixing. I haven’t tested that myself, and we’re in a downtime right now so I’m a tad bit busy, but if I need to I’ll test it on our test cluster later this week. Even if Jamie's interpretation is wrong it shows the other massive failure of group quotas under Unix and why they are not fit for purpose in the real world. So bufh here can deliberately or accidentally do a denial of service on other users and tracking down the offending user is a right pain in the backside. The point of being able to change group ownership on a file is to indicate the massive weakness of the whole group quota system, and why in my experience nobody actually uses it, and "project" quota options have been implemented in many "enterprise" Unix file systems. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk<http://buzzard.me.uk> Fife, United Kingdom. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633
i can't contribute much to the usefulness of tracking primary or secondary group. depending on who you ask you get a 50/50 answer why its great or broken either way. Jonathan explanation was correct, we only track/enforce primary groups , we don't do anything with secondary groups in regards to quotas. if there is 'doubt' of correct quotation of files on the disk in the filesystem one could always run mmcheckquota, its i/o intensive but will match quota usage of the in memory 'assumption' and update it from the actual data thats stored on disk. sven On Wed, Aug 3, 2016 at 12:18 PM, Buterbaugh, Kevin L < Kevin.Buterbaugh@vanderbilt.edu> wrote:
JAB,
Our scratch filesystem uses user and group quotas. It started out as a traditional scratch filesystem but then we decided (for better or worse) to allow groups to purchase quota on it (and we don’t purge it, as many sites do).
We have many users in multiple groups, so if this is not working right it’s a potential issue for us. But you’re right, I’m a nobody…
Kevin
On Aug 3, 2016, at 2:13 PM, Jonathan Buzzard <jonathan@buzzard.me.uk> wrote:
On 03/08/16 19:34, Buterbaugh, Kevin L wrote:
Hi Jaime / Sven,
If Jaime’s interpretation is correct about user1 continuing to be able to write to “group2” files even though that group is at their hard limit, then that’s a bug that needs fixing. I haven’t tested that myself, and we’re in a downtime right now so I’m a tad bit busy, but if I need to I’ll test it on our test cluster later this week.
Even if Jamie's interpretation is wrong it shows the other massive failure of group quotas under Unix and why they are not fit for purpose in the real world.
So bufh here can deliberately or accidentally do a denial of service on other users and tracking down the offending user is a right pain in the backside.
The point of being able to change group ownership on a file is to indicate the massive weakness of the whole group quota system, and why in my experience nobody actually uses it, and "project" quota options have been implemented in many "enterprise" Unix file systems.
JAB.
-- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
— Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Since there were inconsistencies in the responses, I decided to rig a couple of accounts/groups on our LDAP to test "My interpretation", and determined that I was wrong. When Kevin mentioned it would mean a bug I had to double-check: If a user hits the hard quota or exceeds the grace period on the soft quota on any of the secondary groups that user will be stopped from further writing to those groups as well, just as in the primary group. I hope this clears the waters a bit. I still have to solve my puzzle. Thanks everyone for the feedback. Jaime Quoting "Jaime Pinto" <pinto@scinet.utoronto.ca>:
Quoting "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu>:
Hi Sven,
Wait - am I misunderstanding something here? Let?s say that I have ?user1? who has primary group ?group1? and secondary group ?group2?. And let?s say that they write to a directory where the bit on the directory forces all files created in that directory to have group2 associated with them. Are you saying that those files still count against group1?s group quota???
Thanks for clarifying?
Kevin
Not really,
My interpretation is that all files written with group2 will count towards the quota on that group. However any users with group2 as the primary group will be prevented from writing any further when the group2 quota is reached. However the culprit user1 with primary group as group1 won't be detected by gpfs, and can just keep going on writing group2 files.
As far as the individual user quota, it doesn't matter: group1 or group2 it will be counted towards the usage of that user.
It would be interesting if the behavior was more as expected. I just checked with my Lustre counter-parts and they tell me whichever secondary group is hit first, however many there may be, the user will be stopped. The problem then becomes identifying which of the secondary groups hit the limit for that user.
Jaime
On Aug 3, 2016, at 11:35 AM, Sven Oehme <oehmes@gmail.com<mailto:oehmes@gmail.com>> wrote:
Hi,
quotas are only counted against primary group
sven
On Wed, Aug 3, 2016 at 9:22 AM, Jaime Pinto <pinto@scinet.utoronto.ca<mailto:pinto@scinet.utoronto.ca>> wrote: Suppose I want to set both USR and GRP quotas for a user, however GRP is not the primary group. Will gpfs enforce the secondary group quota for that user?
What I mean is, if the user keeps writing files with secondary group as the attribute, and that overall group quota is reached, will that user be stopped by gpfs?
Thanks Jaime
************************************ TELL US ABOUT YOUR SUCCESS STORIES http://www.scinethpc.ca/testimonials ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca<http://www.scinet.utoronto.ca/> - www.computecanada.org<http://www.computecanada.org/> University of Toronto 256 McCaul Street, Room 235 Toronto, ON, M5T1W5 P: 416-978-2755<tel:416-978-2755> C: 416-505-1477<tel:416-505-1477>
---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
************************************ TELL US ABOUT YOUR SUCCESS STORIES http://www.scinethpc.ca/testimonials ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca - www.computecanada.org University of Toronto 256 McCaul Street, Room 235 Toronto, ON, M5T1W5 P: 416-978-2755 C: 416-505-1477 ---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto.
Hi Jaime, Thank you sooooo much for doing this and reporting back the results! They’re in line with what I would expect to happen. I was going to test this as well, but we have had to extend our downtime until noontime tomorrow, so I haven’t had a chance to do so yet. Now I don’t have to… ;-) Kevin On Aug 4, 2016, at 10:59 AM, Jaime Pinto <pinto@scinet.utoronto.ca<mailto:pinto@scinet.utoronto.ca>> wrote: Since there were inconsistencies in the responses, I decided to rig a couple of accounts/groups on our LDAP to test "My interpretation", and determined that I was wrong. When Kevin mentioned it would mean a bug I had to double-check: If a user hits the hard quota or exceeds the grace period on the soft quota on any of the secondary groups that user will be stopped from further writing to those groups as well, just as in the primary group. I hope this clears the waters a bit. I still have to solve my puzzle. Thanks everyone for the feedback. Jaime Quoting "Jaime Pinto" <pinto@scinet.utoronto.ca<mailto:pinto@scinet.utoronto.ca>>: Quoting "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu<mailto:Kevin.Buterbaugh@vanderbilt.edu>>: Hi Sven, Wait - am I misunderstanding something here? Let?s say that I have ?user1? who has primary group ?group1? and secondary group ?group2?. And let?s say that they write to a directory where the bit on the directory forces all files created in that directory to have group2 associated with them. Are you saying that those files still count against group1?s group quota??? Thanks for clarifying? Kevin Not really, My interpretation is that all files written with group2 will count towards the quota on that group. However any users with group2 as the primary group will be prevented from writing any further when the group2 quota is reached. However the culprit user1 with primary group as group1 won't be detected by gpfs, and can just keep going on writing group2 files. As far as the individual user quota, it doesn't matter: group1 or group2 it will be counted towards the usage of that user. It would be interesting if the behavior was more as expected. I just checked with my Lustre counter-parts and they tell me whichever secondary group is hit first, however many there may be, the user will be stopped. The problem then becomes identifying which of the secondary groups hit the limit for that user. Jaime On Aug 3, 2016, at 11:35 AM, Sven Oehme <oehmes@gmail.com<mailto:oehmes@gmail.com><mailto:oehmes@gmail.com>> wrote: Hi, quotas are only counted against primary group sven On Wed, Aug 3, 2016 at 9:22 AM, Jaime Pinto <pinto@scinet.utoronto.ca<mailto:pinto@scinet.utoronto.ca><mailto:pinto@scinet.utoronto.ca>> wrote: Suppose I want to set both USR and GRP quotas for a user, however GRP is not the primary group. Will gpfs enforce the secondary group quota for that user? What I mean is, if the user keeps writing files with secondary group as the attribute, and that overall group quota is reached, will that user be stopped by gpfs? Thanks Jaime ************************************ TELL US ABOUT YOUR SUCCESS STORIES http://www.scinethpc.ca/testimonials ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca<http://www.scinet.utoronto.ca><http://www.scinet.utoronto.ca/> - www.computecanada.org<http://www.computecanada.org><http://www.computecanada.org/> University of Toronto 256 McCaul Street, Room 235 Toronto, ON, M5T1W5 P: 416-978-2755<tel:416-978-2755> C: 416-505-1477<tel:416-505-1477> ---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss ************************************ TELL US ABOUT YOUR SUCCESS STORIES http://www.scinethpc.ca/testimonials ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca<http://www.scinet.utoronto.ca> - www.computecanada.org<http://www.computecanada.org> University of Toronto 256 McCaul Street, Room 235 Toronto, ON, M5T1W5 P: 416-978-2755 C: 416-505-1477 ---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633
OK More info: Users can apply the 'sg group1' or 'sq group2' command from a shell or script to switch the group mask from that point on, and dodge the quota that may have been exceeded on a group. However, as the group owner or other member of the group on the limit, I could not find a tool they can use on their own to find out who is(are) the largest user(s); 'du' takes too long, and some users don't give read permissions on their directories. As part of the puzzle solution I have to come up with a root wrapper that can make the contents of the mmrepquota report available to them. Jaime Quoting "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu>:
Hi Jaime,
Thank you sooooo much for doing this and reporting back the results! They?re in line with what I would expect to happen. I was going to test this as well, but we have had to extend our downtime until noontime tomorrow, so I haven?t had a chance to do so yet. Now I don?t have to? ;-)
Kevin
On Aug 4, 2016, at 10:59 AM, Jaime Pinto <pinto@scinet.utoronto.ca<mailto:pinto@scinet.utoronto.ca>> wrote:
Since there were inconsistencies in the responses, I decided to rig a couple of accounts/groups on our LDAP to test "My interpretation", and determined that I was wrong. When Kevin mentioned it would mean a bug I had to double-check:
If a user hits the hard quota or exceeds the grace period on the soft quota on any of the secondary groups that user will be stopped from further writing to those groups as well, just as in the primary group.
I hope this clears the waters a bit. I still have to solve my puzzle.
Thanks everyone for the feedback. Jaime
Quoting "Jaime Pinto" <pinto@scinet.utoronto.ca<mailto:pinto@scinet.utoronto.ca>>:
Quoting "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu<mailto:Kevin.Buterbaugh@vanderbilt.edu>>:
Hi Sven,
Wait - am I misunderstanding something here? Let?s say that I have ?user1? who has primary group ?group1? and secondary group ?group2?. And let?s say that they write to a directory where the bit on the directory forces all files created in that directory to have group2 associated with them. Are you saying that those files still count against group1?s group quota???
Thanks for clarifying?
Kevin
Not really,
My interpretation is that all files written with group2 will count towards the quota on that group. However any users with group2 as the primary group will be prevented from writing any further when the group2 quota is reached. However the culprit user1 with primary group as group1 won't be detected by gpfs, and can just keep going on writing group2 files.
As far as the individual user quota, it doesn't matter: group1 or group2 it will be counted towards the usage of that user.
It would be interesting if the behavior was more as expected. I just checked with my Lustre counter-parts and they tell me whichever secondary group is hit first, however many there may be, the user will be stopped. The problem then becomes identifying which of the secondary groups hit the limit for that user.
Jaime
On Aug 3, 2016, at 11:35 AM, Sven Oehme <oehmes@gmail.com<mailto:oehmes@gmail.com><mailto:oehmes@gmail.com>> wrote:
Hi,
quotas are only counted against primary group
sven
On Wed, Aug 3, 2016 at 9:22 AM, Jaime Pinto <pinto@scinet.utoronto.ca<mailto:pinto@scinet.utoronto.ca><mailto:pinto@scinet.utoronto.ca>> wrote: Suppose I want to set both USR and GRP quotas for a user, however GRP is not the primary group. Will gpfs enforce the secondary group quota for that user?
What I mean is, if the user keeps writing files with secondary group as the attribute, and that overall group quota is reached, will that user be stopped by gpfs?
Thanks Jaime
************************************ TELL US ABOUT YOUR SUCCESS STORIES http://www.scinethpc.ca/testimonials ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca<http://www.scinet.utoronto.ca><http://www.scinet.utoronto.ca/> - www.computecanada.org<http://www.computecanada.org><http://www.computecanada.org/> University of Toronto 256 McCaul Street, Room 235 Toronto, ON, M5T1W5 P: 416-978-2755<tel:416-978-2755> C: 416-505-1477<tel:416-505-1477>
---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss
************************************ TELL US ABOUT YOUR SUCCESS STORIES http://www.scinethpc.ca/testimonials ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca<http://www.scinet.utoronto.ca> - www.computecanada.org<http://www.computecanada.org> University of Toronto 256 McCaul Street, Room 235 Toronto, ON, M5T1W5 P: 416-978-2755 C: 416-505-1477
---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss
? Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633
************************************ TELL US ABOUT YOUR SUCCESS STORIES http://www.scinethpc.ca/testimonials ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca - www.computecanada.org University of Toronto 256 McCaul Street, Room 235 Toronto, ON, M5T1W5 P: 416-978-2755 C: 416-505-1477 ---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto.
This is a long discussion thread, touching on several related subjects, but as far as the original "secondary groups" question, things are quite simple. A file in a Unix file system has an owning user and an owning group. Those are two IDs that are stored in the inode on disk, and those IDs are used to charge the corresponding user and group quotas. Exactly how the owning GID gets set is an entirely separate question. It may be the current user's primary group, or a secondary group, or a result of chown, etc. To GPFS code it doesn't matter what supplementary GIDs a given thread has in its security context for the purposes of charging group quota, the only thing that matters is the GID in the file inode. yuri From: "Jaime Pinto" <pinto@scinet.utoronto.ca> To: "gpfsug main discussion list" <gpfsug-discuss@spectrumscale.org>, "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu>, Date: 08/04/2016 09:34 AM Subject: Re: [gpfsug-discuss] quota on secondary groups for a user? Sent by: gpfsug-discuss-bounces@spectrumscale.org OK More info: Users can apply the 'sg group1' or 'sq group2' command from a shell or script to switch the group mask from that point on, and dodge the quota that may have been exceeded on a group. However, as the group owner or other member of the group on the limit, I could not find a tool they can use on their own to find out who is(are) the largest user(s); 'du' takes too long, and some users don't give read permissions on their directories. As part of the puzzle solution I have to come up with a root wrapper that can make the contents of the mmrepquota report available to them. Jaime Quoting "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu>:
Hi Jaime,
Thank you sooooo much for doing this and reporting back the results! They?re in line with what I would expect to happen. I was going to test this as well, but we have had to extend our downtime until noontime tomorrow, so I haven?t had a chance to do so yet. Now I don?t have to? ;-)
Kevin
On Aug 4, 2016, at 10:59 AM, Jaime Pinto <pinto@scinet.utoronto.ca<mailto:pinto@scinet.utoronto.ca>> wrote:
Since there were inconsistencies in the responses, I decided to rig a couple of accounts/groups on our LDAP to test "My interpretation", and determined that I was wrong. When Kevin mentioned it would mean a bug I had to double-check:
If a user hits the hard quota or exceeds the grace period on the soft quota on any of the secondary groups that user will be stopped from further writing to those groups as well, just as in the primary group.
I hope this clears the waters a bit. I still have to solve my puzzle.
Thanks everyone for the feedback. Jaime
Quoting "Jaime Pinto" <pinto@scinet.utoronto.ca<mailto:pinto@scinet.utoronto.ca>>:
Quoting "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu<mailto:Kevin.Buterbaugh@vanderbilt.edu
:
Hi Sven,
Wait - am I misunderstanding something here? Let?s say that I have ?user1? who has primary group ?group1? and secondary group ?group2?. And let?s say that they write to a directory where the bit on the directory forces all files created in that directory to have group2 associated with them. Are you saying that those files still count against group1?s group quota???
Thanks for clarifying?
Kevin
Not really,
My interpretation is that all files written with group2 will count towards the quota on that group. However any users with group2 as the primary group will be prevented from writing any further when the group2 quota is reached. However the culprit user1 with primary group as group1 won't be detected by gpfs, and can just keep going on writing group2 files.
As far as the individual user quota, it doesn't matter: group1 or group2 it will be counted towards the usage of that user.
It would be interesting if the behavior was more as expected. I just checked with my Lustre counter-parts and they tell me whichever secondary group is hit first, however many there may be, the user will be stopped. The problem then becomes identifying which of the secondary groups hit the limit for that user.
Jaime
On Aug 3, 2016, at 11:35 AM, Sven Oehme <oehmes@gmail.com<mailto:oehmes@gmail.com><mailto:oehmes@gmail.com>> wrote:
Hi,
quotas are only counted against primary group
sven
On Wed, Aug 3, 2016 at 9:22 AM, Jaime Pinto <pinto@scinet.utoronto.ca<mailto:pinto@scinet.utoronto.ca>< mailto:pinto@scinet.utoronto.ca>> wrote: Suppose I want to set both USR and GRP quotas for a user, however GRP is not the primary group. Will gpfs enforce the secondary group quota for that user?
What I mean is, if the user keeps writing files with secondary group as the attribute, and that overall group quota is reached, will that user be stopped by gpfs?
Thanks Jaime
************************************ TELL US ABOUT YOUR SUCCESS STORIES http://www.scinethpc.ca/testimonials ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca<http://www.scinet.utoronto.ca>< http://www.scinet.utoronto.ca/> - www.computecanada.org<http://www.computecanada.org>< http://www.computecanada.org/> University of Toronto 256 McCaul Street, Room 235 Toronto, ON, M5T1W5 P: 416-978-2755<tel:416-978-2755> C: 416-505-1477<tel:416-505-1477>
---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss
************************************ TELL US ABOUT YOUR SUCCESS STORIES http://www.scinethpc.ca/testimonials ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca<http://www.scinet.utoronto.ca> - www.computecanada.org<http://www.computecanada.org> University of Toronto 256 McCaul Street, Room 235 Toronto, ON, M5T1W5 P: 416-978-2755 C: 416-505-1477
---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss
? Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> -
(615)875-9633
************************************ TELL US ABOUT YOUR SUCCESS STORIES http://www.scinethpc.ca/testimonials ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca - www.computecanada.org University of Toronto 256 McCaul Street, Room 235 Toronto, ON, M5T1W5 P: 416-978-2755 C: 416-505-1477 ---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On 03/08/16 19:06, Buterbaugh, Kevin L wrote:
Hi Sven,
Wait - am I misunderstanding something here? Let’s say that I have “user1” who has primary group “group1” and secondary group “group2”. And let’s say that they write to a directory where the bit on the directory forces all files created in that directory to have group2 associated with them. Are you saying that those files still count against group1’s group quota???
Yeah, but bastard user from hell over here then does chgrp group1 myevilfile.txt and your set group id bit becomes irrelevant because it is only ever indicative. In fact there is nothing that guarantees the set group id bit is honored because there is nothing stopping the user or a program coming in immediately after the file is created and changing that. Not pointing fingers at the OSX SMB client when Unix extensions are active on a Samba server in any way there. As such Unix group quotas are in the real world a total waste of space. This is if you ask me why XFS and Lustre have project quotas and GPFS has file sets. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
JAB, The set group id bit is tangential to my point. I expect GPFS to count any files a user owns against their user quota. If they are a member of multiple groups then I also expect it to count it against the group quota of whatever group is associated with that file. I.e., if they do a chgrp then GPFS should subtract from one group and add to another. Kevin On Aug 3, 2016, at 1:46 PM, Jonathan Buzzard <jonathan@buzzard.me.uk<mailto:jonathan@buzzard.me.uk>> wrote: On 03/08/16 19:06, Buterbaugh, Kevin L wrote: Hi Sven, Wait - am I misunderstanding something here? Let’s say that I have “user1” who has primary group “group1” and secondary group “group2”. And let’s say that they write to a directory where the bit on the directory forces all files created in that directory to have group2 associated with them. Are you saying that those files still count against group1’s group quota??? Yeah, but bastard user from hell over here then does chgrp group1 myevilfile.txt and your set group id bit becomes irrelevant because it is only ever indicative. In fact there is nothing that guarantees the set group id bit is honored because there is nothing stopping the user or a program coming in immediately after the file is created and changing that. Not pointing fingers at the OSX SMB client when Unix extensions are active on a Samba server in any way there. As such Unix group quotas are in the real world a total waste of space. This is if you ask me why XFS and Lustre have project quotas and GPFS has file sets. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk<http://buzzard.me.uk> Fife, United Kingdom. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633
On 03/08/16 17:22, Jaime Pinto wrote:
Suppose I want to set both USR and GRP quotas for a user, however GRP is not the primary group. Will gpfs enforce the secondary group quota for that user?
Nope that's not how POSIX schematics work for group quotas. As far as I can tell only your primary group is used for group quotas. It basically makes group quotas in Unix a waste of time in my opinion. At least I have never come across a real world scenario where they work in a useful manner.
What I mean is, if the user keeps writing files with secondary group as the attribute, and that overall group quota is reached, will that user be stopped by gpfs?
File sets are the answer to your problems, but retrospectively applying them to a file system is a pain. You create a file set for a directory and can then apply a quota to the file set. Even better you can apply per file set user and group quotas. So if file set A has a 1TB quota you could limit user X to 100GB in the file set, but outside the file set they could have a different quota or even no quota. Only issue is a limit of ~10,000 file sets per file system JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
I guess I have a bit of a puzzle to solve, combining quotas on filesets, paths and USR/GRP attributes So much for the "standard" built-in linux account creation script, in which by default every new user is created with primary GID=UID, doesn't really help any of us. Jaime Quoting "Jonathan Buzzard" <jonathan@buzzard.me.uk>:
On 03/08/16 17:22, Jaime Pinto wrote:
Suppose I want to set both USR and GRP quotas for a user, however GRP is not the primary group. Will gpfs enforce the secondary group quota for that user?
Nope that's not how POSIX schematics work for group quotas. As far as I can tell only your primary group is used for group quotas. It basically makes group quotas in Unix a waste of time in my opinion. At least I have never come across a real world scenario where they work in a useful manner.
What I mean is, if the user keeps writing files with secondary group as the attribute, and that overall group quota is reached, will that user be stopped by gpfs?
File sets are the answer to your problems, but retrospectively applying them to a file system is a pain. You create a file set for a directory and can then apply a quota to the file set. Even better you can apply per file set user and group quotas. So if file set A has a 1TB quota you could limit user X to 100GB in the file set, but outside the file set they could have a different quota or even no quota.
Only issue is a limit of ~10,000 file sets per file system
JAB.
-- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto.
The GID selection rules for account creation are Linux distribution specific. It sounds like you are familiar with Red Hat, where I think this idea of GID=UID started. sles12sp1-brc:/dev/disk/by-uuid # useradd testout sles12sp1-brc:/dev/disk/by-uuid # grep testout /etc/passwd testout:x:1001:100::/home/testout:/bin/bash sles12sp1-brc:/dev/disk/by-uuid # grep 100 /etc/group users:x:100: sles12sp1-brc:/dev/disk/by-uuid # Cheers, Greg -----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Jaime Pinto Sent: Thursday, 4 August 2016 2:56 AM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org>; Jonathan Buzzard <jonathan@buzzard.me.uk> Cc: gpfsug-discuss@spectrumscale.org Subject: Re: [gpfsug-discuss] quota on secondary groups for a user? I guess I have a bit of a puzzle to solve, combining quotas on filesets, paths and USR/GRP attributes So much for the "standard" built-in linux account creation script, in which by default every new user is created with primary GID=UID, doesn't really help any of us. Jaime Quoting "Jonathan Buzzard" <jonathan@buzzard.me.uk>:
On 03/08/16 17:22, Jaime Pinto wrote:
Suppose I want to set both USR and GRP quotas for a user, however GRP is not the primary group. Will gpfs enforce the secondary group quota for that user?
Nope that's not how POSIX schematics work for group quotas. As far as I can tell only your primary group is used for group quotas. It basically makes group quotas in Unix a waste of time in my opinion. At least I have never come across a real world scenario where they work in a useful manner.
What I mean is, if the user keeps writing files with secondary group as the attribute, and that overall group quota is reached, will that user be stopped by gpfs?
File sets are the answer to your problems, but retrospectively applying them to a file system is a pain. You create a file set for a directory and can then apply a quota to the file set. Even better you can apply per file set user and group quotas. So if file set A has a 1TB quota you could limit user X to 100GB in the file set, but outside the file set they could have a different quota or even no quota.
Only issue is a limit of ~10,000 file sets per file system
JAB.
-- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
1000 isn't it?! We've always worked on that assumption. -----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Jonathan Buzzard Sent: 03 August 2016 17:44 To: gpfsug-discuss@spectrumscale.org Subject: Re: [gpfsug-discuss] quota on secondary groups for a user? in the file set, but outside the file set they could have a different quota or even no quota. Only issue is a limit of ~10,000 file sets per file system JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Ah. Dependent vs independent. (10,000 and 1000 respectively). -----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Sobey, Richard A Sent: 04 August 2016 09:14 To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] quota on secondary groups for a user? 1000 isn't it?! We've always worked on that assumption. -----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Jonathan Buzzard Sent: 03 August 2016 17:44 To: gpfsug-discuss@spectrumscale.org Subject: Re: [gpfsug-discuss] quota on secondary groups for a user? in the file set, but outside the file set they could have a different quota or even no quota. Only issue is a limit of ~10,000 file sets per file system JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Hi! I have tested it with dependent filesets in GPFS 4.1.1.X and there the limit is 10.000. Stephan On 08/04/16 10:13, Sobey, Richard A wrote:
1000 isn't it?! We've always worked on that assumption.
-----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Jonathan Buzzard Sent: 03 August 2016 17:44 To: gpfsug-discuss@spectrumscale.org Subject: Re: [gpfsug-discuss] quota on secondary groups for a user? in the file set, but outside the file set they could have a different quota or even no quota.
Only issue is a limit of ~10,000 file sets per file system
JAB.
-- Stephan Graf Juelich Supercomputing Centre Institute for Advanced Simulation Forschungszentrum Juelich GmbH 52425 Juelich, Germany Phone: +49-2461-61-6578 Fax: +49-2461-61-6656 E-mail: st.graf@fz-juelich.de WWW: http://www.fz-juelich.de/jsc/ ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. Schmidt ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------
participants (8)
-
Buterbaugh, Kevin L -
Greg.Lehmann@csiro.au -
Jaime Pinto -
Jonathan Buzzard -
Sobey, Richard A -
Stephan Graf -
Sven Oehme -
Yuri L Volobuev
