Re: [gpfsug-discuss] Smallest block quota/limit and file quota/limit possible to set?
Hi Keith, You can use ACLs for fine grained permissions. A quota limit of 0 in GPFS implies no limits. Regards, The Spectrum Scale (GPFS) team ------------------------------------------------------------------------------------------------------------------ If you feel that your question can benefit other users of Spectrum Scale (GPFS), then please post it to the public IBM developerWroks Forum at https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0... . If your query concerns a potential software error in Spectrum Scale (GPFS) and you have an IBM software maintenance contract please contact 1-800-237-5511 in the United States or your local IBM Service Center in other countries. The forum is informally monitored as time permits and should not be used for priority messages to the Spectrum Scale (GPFS) team. From: Keith Ball <bipcuds@gmail.com> To: gpfsug-discuss@spectrumscale.org Date: 12/04/2017 08:19 AM Subject: [gpfsug-discuss] Smallest block quota/limit and file quota/limit possible to set? Sent by: gpfsug-discuss-bounces@spectrumscale.org From: Keith Ball <kball@redlineperf.com> To: gpfsug-discuss@spectrumscale.org Cc: Bcc: Date: Sun, 3 Dec 2017 16:13:13 -0500 Subject: Smallest block quota/limit and file quota/limit possible to set? HI All, We have a system where all users have their own private group as well. However, for a given fileset (we are using --perfileset-quota), we would like to ONLY allow users who also belong to just a few central groups to be able to write to the fileset. That is, user "userA" has its own "groupA", but we only want the user to be able to write to the fileset if: - userA belongs to one of the groups (e.g. group1, group2, group3) that have explicitly set quotas - The group(s) in question are within quota/limits. In general, we do not want any users that do NOT belong to one of the three groups with enabled quotas to be able to write anything at all to the fileset. Is there a way to set a ZERO quota for block/file in GPFS, that means what it actually should mean? i.e. "Your limit is 0 file = you cannot create files in this fileset". Creating some kind of "supergroup" owner of the fileset (with entitled users as members of the group) could work, but that will only work for *one* group. If we cannot set the block and file limits to zero, what *are* the smallest block and fie limits? In GPFS 3.5, they seem to be 1760MB for block. Is there a smallest quota for files? (blocksize is 16MB, which will be reduced to 4MB probably, in a subsequent cluster). Many Thanks, Keith -- Keith D. Ball, PhD RedLine Performance Solutions, LLC web: http://www.redlineperf.com/ email: kball@redlineperf.com cell: 540-557-7851_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
I don’t understand why not having permission(s) doesn’t prevent the user from writing into the fileset... As described, your case is about not wanting userA to be able to write to a fileset if userA isn’t in some groups. Don’t put them in those groups. That’s not even Spectrum Scale specific, it’s about generic *nix permissions. What am I missing? I don’t understand why you would want to use quota to enforce permissions. (There could be a legitimate reason here, but I don’t understand it.) Liberty, -- Stephen Ulmer Sent from a mobile device; please excuse autocorrect silliness.
On Dec 3, 2017, at 10:49 PM, IBM Spectrum Scale <scale@us.ibm.com> wrote:
Hi Keith,
You can use ACLs for fine grained permissions. A quota limit of 0 in GPFS implies no limits.
Regards, The Spectrum Scale (GPFS) team
------------------------------------------------------------------------------------------------------------------ If you feel that your question can benefit other users of Spectrum Scale (GPFS), then please post it to the public IBM developerWroks Forum at https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0....
If your query concerns a potential software error in Spectrum Scale (GPFS) and you have an IBM software maintenance contract please contact 1-800-237-5511 in the United States or your local IBM Service Center in other countries.
The forum is informally monitored as time permits and should not be used for priority messages to the Spectrum Scale (GPFS) team.
From: Keith Ball <bipcuds@gmail.com> To: gpfsug-discuss@spectrumscale.org Date: 12/04/2017 08:19 AM Subject: [gpfsug-discuss] Smallest block quota/limit and file quota/limit possible to set? Sent by: gpfsug-discuss-bounces@spectrumscale.org
From: Keith Ball <kball@redlineperf.com> To: gpfsug-discuss@spectrumscale.org Cc: Bcc: Date: Sun, 3 Dec 2017 16:13:13 -0500 Subject: Smallest block quota/limit and file quota/limit possible to set? HI All,
We have a system where all users have their own private group as well. However, for a given fileset (we are using --perfileset-quota), we would like to ONLY allow users who also belong to just a few central groups to be able to write to the fileset.
That is, user "userA" has its own "groupA", but we only want the user to be able to write to the fileset if: - userA belongs to one of the groups (e.g. group1, group2, group3) that have explicitly set quotas - The group(s) in question are within quota/limits.
In general, we do not want any users that do NOT belong to one of the three groups with enabled quotas to be able to write anything at all to the fileset.
Is there a way to set a ZERO quota for block/file in GPFS, that means what it actually should mean? i.e. "Your limit is 0 file = you cannot create files in this fileset". Creating some kind of "supergroup" owner of the fileset (with entitled users as members of the group) could work, but that will only work for *one* group.
If we cannot set the block and file limits to zero, what *are* the smallest block and fie limits? In GPFS 3.5, they seem to be 1760MB for block. Is there a smallest quota for files? (blocksize is 16MB, which will be reduced to 4MB probably, in a subsequent cluster).
Many Thanks, Keith
-- Keith D. Ball, PhD RedLine Performance Solutions, LLC web: http://www.redlineperf.com/ email: kball@redlineperf.com cell: 540-557-7851_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On Mon, 04 Dec 2017 08:46:31 -0500, Stephen Ulmer said:
As described, your case is about not wanting userA to be able to write to a fileset if userA isn’t in some groups. Don’t put them in those groups. That’s not even Spectrum Scale specific, it’s about generic *nix permissions.
The problem is that doesn't stop userA from scribbling into a world-writable directory, and they may have some of those because more than one group needs to write in a specific directory and ACLs are problematic for other reasons....
We have a /projects filesystem where individual projects can "buy" a specific amount of disk space. We enforce this purchase limit by creating a specific group for the allocation, adding designated users to the group and setting a group quota. This works fine as long as the users properly use setgid directories and keep proper group ownership of the files and directories. However, for various reasons our users keep creating files and directories with incorrect group ownership. In most cases this is accidental and eventually causes problems when other group members need to access the files. In abusive cases (not yet seen) people could use this to exceed project disk space allocations. To address this problem we have default quotas set to about 2GB (the smallest we seem to be able to set). This prevents users for consuming too much unpurchased disk space. However, this continues to allow users to create files and directories with incorrect group ownership and it takes users a while to discover their error. User education and cleanup becomes a problem long after the user thinks things are working. We would like to have groups without quota definitions to not be able to create any files. This would prevent accidental file creation at the first attempt. Stuart Barkley On Mon, 4 Dec 2017 at 08:46 -0000, Stephen Ulmer wrote:
I don?t understand why not having permission(s) doesn?t prevent the user from writing into the fileset...
As described, your case is about not wanting userA to be able to write to a fileset if userA isn?t in some groups. Don?t put them in those groups. That?s not even Spectrum Scale specific, it?s about generic *nix permissions.
What am I missing? I don?t understand why you would want to use quota to enforce permissions. (There could be a legitimate reason here, but I don?t understand it.)
Liberty,
-- Stephen Ulmer
Sent from a mobile device; please excuse autocorrect silliness.
On Dec 3, 2017, at 10:49 PM, IBM Spectrum Scale <scale@us.ibm.com> wrote:
Hi Keith,
You can use ACLs for fine grained permissions. A quota limit of 0 in GPFS implies no limits.
Regards, The Spectrum Scale (GPFS) team
From: Keith Ball <bipcuds@gmail.com> To: gpfsug-discuss@spectrumscale.org Date: 12/04/2017 08:19 AM Subject: [gpfsug-discuss] Smallest block quota/limit and file quota/limit possible to set? Sent by: gpfsug-discuss-bounces@spectrumscale.org
HI All,
We have a system where all users have their own private group as well. However, for a given fileset (we are using --perfileset-quota), we would like to ONLY allow users who also belong to just a few central groups to be able to write to the fileset.
That is, user "userA" has its own "groupA", but we only want the user to be able to write to the fileset if: - userA belongs to one of the groups (e.g. group1, group2, group3) that have explicitly set quotas - The group(s) in question are within quota/limits.
In general, we do not want any users that do NOT belong to one of the three groups with enabled quotas to be able to write anything at all to the fileset.
Is there a way to set a ZERO quota for block/file in GPFS, that means what it actually should mean? i.e. "Your limit is 0 file = you cannot create files in this fileset". Creating some kind of "supergroup" owner of the fileset (with entitled users as members of the group) could work, but that will only work for *one* group.
If we cannot set the block and file limits to zero, what *are* the smallest block and fie limits? In GPFS 3.5, they seem to be 1760MB for block. Is there a smallest quota for files? (blocksize is 16MB, which will be reduced to 4MB probably, in a subsequent cluster).
Many Thanks, Keith
Stuart, Have you looked at using filesets instead an using fileset quotas to achieve this? This is what we do and the max number of filesets (currently) isn't an issue for us. Simon ________________________________________ From: gpfsug-discuss-bounces@spectrumscale.org [gpfsug-discuss-bounces@spectrumscale.org] on behalf of stuartb@4gh.net [stuartb@4gh.net] Sent: 04 December 2017 16:33 To: gpfsug main discussion list Cc: gpfsug-discuss-bounces@spectrumscale.org Subject: Re: [gpfsug-discuss] Smallest block quota/limit and file quota/limit possible to set? We have a /projects filesystem where individual projects can "buy" a specific amount of disk space. We enforce this purchase limit by creating a specific group for the allocation, adding designated users to the group and setting a group quota. This works fine as long as the users properly use setgid directories and keep proper group ownership of the files and directories. However, for various reasons our users keep creating files and directories with incorrect group ownership. In most cases this is accidental and eventually causes problems when other group members need to access the files. In abusive cases (not yet seen) people could use this to exceed project disk space allocations. To address this problem we have default quotas set to about 2GB (the smallest we seem to be able to set). This prevents users for consuming too much unpurchased disk space. However, this continues to allow users to create files and directories with incorrect group ownership and it takes users a while to discover their error. User education and cleanup becomes a problem long after the user thinks things are working. We would like to have groups without quota definitions to not be able to create any files. This would prevent accidental file creation at the first attempt. Stuart Barkley On Mon, 4 Dec 2017 at 08:46 -0000, Stephen Ulmer wrote:
I don?t understand why not having permission(s) doesn?t prevent the user from writing into the fileset...
As described, your case is about not wanting userA to be able to write to a fileset if userA isn?t in some groups. Don?t put them in those groups. That?s not even Spectrum Scale specific, it?s about generic *nix permissions.
What am I missing? I don?t understand why you would want to use quota to enforce permissions. (There could be a legitimate reason here, but I don?t understand it.)
Liberty,
-- Stephen Ulmer
Sent from a mobile device; please excuse autocorrect silliness.
On Dec 3, 2017, at 10:49 PM, IBM Spectrum Scale <scale@us.ibm.com> wrote:
Hi Keith,
You can use ACLs for fine grained permissions. A quota limit of 0 in GPFS implies no limits.
Regards, The Spectrum Scale (GPFS) team
From: Keith Ball <bipcuds@gmail.com> To: gpfsug-discuss@spectrumscale.org Date: 12/04/2017 08:19 AM Subject: [gpfsug-discuss] Smallest block quota/limit and file quota/limit possible to set? Sent by: gpfsug-discuss-bounces@spectrumscale.org
HI All,
We have a system where all users have their own private group as well. However, for a given fileset (we are using --perfileset-quota), we would like to ONLY allow users who also belong to just a few central groups to be able to write to the fileset.
That is, user "userA" has its own "groupA", but we only want the user to be able to write to the fileset if: - userA belongs to one of the groups (e.g. group1, group2, group3) that have explicitly set quotas - The group(s) in question are within quota/limits.
In general, we do not want any users that do NOT belong to one of the three groups with enabled quotas to be able to write anything at all to the fileset.
Is there a way to set a ZERO quota for block/file in GPFS, that means what it actually should mean? i.e. "Your limit is 0 file = you cannot create files in this fileset". Creating some kind of "supergroup" owner of the fileset (with entitled users as members of the group) could work, but that will only work for *one* group.
If we cannot set the block and file limits to zero, what *are* the smallest block and fie limits? In GPFS 3.5, they seem to be 1760MB for block. Is there a smallest quota for files? (blocksize is 16MB, which will be reduced to 4MB probably, in a subsequent cluster).
Many Thanks, Keith
gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On Mon, 4 Dec 2017 at 12:08 -0000, Simon Thompson (IT Research Support) wrote:
Have you looked at using filesets instead an using fileset quotas to achieve this?
This is what we do and the max number of filesets (currently) isn't an issue for us.
This is a possibility. We will be moving to a new infrastructure in a couple of months and I'll have our administrator and contractor discuss this possibility. Thanks, Stuart -- I've never been lost; I was once bewildered for three days, but never lost! -- Daniel Boone
On Mon, 04 Dec 2017 17:08:19 +0000, "Simon Thompson (IT Research Support)" said:
Have you looked at using filesets instead an using fileset quotas to achieve this?
Note that fileset quotas aren't able to represent "No Storage Allowed" either....
participants (5)
-
IBM Spectrum Scale -
Simon Thompson (IT Research Support) -
Stephen Ulmer -
Stuart Barkley -
valdis.kletnieks@vt.edu
