[gpfsug-discuss] How to clear explicitly set quotas

IBM Spectrum Scale scale at us.ibm.com
Tue May 22 09:01:21 BST 2018


Hi Kuei-Yu,

Should we update the document as the requested below ?

Thanks.

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-0000-0000-0000-000000000479.


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:	Bryan Banister <bbanister at jumptrading.com>
To:	gpfsug main discussion list <gpfsug-discuss at spectrumscale.org>
Date:	05/22/2018 04:52 AM
Subject:	Re: [gpfsug-discuss] How to clear explicitly set quotas
Sent by:	gpfsug-discuss-bounces at spectrumscale.org



Quick update.  Thanks to a colleague of mine, John Valdes, there is a way
to specify the file system + fileset + user with this form:

mmedquota -d -u <filesystem>:<fileset>:<user>

It’s just not documented in the man page or shown in the examples.  Docs
need to be updated!
-Bryan

From: gpfsug-discuss-bounces at spectrumscale.org [
mailto:gpfsug-discuss-bounces at spectrumscale.org] On Behalf Of Bryan
Banister
Sent: Tuesday, May 15, 2018 11:00 AM
To: gpfsug main discussion list <gpfsug-discuss at spectrumscale.org>
Subject: Re: [gpfsug-discuss] How to clear explicitly set quotas

Note: External Email

Unfortunately it doesn’t look like there is a way to target a specific
quota.  So for cluster with many file systems and/or many filesets in each
file system, clearing the quota entries affect all quotas in all file
systems and all filesets.  This means that you have to clear them all and
then reapply the explicit quotas that you need to keep.

# mmedquota -h
Usage: mmedquota -d {-u User ... | -g Group ... | -j Device:Fileset ... }

Maybe RFE time, or am I missing some other existing solution?
-Bryan

From: gpfsug-discuss-bounces at spectrumscale.org [
mailto:gpfsug-discuss-bounces at spectrumscale.org] On Behalf Of Bryan
Banister
Sent: Tuesday, May 15, 2018 10:36 AM
To: gpfsug main discussion list <gpfsug-discuss at spectrumscale.org>
Subject: Re: [gpfsug-discuss] How to clear explicitly set quotas

Note: External Email

That was it!  Thanks!

# mmrepquota -v fpi_test02:root --block-size G
*** Report for USR GRP quotas on fpi_test02
                         Block Limits                                    |
File Limits
Name       fileset    type             GB      quota      limit   in_doubt
grace |    files   quota    limit in_doubt    grace entryType
root       root       USR             243          0          0          0
none |      248       0        0        0     none default on
bbanister  root       USR              84          0          0          0
none |       21       0        0        0     none e
root       root       GRP             243          0          0          0
none |      248       0        0        0     none default on
# mmedquota -d -u bbanister
#
# mmrepquota -v fpi_test02:root --block-size G
*** Report for USR GRP quotas on fpi_test02
                         Block Limits                                    |
File Limits
Name       fileset    type             GB      quota      limit   in_doubt
grace |    files   quota    limit in_doubt    grace entryType
root       root       USR             243          0          0          0
none |      248       0        0        0     none default on
bbanister  root       USR              84          0          0          0
none |       21       0        0        0     none d_fset
root       root       GRP             243          0          0          0
none |      248       0        0        0     none default on

Note that " Try disabling and re-enabling default quotas with the -d option
for that fileset " didn't fix this issue.

Cheers,
-Bryan

-----Original Message-----
From: gpfsug-discuss-bounces at spectrumscale.org [
mailto:gpfsug-discuss-bounces at spectrumscale.org] On Behalf Of Peter Serocka
Sent: Monday, May 14, 2018 4:52 PM
To: gpfsug main discussion list <gpfsug-discuss at spectrumscale.org>
Subject: Re: [gpfsug-discuss] How to clear explicitly set quotas

Note: External Email
-------------------------------------------------

check out the -d option for the mmedquota command:

"Reestablish default quota limits for a specific user, group, or fileset
that had an explicit quota limit set by a previous invocation of the
mmedquota command.”

--Peter


> On 2018 May 14 Mon, at 22:29, Bryan Banister <bbanister at jumptrading.com>
wrote:
>
> Hi all,
>
> I got myself into a situation where I was trying to enable a default user
quota on a fileset and remove the existing quotas for all users in that
fileset.  But I used the `mmsetquota <fs>:<fileset> --user <user> --block
0:0` command and now it says that I have explicitly set this quota.
>
> Is there a way to remove a user quota entry so that it will adhere to the
default user quota that I now have defined?
>
> Can’t find anything in man pages, thanks!
> -Bryan
>
>
> Note: This email is for the confidential use of the named addressee(s)
only and may contain proprietary, confidential or privileged information.
If you are not the intended recipient, you are hereby notified that any
review, dissemination or copying of this email is strictly prohibited, and
to please notify the sender immediately and destroy this email and any
attachments. Email transmission cannot be guaranteed to be secure or
error-free. The Company, therefore, does not make any guarantees as to the
completeness or accuracy of this email or any attachments. This email is
for informational purposes only and does not constitute a recommendation,
offer, request or solicitation of any kind to buy, sell, subscribe, redeem
or perform any type of transaction of a financial product.
> _______________________________________________
> 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



Note: This email is for the confidential use of the named addressee(s) only
and may contain proprietary, confidential or privileged information. If you
are not the intended recipient, you are hereby notified that any review,
dissemination or copying of this email is strictly prohibited, and to
please notify the sender immediately and destroy this email and any
attachments. Email transmission cannot be guaranteed to be secure or
error-free. The Company, therefore, does not make any guarantees as to the
completeness or accuracy of this email or any attachments. This email is
for informational purposes only and does not constitute a recommendation,
offer, request or solicitation of any kind to buy, sell, subscribe, redeem
or perform any type of transaction of a financial product.



Note: This email is for the confidential use of the named addressee(s) only
and may contain proprietary, confidential or privileged information. If you
are not the intended recipient, you are hereby notified that any review,
dissemination or copying of this email is strictly prohibited, and to
please notify the sender immediately and destroy this email and any
attachments. Email transmission cannot be guaranteed to be secure or
error-free. The Company, therefore, does not make any guarantees as to the
completeness or accuracy of this email or any attachments. This email is
for informational purposes only and does not constitute a recommendation,
offer, request or solicitation of any kind to buy, sell, subscribe, redeem
or perform any type of transaction of a financial product.




Note: This email is for the confidential use of the named addressee(s) only
and may contain proprietary, confidential or privileged information. If you
are not the intended recipient, you are hereby notified that any review,
dissemination or copying of this email is strictly prohibited, and to
please notify the sender immediately and destroy this email and any
attachments. Email transmission cannot be guaranteed to be secure or
error-free. The Company, therefore, does not make any guarantees as to the
completeness or accuracy of this email or any attachments. This email is
for informational purposes only and does not constitute a recommendation,
offer, request or solicitation of any kind to buy, sell, subscribe, redeem
or perform any type of transaction of a financial product.
_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
http://gpfsug.org/mailman/listinfo/gpfsug-discuss







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20180522/72d1c9eb/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20180522/72d1c9eb/attachment-0002.gif>


More information about the gpfsug-discuss mailing list