Quota: revert user quota to FILESET default
Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” fails because I do have not set a filesystem default…. [root@xxx]# mmedquota -d -u user gsb USR default quota is off (SpectrumScale 5.0.3 Standard Ed. on RHEL7 x86) Is this a limitation of the current mmedquota implementation, or of something more profound?... I have several filesets within this filesystem, each with various quota structures. A filesystem-wide default quota didn’t seem useful so I never defined one; however I do have multiple fileset-level default quotas, and this is the level at which I’d like to be able to handle this matter… Have I hit a limitation of the implementation? Any workaround, if that’s the case? Many thanks, Razvan Popescu Columbia Business School
It sounds like you would like to have default perfileset quota enabled. Have you tried to enable the default quota on the filesets and then set the default quota limits for those filesets? For example, in a filesystem fs9 and fileset fset9. File system fs9 has default quota on and --perfileset-quota enabled. # mmlsfs fs9 -Q --perfileset-quota flag value description ------------------- ------------------------ ----------------------------------- -Q user;group;fileset Quotas accounting enabled user;fileset Quotas enforced user;group;fileset Default quotas enabled --perfileset-quota Yes Per-fileset quota enforcement # Enable default user quota for fileset fset9, if not enabled yet, e.g. "mmdefquotaon -u fs9:fset9" Then set the default quota for this fileset using mmdefedquota" # mmdefedquota -u fs9:fset9 .. *** Edit quota limits for USR DEFAULT entry for fileset fset9 NOTE: block limits will be rounded up to the next multiple of the block size. block units may be: K, M, G, T or P, inode units may be: K, M or G. fs9: blocks in use: 0K, limits (soft = 102400K, hard = 1048576K) inodes in use: 0, limits (soft = 10000, hard = 22222) ... Hope that this helps. ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 12:22 PM Subject: [EXTERNAL] [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” fails because I do have not set a filesystem default…. [root@xxx]# mmedquota -d -u user gsb USR default quota is off (SpectrumScale 5.0.3 Standard Ed. on RHEL7 x86) Is this a limitation of the current mmedquota implementation, or of something more profound?... I have several filesets within this filesystem, each with various quota structures. A filesystem-wide default quota didn’t seem useful so I never defined one; however I do have multiple fileset-level default quotas, and this is the level at which I’d like to be able to handle this matter… Have I hit a limitation of the implementation? Any workaround, if that’s the case? Many thanks, Razvan Popescu Columbia Business School _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
Thanks for your kind reply. My problem is different though. I have set a fileset default quota (doing all the steps you recommended) and all was Ok. During operations I have edited *individual* quotas, for example to increase certain user’s allocations. Now, I want to *revert* (change back) one of these users to the (fileset) default quota ! For example, I have used one user account to test the mmedquota command setting his limits to a certain value (just testing). I’d like now to make that user’s quota be the default fileset quota, and not just numerically, but have his quota record follow the changes in fileset default quota limits. To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here) mmedquota’s “-d” option is supposed to reinstate the defaults, but it doesn’t seem to work for fileset based quotas … !?! Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:06 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default It sounds like you would like to have default perfileset quota enabled. Have you tried to enable the default quota on the filesets and then set the default quota limits for those filesets? For example, in a filesystem fs9 and fileset fset9. File system fs9 has default quota on and --perfileset-quota enabled. # mmlsfs fs9 -Q --perfileset-quota flag value description ------------------- ------------------------ ----------------------------------- -Q user;group;fileset Quotas accounting enabled user;fileset Quotas enforced user;group;fileset Default quotas enabled --perfileset-quota Yes Per-fileset quota enforcement # Enable default user quota for fileset fset9, if not enabled yet, e.g. "mmdefquotaon -u fs9:fset9" Then set the default quota for this fileset using mmdefedquota" # mmdefedquota -u fs9:fset9 .. *** Edit quota limits for USR DEFAULT entry for fileset fset9 NOTE: block limits will be rounded up to the next multiple of the block size. block units may be: K, M, G, T or P, inode units may be: K, M or G. fs9: blocks in use: 0K, limits (soft = 102400K, hard = 1048576K) inodes in use: 0, limits (soft = 10000, hard = 22222) ... Hope that this helps. ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset]"Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 12:22 PM Subject: [EXTERNAL] [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” fails because I do have not set a filesystem default…. [root@xxx]# mmedquota -d -u user gsb USR default quota is off (SpectrumScale 5.0.3 Standard Ed. on RHEL7 x86) Is this a limitation of the current mmedquota implementation, or of something more profound?... I have several filesets within this filesystem, each with various quota structures. A filesystem-wide default quota didn’t seem useful so I never defined one; however I do have multiple fileset-level default quotas, and this is the level at which I’d like to be able to handle this matter… Have I hit a limitation of the implementation? Any workaround, if that’s the case? Many thanks, Razvan Popescu Columbia Business School _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here)
Currently there is no function to revert an explicit quota entry (e) to initial (i) entry. Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 02:18 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org Thanks for your kind reply. My problem is different though. I have set a fileset default quota (doing all the steps you recommended) and all was Ok. During operations I have edited *individual* quotas, for example to increase certain user’s allocations. Now, I want to *revert* (change back) one of these users to the (fileset) default quota ! For example, I have used one user account to test the mmedquota command setting his limits to a certain value (just testing). I’d like now to make that user’s quota be the default fileset quota, and not just numerically, but have his quota record follow the changes in fileset default quota limits. To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here) mmedquota’s “-d” option is supposed to reinstate the defaults, but it doesn’t seem to work for fileset based quotas … !?! Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:06 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default It sounds like you would like to have default perfileset quota enabled. Have you tried to enable the default quota on the filesets and then set the default quota limits for those filesets? For example, in a filesystem fs9 and fileset fset9. File system fs9 has default quota on and --perfileset-quota enabled. # mmlsfs fs9 -Q --perfileset-quota flag value description ------------------- ------------------------ ----------------------------------- -Q user;group;fileset Quotas accounting enabled user;fileset Quotas enforced user;group;fileset Default quotas enabled --perfileset-quota Yes Per-fileset quota enforcement # Enable default user quota for fileset fset9, if not enabled yet, e.g. "mmdefquotaon -u fs9:fset9" Then set the default quota for this fileset using mmdefedquota" # mmdefedquota -u fs9:fset9 .. *** Edit quota limits for USR DEFAULT entry for fileset fset9 NOTE: block limits will be rounded up to the next multiple of the block size. block units may be: K, M, G, T or P, inode units may be: K, M or G. fs9: blocks in use: 0K, limits (soft = 102400K, hard = 1048576K) inodes in use: 0, limits (soft = 10000, hard = 22222) ... Hope that this helps. ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com Inactive hide details for "Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset"Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 12:22 PM Subject: [EXTERNAL] [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” fails because I do have not set a filesystem default…. [root@xxx]# mmedquota -d -u user gsb USR default quota is off (SpectrumScale 5.0.3 Standard Ed. on RHEL7 x86) Is this a limitation of the current mmedquota implementation, or of something more profound?... I have several filesets within this filesystem, each with various quota structures. A filesystem-wide default quota didn’t seem useful so I never defined one; however I do have multiple fileset-level default quotas, and this is the level at which I’d like to be able to handle this matter… Have I hit a limitation of the implementation? Any workaround, if that’s the case? Many thanks, Razvan Popescu Columbia Business School _______________________________________________ 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 https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
I see. May I ask one follow-up question, please: what is “mmedquota -d -u <username>” supposed to do in this case? Really appreciate your assistance. Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:25 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default
To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here)
Currently there is no function to revert an explicit quota entry (e) to initial (i) entry. Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---12/19/2019 02:18:54 PM---Thanks for your kind reply. My problem is different tho]"Popescu, Razvan" ---12/19/2019 02:18:54 PM---Thanks for your kind reply. My problem is different though. From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 02:18 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ Thanks for your kind reply. My problem is different though. I have set a fileset default quota (doing all the steps you recommended) and all was Ok. During operations I have edited *individual* quotas, for example to increase certain user’s allocations. Now, I want to *revert* (change back) one of these users to the (fileset) default quota ! For example, I have used one user account to test the mmedquota command setting his limits to a certain value (just testing). I’d like now to make that user’s quota be the default fileset quota, and not just numerically, but have his quota record follow the changes in fileset default quota limits. To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here) mmedquota’s “-d” option is supposed to reinstate the defaults, but it doesn’t seem to work for fileset based quotas … !?! Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:06 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default It sounds like you would like to have default perfileset quota enabled. Have you tried to enable the default quota on the filesets and then set the default quota limits for those filesets? For example, in a filesystem fs9 and fileset fset9. File system fs9 has default quota on and --perfileset-quota enabled. # mmlsfs fs9 -Q --perfileset-quota flag value description ------------------- ------------------------ ----------------------------------- -Q user;group;fileset Quotas accounting enabled user;fileset Quotas enforced user;group;fileset Default quotas enabled --perfileset-quota Yes Per-fileset quota enforcement # Enable default user quota for fileset fset9, if not enabled yet, e.g. "mmdefquotaon -u fs9:fset9" Then set the default quota for this fileset using mmdefedquota" # mmdefedquota -u fs9:fset9 .. *** Edit quota limits for USR DEFAULT entry for fileset fset9 NOTE: block limits will be rounded up to the next multiple of the block size. block units may be: K, M, G, T or P, inode units may be: K, M or G. fs9: blocks in use: 0K, limits (soft = 102400K, hard = 1048576K) inodes in use: 0, limits (soft = 10000, hard = 22222) ... Hope that this helps. ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset]"Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 12:22 PM Subject: [EXTERNAL] [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” fails because I do have not set a filesystem default…. [root@xxx]# mmedquota -d -u user gsb USR default quota is off (SpectrumScale 5.0.3 Standard Ed. on RHEL7 x86) Is this a limitation of the current mmedquota implementation, or of something more profound?... I have several filesets within this filesystem, each with various quota structures. A filesystem-wide default quota didn’t seem useful so I never defined one; however I do have multiple fileset-level default quotas, and this is the level at which I’d like to be able to handle this matter… Have I hit a limitation of the implementation? Any workaround, if that’s the case? Many thanks, Razvan Popescu Columbia Business School _______________________________________________ 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
Razvan, mmedquota -d -u fs:fset: -d 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. This option will assign the default quota to the user. The quota entry type will change from "e" to "d_fset". You may need to play a little bit with your system to get the result as you can have default quota per file system set and default quota per fileset enabled. An exemple to illustrate User pfs004 in filesystem fs9 and fileset fset7 has explicit quota set: # mmrepquota -u -v fs9 | grep pfs004 pfs004 fset7 USR 1088 102400 1048576 0 none | 13 10000 33333 0 none e <=== explicit # mmlsquota -d fs9:fset7 Default Block Limits(KB) | Default File Limits Filesystem Fileset type quota limit | quota limit entryType fs9 fset7 USR 102400 1048576 | 10000 0 default on <=== default quota limits for fs9:fset7, the default fs9 fset7 GRP 0 0 | 0 0 i # mmlsquota -u pfs004 fs9:fset7 Block Limits | File Limits Filesystem Fileset type KB quota limit in_doubt grace | files quota limit in_doubt grace Remarks fs9 fset7 USR 1088 102400 1048576 0 none | 13 10000 33333 0 none <=== explicit # mmedquota -d -u pfs004 fs9:fset7 <=== run mmedquota -d -u to get default limits # mmlsquota -u pfs004 fs9:fset7 Block Limits | File Limits Filesystem Fileset type KB quota limit in_doubt grace | files quota limit in_doubt grace Remarks fs9 fset7 USR 1088 102400 1048576 0 none | 13 10000 0 0 none <=== takes the default value # mmrepquota -u -v fs9:fset7 | grep pfs004 pfs004 fset7 USR 1088 102400 1048576 0 none | 13 10000 0 0 none d_fset <=== now user pfs004 in fset7 takes the default limits # ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 02:28 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org I see. May I ask one follow-up question, please: what is “mmedquota -d -u <username>” supposed to do in this case? Really appreciate your assistance. Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:25 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default
To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here)
Currently there is no function to revert an explicit quota entry (e) to initial (i) entry. Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com Inactive hide details for "Popescu, Razvan" ---12/19/2019 02:18:54 PM---Thanks for your kind reply. My problem is different tho"Popescu, Razvan" ---12/19/2019 02:18:54 PM---Thanks for your kind reply. My problem is different though. From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 02:18 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org Thanks for your kind reply. My problem is different though. I have set a fileset default quota (doing all the steps you recommended) and all was Ok. During operations I have edited *individual* quotas, for example to increase certain user’s allocations. Now, I want to *revert* (change back) one of these users to the (fileset) default quota ! For example, I have used one user account to test the mmedquota command setting his limits to a certain value (just testing). I’d like now to make that user’s quota be the default fileset quota, and not just numerically, but have his quota record follow the changes in fileset default quota limits. To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here) mmedquota’s “-d” option is supposed to reinstate the defaults, but it doesn’t seem to work for fileset based quotas … !?! Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:06 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default It sounds like you would like to have default perfileset quota enabled. Have you tried to enable the default quota on the filesets and then set the default quota limits for those filesets? For example, in a filesystem fs9 and fileset fset9. File system fs9 has default quota on and --perfileset-quota enabled. # mmlsfs fs9 -Q --perfileset-quota flag value description ------------------- ------------------------ ----------------------------------- -Q user;group;fileset Quotas accounting enabled user;fileset Quotas enforced user;group;fileset Default quotas enabled --perfileset-quota Yes Per-fileset quota enforcement # Enable default user quota for fileset fset9, if not enabled yet, e.g. "mmdefquotaon -u fs9:fset9" Then set the default quota for this fileset using mmdefedquota" # mmdefedquota -u fs9:fset9 .. *** Edit quota limits for USR DEFAULT entry for fileset fset9 NOTE: block limits will be rounded up to the next multiple of the block size. block units may be: K, M, G, T or P, inode units may be: K, M or G. fs9: blocks in use: 0K, limits (soft = 102400K, hard = 1048576K) inodes in use: 0, limits (soft = 10000, hard = 22222) ... Hope that this helps. ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com Inactive hide details for "Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset"Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 12:22 PM Subject: [EXTERNAL] [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” fails because I do have not set a filesystem default…. [root@xxx]# mmedquota -d -u user gsb USR default quota is off (SpectrumScale 5.0.3 Standard Ed. on RHEL7 x86) Is this a limitation of the current mmedquota implementation, or of something more profound?... I have several filesets within this filesystem, each with various quota structures. A filesystem-wide default quota didn’t seem useful so I never defined one; however I do have multiple fileset-level default quotas, and this is the level at which I’d like to be able to handle this matter… Have I hit a limitation of the implementation? Any workaround, if that’s the case? Many thanks, Razvan Popescu Columbia Business School _______________________________________________ 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 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
Many thanks – that’s exactly what I’m looking for. Unfortunately I have an error when attempting to run command : First the background: [root@storinator ~]# mmrepquota -u -v --block-size auto gsb:home |grep rp2927 rp2927 home USR 8.934G 10G 20G 0 none | 86355 1048576 3145728 0 none e [root@storinator ~]# mmlsquota -d --block-size auto gsb:home Default Block Limits | Default File Limits Filesystem Fileset type quota limit | quota limit entryType gsb home USR 20G 30G | 1048576 3145728 default on gsb home GRP 0 0 | 0 0 i And now the most interesting part: [root@storinator ~]# mmedquota -d -u rp2927 gsb:home gsb USR default quota is off Attention: In file system gsb (fileset home), block soft limit (10485760) for user rp2927 is too small. Suggest setting it higher than 26214400. Attention: In file system gsb (fileset home), block hard limit (20971520) for user rp2927 is too small. Suggest setting it higher than 26214400. gsb:home is not valid user A little bit more background, maybe of help… [root@storinator ~]# mmlsquota -d gsb Default Block Limits(KB) | Default File Limits Filesystem Fileset type quota limit | quota limit entryType gsb root USR 0 0 | 0 0 i gsb root GRP 0 0 | 0 0 i gsb work USR 0 0 | 0 0 i gsb work GRP 0 0 | 0 0 i gsb misc USR 0 0 | 0 0 i gsb misc GRP 0 0 | 0 0 i gsb home USR 20971520 31457280 | 1048576 3145728 default on gsb home GRP 0 0 | 0 0 i gsb shared USR 0 0 | 0 0 i gsb shared GRP 20971520 31457280 | 1048576 3145728 default on [root@storinator ~]# mmlsfs gsb flag value description ------------------- ------------------------ ----------------------------------- -f 8192 Minimum fragment (subblock) size in bytes -i 4096 Inode size in bytes -I 32768 Indirect block size in bytes -m 2 Default number of metadata replicas -M 3 Maximum number of metadata replicas -r 1 Default number of data replicas -R 2 Maximum number of data replicas -j scatter Block allocation type -D nfs4 File locking semantics in effect -k nfs4 ACL semantics in effect -n 100 Estimated number of nodes that will mount file system -B 1048576 Block size -Q user;group;fileset Quotas accounting enabled user;group;fileset Quotas enforced none Default quotas enabled --perfileset-quota Yes Per-fileset quota enforcement --filesetdf Yes Fileset df enabled? -V 21.00 (5.0.3.0) File system version --create-time Fri Aug 30 16:25:29 2019 File system creation time -z No Is DMAPI enabled? -L 33554432 Logfile size -E Yes Exact mtime mount option -S relatime Suppress atime mount option -K whenpossible Strict replica allocation option --fastea Yes Fast external attributes enabled? --encryption No Encryption enabled? --inode-limit 105906176 Maximum number of inodes in all inode spaces --log-replicas 0 Number of log replicas --is4KAligned Yes is4KAligned? --rapid-repair Yes rapidRepair enabled? --write-cache-threshold 0 HAWC Threshold (max 65536) --subblocks-per-full-block 128 Number of subblocks per full block -P system;Main01 Disk storage pools in file system --file-audit-log No File Audit Logging enabled? --maintenance-mode No Maintenance Mode enabled? -d meta_01;meta_02;meta_03;data_1A;data_1B;data_2A;data_2B;data_3A;data_3B Disks in file system -A yes Automatic mount option -o none Additional mount options -T /gpfs/cesRoot/gsb Default mount point --mount-priority 2 Mount priority Any ideas? Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 3:56 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Razvan, mmedquota -d -u fs:fset: -d 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. This option will assign the default quota to the user. The quota entry type will change from "e" to "d_fset". You may need to play a little bit with your system to get the result as you can have default quota per file system set and default quota per fileset enabled. An exemple to illustrate User pfs004 in filesystem fs9 and fileset fset7 has explicit quota set: # mmrepquota -u -v fs9 | grep pfs004 pfs004 fset7 USR 1088 102400 1048576 0 none | 13 10000 33333 0 none e <=== explicit # mmlsquota -d fs9:fset7 Default Block Limits(KB) | Default File Limits Filesystem Fileset type quota limit | quota limit entryType fs9 fset7 USR 102400 1048576 | 10000 0 default on <=== default quota limits for fs9:fset7, the default fs9 fset7 GRP 0 0 | 0 0 i # mmlsquota -u pfs004 fs9:fset7 Block Limits | File Limits Filesystem Fileset type KB quota limit in_doubt grace | files quota limit in_doubt grace Remarks fs9 fset7 USR 1088 102400 1048576 0 none | 13 10000 33333 0 none <=== explicit # mmedquota -d -u pfs004 fs9:fset7 <=== run mmedquota -d -u to get default limits # mmlsquota -u pfs004 fs9:fset7 Block Limits | File Limits Filesystem Fileset type KB quota limit in_doubt grace | files quota limit in_doubt grace Remarks fs9 fset7 USR 1088 102400 1048576 0 none | 13 10000 0 0 none <=== takes the default value # mmrepquota -u -v fs9:fset7 | grep pfs004 pfs004 fset7 USR 1088 102400 1048576 0 none | 13 10000 0 0 none d_fset <=== now user pfs004 in fset7 takes the default limits # ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---12/19/2019 02:28:51 PM---I see. May I ask one follow-up question, please: what]"Popescu, Razvan" ---12/19/2019 02:28:51 PM---I see. May I ask one follow-up question, please: what is “mmedquota -d -u <username>” supposed From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 02:28 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ I see. May I ask one follow-up question, please: what is “mmedquota -d -u <username>” supposed to do in this case? Really appreciate your assistance. Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:25 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default
To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here)
Currently there is no function to revert an explicit quota entry (e) to initial (i) entry. Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---12/19/2019 02:18:54 PM---Thanks for your kind reply. My problem is different tho]"Popescu, Razvan" ---12/19/2019 02:18:54 PM---Thanks for your kind reply. My problem is different though. From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 02:18 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ Thanks for your kind reply. My problem is different though. I have set a fileset default quota (doing all the steps you recommended) and all was Ok. During operations I have edited *individual* quotas, for example to increase certain user’s allocations. Now, I want to *revert* (change back) one of these users to the (fileset) default quota ! For example, I have used one user account to test the mmedquota command setting his limits to a certain value (just testing). I’d like now to make that user’s quota be the default fileset quota, and not just numerically, but have his quota record follow the changes in fileset default quota limits. To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here) mmedquota’s “-d” option is supposed to reinstate the defaults, but it doesn’t seem to work for fileset based quotas … !?! Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:06 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default It sounds like you would like to have default perfileset quota enabled. Have you tried to enable the default quota on the filesets and then set the default quota limits for those filesets? For example, in a filesystem fs9 and fileset fset9. File system fs9 has default quota on and --perfileset-quota enabled. # mmlsfs fs9 -Q --perfileset-quota flag value description ------------------- ------------------------ ----------------------------------- -Q user;group;fileset Quotas accounting enabled user;fileset Quotas enforced user;group;fileset Default quotas enabled --perfileset-quota Yes Per-fileset quota enforcement # Enable default user quota for fileset fset9, if not enabled yet, e.g. "mmdefquotaon -u fs9:fset9" Then set the default quota for this fileset using mmdefedquota" # mmdefedquota -u fs9:fset9 .. *** Edit quota limits for USR DEFAULT entry for fileset fset9 NOTE: block limits will be rounded up to the next multiple of the block size. block units may be: K, M, G, T or P, inode units may be: K, M or G. fs9: blocks in use: 0K, limits (soft = 102400K, hard = 1048576K) inodes in use: 0, limits (soft = 10000, hard = 22222) ... Hope that this helps. ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset]"Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 12:22 PM Subject: [EXTERNAL] [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” fails because I do have not set a filesystem default…. [root@xxx]# mmedquota -d -u user gsb USR default quota is off (SpectrumScale 5.0.3 Standard Ed. on RHEL7 x86) Is this a limitation of the current mmedquota implementation, or of something more profound?... I have several filesets within this filesystem, each with various quota structures. A filesystem-wide default quota didn’t seem useful so I never defined one; however I do have multiple fileset-level default quotas, and this is the level at which I’d like to be able to handle this matter… Have I hit a limitation of the implementation? Any workaround, if that’s the case? Many thanks, Razvan Popescu Columbia Business School _______________________________________________ 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 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Hi Kuei-Yu (et al.) Happy New Year! I’d like to reiterate my follow-up question to your comments – in particular to the line copied below, which mentions a behavior that I’m seeking for this command, but cannot reproduce (in vers, 5.0.3@Linux), namely (with my highlights): # mmedquota -d -u pfs004 fs9:fset7 <=== run mmedquota -d -u to get default limits The reduction of scope to a named filesystem/fileset is what I’m seeking, *but* at least the 5.0.3 version seems to reject that parameter with an error, and apply the user’s default restoration to *all filesystems and filesets* Are you using a different version? Or a different implementations? I’m running SS 5.0.3 on Linux x64. I apologize for having to press this point, but this matter is of a certain importance to us and it appears that the public documentation is mum in this regard. Furthermore, the IBM support, at the first pass, was quite confused and unfocused. (I’m trying with a new case now, but my hopes are low). You seem to be an IBM insider, so …. I count on your help 😊. Sorry, for the insistence. 😊 Best, Razvan Popescu Columbia Univ. -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 3:56 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Razvan, mmedquota -d -u fs:fset: -d 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. This option will assign the default quota to the user. The quota entry type will change from "e" to "d_fset". You may need to play a little bit with your system to get the result as you can have default quota per file system set and default quota per fileset enabled. An exemple to illustrate User pfs004 in filesystem fs9 and fileset fset7 has explicit quota set: # mmrepquota -u -v fs9 | grep pfs004 pfs004 fset7 USR 1088 102400 1048576 0 none | 13 10000 33333 0 none e <=== explicit # mmlsquota -d fs9:fset7 Default Block Limits(KB) | Default File Limits Filesystem Fileset type quota limit | quota limit entryType fs9 fset7 USR 102400 1048576 | 10000 0 default on <=== default quota limits for fs9:fset7, the default fs9 fset7 GRP 0 0 | 0 0 i # mmlsquota -u pfs004 fs9:fset7 Block Limits | File Limits Filesystem Fileset type KB quota limit in_doubt grace | files quota limit in_doubt grace Remarks fs9 fset7 USR 1088 102400 1048576 0 none | 13 10000 33333 0 none <=== explicit # mmedquota -d -u pfs004 fs9:fset7 <=== run mmedquota -d -u to get default limits # mmlsquota -u pfs004 fs9:fset7 Block Limits | File Limits Filesystem Fileset type KB quota limit in_doubt grace | files quota limit in_doubt grace Remarks fs9 fset7 USR 1088 102400 1048576 0 none | 13 10000 0 0 none <=== takes the default value # mmrepquota -u -v fs9:fset7 | grep pfs004 pfs004 fset7 USR 1088 102400 1048576 0 none | 13 10000 0 0 none d_fset <=== now user pfs004 in fset7 takes the default limits # ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---12/19/2019 02:28:51 PM---I see. May I ask one follow-up question, please: what]"Popescu, Razvan" ---12/19/2019 02:28:51 PM---I see. May I ask one follow-up question, please: what is “mmedquota -d -u <username>” supposed From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 02:28 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ I see. May I ask one follow-up question, please: what is “mmedquota -d -u <username>” supposed to do in this case? Really appreciate your assistance. Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:25 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default
To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here)
Currently there is no function to revert an explicit quota entry (e) to initial (i) entry. Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---12/19/2019 02:18:54 PM---Thanks for your kind reply. My problem is different tho]"Popescu, Razvan" ---12/19/2019 02:18:54 PM---Thanks for your kind reply. My problem is different though. From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 02:18 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ Thanks for your kind reply. My problem is different though. I have set a fileset default quota (doing all the steps you recommended) and all was Ok. During operations I have edited *individual* quotas, for example to increase certain user’s allocations. Now, I want to *revert* (change back) one of these users to the (fileset) default quota ! For example, I have used one user account to test the mmedquota command setting his limits to a certain value (just testing). I’d like now to make that user’s quota be the default fileset quota, and not just numerically, but have his quota record follow the changes in fileset default quota limits. To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here) mmedquota’s “-d” option is supposed to reinstate the defaults, but it doesn’t seem to work for fileset based quotas … !?! Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:06 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default It sounds like you would like to have default perfileset quota enabled. Have you tried to enable the default quota on the filesets and then set the default quota limits for those filesets? For example, in a filesystem fs9 and fileset fset9. File system fs9 has default quota on and --perfileset-quota enabled. # mmlsfs fs9 -Q --perfileset-quota flag value description ------------------- ------------------------ ----------------------------------- -Q user;group;fileset Quotas accounting enabled user;fileset Quotas enforced user;group;fileset Default quotas enabled --perfileset-quota Yes Per-fileset quota enforcement # Enable default user quota for fileset fset9, if not enabled yet, e.g. "mmdefquotaon -u fs9:fset9" Then set the default quota for this fileset using mmdefedquota" # mmdefedquota -u fs9:fset9 .. *** Edit quota limits for USR DEFAULT entry for fileset fset9 NOTE: block limits will be rounded up to the next multiple of the block size. block units may be: K, M, G, T or P, inode units may be: K, M or G. fs9: blocks in use: 0K, limits (soft = 102400K, hard = 1048576K) inodes in use: 0, limits (soft = 10000, hard = 22222) ... Hope that this helps. ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset]"Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 12:22 PM Subject: [EXTERNAL] [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” fails because I do have not set a filesystem default…. [root@xxx]# mmedquota -d -u user gsb USR default quota is off (SpectrumScale 5.0.3 Standard Ed. on RHEL7 x86) Is this a limitation of the current mmedquota implementation, or of something more profound?... I have several filesets within this filesystem, each with various quota structures. A filesystem-wide default quota didn’t seem useful so I never defined one; however I do have multiple fileset-level default quotas, and this is the level at which I’d like to be able to handle this matter… Have I hit a limitation of the implementation? Any workaround, if that’s the case? Many thanks, Razvan Popescu Columbia Business School _______________________________________________ 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 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Razvan, Perhaps you should open a ticket (so that specific configuration data could be collected and analyzed) on this topic. We would look at your system configuration, the code level to figure out whether what you are seeing is a problem or it is just an expected behavior or a limitation; there are some limitations, specifically moving default limits between file system and fileset default scope, that may not work for your scenario. Thanks, Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/07/2020 11:32 AM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi Kuei-Yu (et al.) Happy New Year! I’d like to reiterate my follow-up question to your comments – in particular to the line copied below, which mentions a behavior that I’m seeking for this command, but cannot reproduce (in vers, 5.0.3@Linux), namely (with my highlights): # mmedquota -d -u pfs004 fs9:fset7 <=== run mmedquota -d -u to get default limits The reduction of scope to a named filesystem/fileset is what I’m seeking, * but* at least the 5.0.3 version seems to reject that parameter with an error, and apply the user’s default restoration to *all filesystems and filesets* Are you using a different version? Or a different implementations? I’m running SS 5.0.3 on Linux x64. I apologize for having to press this point, but this matter is of a certain importance to us and it appears that the public documentation is mum in this regard. Furthermore, the IBM support, at the first pass, was quite confused and unfocused. (I’m trying with a new case now, but my hopes are low). You seem to be an IBM insider, so …. I count on your help ?. Sorry, for the insistence. ? Best, Razvan Popescu Columbia Univ. -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 3:56 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Razvan, mmedquota -d -u fs:fset: -d 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. This option will assign the default quota to the user. The quota entry type will change from "e" to "d_fset". You may need to play a little bit with your system to get the result as you can have default quota per file system set and default quota per fileset enabled. An exemple to illustrate User pfs004 in filesystem fs9 and fileset fset7 has explicit quota set: # mmrepquota -u -v fs9 | grep pfs004 pfs004 fset7 USR 1088 102400 1048576 0 none | 13 10000 33333 0 none e <=== explicit # mmlsquota -d fs9:fset7 Default Block Limits(KB) | Default File Limits Filesystem Fileset type quota limit | quota limit entryType fs9 fset7 USR 102400 1048576 | 10000 0 default on <=== default quota limits for fs9:fset7, the default fs9 fset7 GRP 0 0 | 0 0 i # mmlsquota -u pfs004 fs9:fset7 Block Limits | File Limits Filesystem Fileset type KB quota limit in_doubt grace | files quota limit in_doubt grace Remarks fs9 fset7 USR 1088 102400 1048576 0 none | 13 10000 33333 0 none <=== explicit # mmedquota -d -u pfs004 fs9:fset7 <=== run mmedquota -d -u to get default limits # mmlsquota -u pfs004 fs9:fset7 Block Limits | File Limits Filesystem Fileset type KB quota limit in_doubt grace | files quota limit in_doubt grace Remarks fs9 fset7 USR 1088 102400 1048576 0 none | 13 10000 0 0 none <=== takes the default value # mmrepquota -u -v fs9:fset7 | grep pfs004 pfs004 fset7 USR 1088 102400 1048576 0 none | 13 10000 0 0 none d_fset <=== now user pfs004 in fset7 takes the default limits # ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com Inactive hide details for "Popescu, Razvan" ---12/19/2019 02:28:51 PM---I see. May I ask one follow-up question, please: what"Popescu, Razvan" ---12/19/2019 02:28:51 PM---I see. May I ask one follow-up question, please: what is “mmedquota -d -u <username>” supposed From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 02:28 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org I see. May I ask one follow-up question, please: what is “mmedquota -d -u <username>” supposed to do in this case? Really appreciate your assistance. Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:25 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default
To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here)
Currently there is no function to revert an explicit quota entry (e) to initial (i) entry. Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com Inactive hide details for "Popescu, Razvan" ---12/19/2019 02:18:54 PM---Thanks for your kind reply. My problem is different tho"Popescu, Razvan" ---12/19/2019 02:18:54 PM---Thanks for your kind reply. My problem is different though. From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 02:18 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org Thanks for your kind reply. My problem is different though. I have set a fileset default quota (doing all the steps you recommended) and all was Ok. During operations I have edited *individual* quotas, for example to increase certain user’s allocations. Now, I want to *revert* (change back) one of these users to the (fileset) default quota ! For example, I have used one user account to test the mmedquota command setting his limits to a certain value (just testing). I’d like now to make that user’s quota be the default fileset quota, and not just numerically, but have his quota record follow the changes in fileset default quota limits. To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here) mmedquota’s “-d” option is supposed to reinstate the defaults, but it doesn’t seem to work for fileset based quotas … !?! Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:06 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default It sounds like you would like to have default perfileset quota enabled. Have you tried to enable the default quota on the filesets and then set the default quota limits for those filesets? For example, in a filesystem fs9 and fileset fset9. File system fs9 has default quota on and --perfileset-quota enabled. # mmlsfs fs9 -Q --perfileset-quota flag value description ------------------- ------------------------ ----------------------------------- -Q user;group;fileset Quotas accounting enabled user;fileset Quotas enforced user;group;fileset Default quotas enabled --perfileset-quota Yes Per-fileset quota enforcement # Enable default user quota for fileset fset9, if not enabled yet, e.g. "mmdefquotaon -u fs9:fset9" Then set the default quota for this fileset using mmdefedquota" # mmdefedquota -u fs9:fset9 .. *** Edit quota limits for USR DEFAULT entry for fileset fset9 NOTE: block limits will be rounded up to the next multiple of the block size. block units may be: K, M, G, T or P, inode units may be: K, M or G. fs9: blocks in use: 0K, limits (soft = 102400K, hard = 1048576K) inodes in use: 0, limits (soft = 10000, hard = 22222) ... Hope that this helps. ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com Inactive hide details for "Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset"Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 12:22 PM Subject: [EXTERNAL] [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” fails because I do have not set a filesystem default…. [root@xxx]# mmedquota -d -u user gsb USR default quota is off (SpectrumScale 5.0.3 Standard Ed. on RHEL7 x86) Is this a limitation of the current mmedquota implementation, or of something more profound?... I have several filesets within this filesystem, each with various quota structures. A filesystem-wide default quota didn’t seem useful so I never defined one; however I do have multiple fileset-level default quotas, and this is the level at which I’d like to be able to handle this matter… Have I hit a limitation of the implementation? Any workaround, if that’s the case? Many thanks, Razvan Popescu Columbia Business School _______________________________________________ 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 _______________________________________________ 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 https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
Kuei, Thanks for replying. I did open a ticket before the holidays, but it didn’t yield a solution. I just opened another one… My very specific question to you is: “Where have you seen this particular syntax work?” The 5.0.3 & 5.0.4 mmedquota man pages do not mention the availability of a filesystem:fileset parameter (as in your example: “fs9:fset7”) and my testing rejected such a parameter. What made you think this would work? 😊 # mmedquota -d -u pfs004 fs9:fset7 ^^^^^^^^^^^^^ Many thanks! Razvan -- From: Kuei-Yu Wang-Knop <kywang@us.ibm.com> Date: Tuesday, January 7, 2020 at 12:11 PM To: "Popescu, Razvan" <rp2927@gsb.columbia.edu>, gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: RE: [gpfsug-discuss] Quota: revert user quota to FILESET default Razvan, Perhaps you should open a ticket (so that specific configuration data could be collected and analyzed) on this topic. We would look at your system configuration, the code level to figure out whether what you are seeing is a problem or it is just an expected behavior or a limitation; there are some limitations, specifically moving default limits between file system and fileset default scope, that may not work for your scenario. Thanks, Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---01/07/2020 11:32:42 AM---Hi Kuei-Yu (et al.) Happy New Year!]"Popescu, Razvan" ---01/07/2020 11:32:42 AM---Hi Kuei-Yu (et al.) Happy New Year! From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/07/2020 11:32 AM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ Hi Kuei-Yu (et al.) Happy New Year! I’d like to reiterate my follow-up question to your comments – in particular to the line copied below, which mentions a behavior that I’m seeking for this command, but cannot reproduce (in vers, 5.0.3@Linux), namely (with my highlights): # mmedquota -d -u pfs004 fs9:fset7 <=== run mmedquota -d -u to get default limits The reduction of scope to a named filesystem/fileset is what I’m seeking, *but* at least the 5.0.3 version seems to reject that parameter with an error, and apply the user’s default restoration to *all filesystems and filesets* Are you using a different version? Or a different implementations? I’m running SS 5.0.3 on Linux x64. I apologize for having to press this point, but this matter is of a certain importance to us and it appears that the public documentation is mum in this regard. Furthermore, the IBM support, at the first pass, was quite confused and unfocused. (I’m trying with a new case now, but my hopes are low). You seem to be an IBM insider, so …. I count on your help ?. Sorry, for the insistence. ? Best, Razvan Popescu Columbia Univ. -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 3:56 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Razvan, mmedquota -d -u fs:fset: -d 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. This option will assign the default quota to the user. The quota entry type will change from "e" to "d_fset". You may need to play a little bit with your system to get the result as you can have default quota per file system set and default quota per fileset enabled. An exemple to illustrate User pfs004 in filesystem fs9 and fileset fset7 has explicit quota set: # mmrepquota -u -v fs9 | grep pfs004 pfs004 fset7 USR 1088 102400 1048576 0 none | 13 10000 33333 0 none e <=== explicit # mmlsquota -d fs9:fset7 Default Block Limits(KB) | Default File Limits Filesystem Fileset type quota limit | quota limit entryType fs9 fset7 USR 102400 1048576 | 10000 0 default on <=== default quota limits for fs9:fset7, the default fs9 fset7 GRP 0 0 | 0 0 i # mmlsquota -u pfs004 fs9:fset7 Block Limits | File Limits Filesystem Fileset type KB quota limit in_doubt grace | files quota limit in_doubt grace Remarks fs9 fset7 USR 1088 102400 1048576 0 none | 13 10000 33333 0 none <=== explicit # mmedquota -d -u pfs004 fs9:fset7 <=== run mmedquota -d -u to get default limits # mmlsquota -u pfs004 fs9:fset7 Block Limits | File Limits Filesystem Fileset type KB quota limit in_doubt grace | files quota limit in_doubt grace Remarks fs9 fset7 USR 1088 102400 1048576 0 none | 13 10000 0 0 none <=== takes the default value # mmrepquota -u -v fs9:fset7 | grep pfs004 pfs004 fset7 USR 1088 102400 1048576 0 none | 13 10000 0 0 none d_fset <=== now user pfs004 in fset7 takes the default limits # ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---12/19/2019 02:28:51 PM---I see. May I ask one follow-up question, please: what]"Popescu, Razvan" ---12/19/2019 02:28:51 PM---I see. May I ask one follow-up question, please: what is “mmedquota -d -u <username>” supposed From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 02:28 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ I see. May I ask one follow-up question, please: what is “mmedquota -d -u <username>” supposed to do in this case? Really appreciate your assistance. Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:25 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default
To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here)
Currently there is no function to revert an explicit quota entry (e) to initial (i) entry. Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---12/19/2019 02:18:54 PM---Thanks for your kind reply. My problem is different tho]"Popescu, Razvan" ---12/19/2019 02:18:54 PM---Thanks for your kind reply. My problem is different though. From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 02:18 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ Thanks for your kind reply. My problem is different though. I have set a fileset default quota (doing all the steps you recommended) and all was Ok. During operations I have edited *individual* quotas, for example to increase certain user’s allocations. Now, I want to *revert* (change back) one of these users to the (fileset) default quota ! For example, I have used one user account to test the mmedquota command setting his limits to a certain value (just testing). I’d like now to make that user’s quota be the default fileset quota, and not just numerically, but have his quota record follow the changes in fileset default quota limits. To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here) mmedquota’s “-d” option is supposed to reinstate the defaults, but it doesn’t seem to work for fileset based quotas … !?! Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:06 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default It sounds like you would like to have default perfileset quota enabled. Have you tried to enable the default quota on the filesets and then set the default quota limits for those filesets? For example, in a filesystem fs9 and fileset fset9. File system fs9 has default quota on and --perfileset-quota enabled. # mmlsfs fs9 -Q --perfileset-quota flag value description ------------------- ------------------------ ----------------------------------- -Q user;group;fileset Quotas accounting enabled user;fileset Quotas enforced user;group;fileset Default quotas enabled --perfileset-quota Yes Per-fileset quota enforcement # Enable default user quota for fileset fset9, if not enabled yet, e.g. "mmdefquotaon -u fs9:fset9" Then set the default quota for this fileset using mmdefedquota" # mmdefedquota -u fs9:fset9 .. *** Edit quota limits for USR DEFAULT entry for fileset fset9 NOTE: block limits will be rounded up to the next multiple of the block size. block units may be: K, M, G, T or P, inode units may be: K, M or G. fs9: blocks in use: 0K, limits (soft = 102400K, hard = 1048576K) inodes in use: 0, limits (soft = 10000, hard = 22222) ... Hope that this helps. ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset]"Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 12:22 PM Subject: [EXTERNAL] [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” fails because I do have not set a filesystem default…. [root@xxx]# mmedquota -d -u user gsb USR default quota is off (SpectrumScale 5.0.3 Standard Ed. on RHEL7 x86) Is this a limitation of the current mmedquota implementation, or of something more profound?... I have several filesets within this filesystem, each with various quota structures. A filesystem-wide default quota didn’t seem useful so I never defined one; however I do have multiple fileset-level default quotas, and this is the level at which I’d like to be able to handle this matter… Have I hit a limitation of the implementation? Any workaround, if that’s the case? Many thanks, Razvan Popescu Columbia Business School _______________________________________________ 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 _______________________________________________ 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
Razvan, You are right, the command below yields to an error (as it interprets fs9:fset7 as a user name). Apologies for the confusion. This is what I see in my system: # mmedquota -d -u pfs004 fs9:fset7 fs1 USR default quota is off fs9:fset7 is not valid user # I must have confused the command names in the previous note. Instead of "mmedquota -d" command I meant "mmlsquota -d" (??) # mmlsquota -d fs9:fset7 Default Block Limits(KB) | Default File Limits Filesystem Fileset type quota limit | quota limit entryType fs9 fset7 USR 102400 1048576 | 10000 0 default on fs9 fset7 GRP 0 0 | 0 0 i # mmlsquota -d fs9:fset9 Default Block Limits(KB) | Default File Limits Filesystem Fileset type quota limit | quota limit entryType fs9 fset9 USR 102400 1048576 | 10000 22222 default on fs9 fset9 GRP 0 0 | 0 0 default off #mmlsquota -d -u fs9 Default Block Limits(KB) | Default File Limits Filesystem type quota limit | quota limit Remarks fs9 USR 102400 1048576 | 10000 0 # Upon further investigation, the current behavior of 'mmedquota -d -u <username>' is restore the default quotas for the particular user on all filesystems and filesets. The ability to restore the default limits of a user for selected filesets and filesystems is not available at the moment. Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: Kuei-Yu Wang-Knop <kywang@us.ibm.com>, gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/07/2020 12:23 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Kuei, Thanks for replying. I did open a ticket before the holidays, but it didn’t yield a solution. I just opened another one… My very specific question to you is: “Where have you seen this particular syntax work?” The 5.0.3 & 5.0.4 mmedquota man pages do not mention the availability of a filesystem:fileset parameter (as in your example: “fs9:fset7”) and my testing rejected such a parameter. What made you think this would work? ? # mmedquota -d -u pfs004 fs9:fset7 ^^^^^^^^^^^^^ Many thanks! Razvan -- From: Kuei-Yu Wang-Knop <kywang@us.ibm.com> Date: Tuesday, January 7, 2020 at 12:11 PM To: "Popescu, Razvan" <rp2927@gsb.columbia.edu>, gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: RE: [gpfsug-discuss] Quota: revert user quota to FILESET default Razvan, Perhaps you should open a ticket (so that specific configuration data could be collected and analyzed) on this topic. We would look at your system configuration, the code level to figure out whether what you are seeing is a problem or it is just an expected behavior or a limitation; there are some limitations, specifically moving default limits between file system and fileset default scope, that may not work for your scenario. Thanks, Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com Inactive hide details for "Popescu, Razvan" ---01/07/2020 11:32:42 AM---Hi Kuei-Yu (et al.) Happy New Year!"Popescu, Razvan" ---01/07/2020 11:32:42 AM---Hi Kuei-Yu (et al.) Happy New Year! From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/07/2020 11:32 AM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi Kuei-Yu (et al.) Happy New Year! I’d like to reiterate my follow-up question to your comments – in particular to the line copied below, which mentions a behavior that I’m seeking for this command, but cannot reproduce (in vers, 5.0.3@Linux), namely (with my highlights): # mmedquota -d -u pfs004 fs9:fset7 <=== run mmedquota -d -u to get default limits The reduction of scope to a named filesystem/fileset is what I’m seeking, * but* at least the 5.0.3 version seems to reject that parameter with an error, and apply the user’s default restoration to *all filesystems and filesets* Are you using a different version? Or a different implementations? I’m running SS 5.0.3 on Linux x64. I apologize for having to press this point, but this matter is of a certain importance to us and it appears that the public documentation is mum in this regard. Furthermore, the IBM support, at the first pass, was quite confused and unfocused. (I’m trying with a new case now, but my hopes are low). You seem to be an IBM insider, so …. I count on your help ?. Sorry, for the insistence. ? Best, Razvan Popescu Columbia Univ. -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 3:56 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Razvan, mmedquota -d -u fs:fset: -d 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. This option will assign the default quota to the user. The quota entry type will change from "e" to "d_fset". You may need to play a little bit with your system to get the result as you can have default quota per file system set and default quota per fileset enabled. An exemple to illustrate User pfs004 in filesystem fs9 and fileset fset7 has explicit quota set: # mmrepquota -u -v fs9 | grep pfs004 pfs004 fset7 USR 1088 102400 1048576 0 none | 13 10000 33333 0 none e <=== explicit # mmlsquota -d fs9:fset7 Default Block Limits(KB) | Default File Limits Filesystem Fileset type quota limit | quota limit entryType fs9 fset7 USR 102400 1048576 | 10000 0 default on <=== default quota limits for fs9:fset7, the default fs9 fset7 GRP 0 0 | 0 0 i # mmlsquota -u pfs004 fs9:fset7 Block Limits | File Limits Filesystem Fileset type KB quota limit in_doubt grace | files quota limit in_doubt grace Remarks fs9 fset7 USR 1088 102400 1048576 0 none | 13 10000 33333 0 none <=== explicit # mmedquota -d -u pfs004 fs9:fset7 <=== run mmedquota -d -u to get default limits # mmlsquota -u pfs004 fs9:fset7 Block Limits | File Limits Filesystem Fileset type KB quota limit in_doubt grace | files quota limit in_doubt grace Remarks fs9 fset7 USR 1088 102400 1048576 0 none | 13 10000 0 0 none <=== takes the default value # mmrepquota -u -v fs9:fset7 | grep pfs004 pfs004 fset7 USR 1088 102400 1048576 0 none | 13 10000 0 0 none d_fset <=== now user pfs004 in fset7 takes the default limits # ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com Inactive hide details for "Popescu, Razvan" ---12/19/2019 02:28:51 PM---I see. May I ask one follow-up question, please: what"Popescu, Razvan" ---12/19/2019 02:28:51 PM---I see. May I ask one follow-up question, please: what is “mmedquota -d -u <username>” supposed From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 02:28 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org I see. May I ask one follow-up question, please: what is “mmedquota -d -u <username>” supposed to do in this case? Really appreciate your assistance. Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:25 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default
To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here)
Currently there is no function to revert an explicit quota entry (e) to initial (i) entry. Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com Inactive hide details for "Popescu, Razvan" ---12/19/2019 02:18:54 PM---Thanks for your kind reply. My problem is different tho"Popescu, Razvan" ---12/19/2019 02:18:54 PM---Thanks for your kind reply. My problem is different though. From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 02:18 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org Thanks for your kind reply. My problem is different though. I have set a fileset default quota (doing all the steps you recommended) and all was Ok. During operations I have edited *individual* quotas, for example to increase certain user’s allocations. Now, I want to *revert* (change back) one of these users to the (fileset) default quota ! For example, I have used one user account to test the mmedquota command setting his limits to a certain value (just testing). I’d like now to make that user’s quota be the default fileset quota, and not just numerically, but have his quota record follow the changes in fileset default quota limits. To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here) mmedquota’s “-d” option is supposed to reinstate the defaults, but it doesn’t seem to work for fileset based quotas … !?! Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:06 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default It sounds like you would like to have default perfileset quota enabled. Have you tried to enable the default quota on the filesets and then set the default quota limits for those filesets? For example, in a filesystem fs9 and fileset fset9. File system fs9 has default quota on and --perfileset-quota enabled. # mmlsfs fs9 -Q --perfileset-quota flag value description ------------------- ------------------------ ----------------------------------- -Q user;group;fileset Quotas accounting enabled user;fileset Quotas enforced user;group;fileset Default quotas enabled --perfileset-quota Yes Per-fileset quota enforcement # Enable default user quota for fileset fset9, if not enabled yet, e.g. "mmdefquotaon -u fs9:fset9" Then set the default quota for this fileset using mmdefedquota" # mmdefedquota -u fs9:fset9 .. *** Edit quota limits for USR DEFAULT entry for fileset fset9 NOTE: block limits will be rounded up to the next multiple of the block size. block units may be: K, M, G, T or P, inode units may be: K, M or G. fs9: blocks in use: 0K, limits (soft = 102400K, hard = 1048576K) inodes in use: 0, limits (soft = 10000, hard = 22222) ... Hope that this helps. ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com Inactive hide details for "Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset"Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 12:22 PM Subject: [EXTERNAL] [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” fails because I do have not set a filesystem default…. [root@xxx]# mmedquota -d -u user gsb USR default quota is off (SpectrumScale 5.0.3 Standard Ed. on RHEL7 x86) Is this a limitation of the current mmedquota implementation, or of something more profound?... I have several filesets within this filesystem, each with various quota structures. A filesystem-wide default quota didn’t seem useful so I never defined one; however I do have multiple fileset-level default quotas, and this is the level at which I’d like to be able to handle this matter… Have I hit a limitation of the implementation? Any workaround, if that’s the case? Many thanks, Razvan Popescu Columbia Business School _______________________________________________ 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 _______________________________________________ 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
Thank you very much, Kuei. It’s now clear where we stand, even though I would have liked to have that added selectivity in mmedquota. We use filesets to separate classes of projects and classes of storage (backup/noBackup for example), and thus one user or one group(=project), has various resource allocations across filesets (enforced by quotas). Sometimes we need to roll back only certain allocations and leave other untouched …. If no one else encountered this need so far, I guess we twisted the model a bit too much 😊. Maybe we can add this option to some list of desired new features for coming versions?... Thanks, Razvan -- From: Kuei-Yu Wang-Knop <kywang@us.ibm.com> Date: Tuesday, January 7, 2020 at 2:13 PM To: "Popescu, Razvan" <rp2927@gsb.columbia.edu> Cc: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: RE: [gpfsug-discuss] Quota: revert user quota to FILESET default Razvan, You are right, the command below yields to an error (as it interprets fs9:fset7 as a user name). Apologies for the confusion. This is what I see in my system: # mmedquota -d -u pfs004 fs9:fset7 fs1 USR default quota is off fs9:fset7 is not valid user # I must have confused the command names in the previous note. Instead of "mmedquota -d" command I meant "mmlsquota -d" (??) # mmlsquota -d fs9:fset7 Default Block Limits(KB) | Default File Limits Filesystem Fileset type quota limit | quota limit entryType fs9 fset7 USR 102400 1048576 | 10000 0 default on fs9 fset7 GRP 0 0 | 0 0 i # mmlsquota -d fs9:fset9 Default Block Limits(KB) | Default File Limits Filesystem Fileset type quota limit | quota limit entryType fs9 fset9 USR 102400 1048576 | 10000 22222 default on fs9 fset9 GRP 0 0 | 0 0 default off #mmlsquota -d -u fs9 Default Block Limits(KB) | Default File Limits Filesystem type quota limit | quota limit Remarks fs9 USR 102400 1048576 | 10000 0 # Upon further investigation, the current behavior of 'mmedquota -d -u <username>' is restore the default quotas for the particular user on all filesystems and filesets. The ability to restore the default limits of a user for selected filesets and filesystems is not available at the moment. Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---01/07/2020 12:23:47 PM---Kuei, Thanks for replying. I did open a ticket before]"Popescu, Razvan" ---01/07/2020 12:23:47 PM---Kuei, Thanks for replying. I did open a ticket before the holidays, but it didn’t yield a solution From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: Kuei-Yu Wang-Knop <kywang@us.ibm.com>, gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/07/2020 12:23 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default ________________________________ Kuei, Thanks for replying. I did open a ticket before the holidays, but it didn’t yield a solution. I just opened another one… My very specific question to you is: “Where have you seen this particular syntax work?” The 5.0.3 & 5.0.4 mmedquota man pages do not mention the availability of a filesystem:fileset parameter (as in your example: “fs9:fset7”) and my testing rejected such a parameter. What made you think this would work? ? # mmedquota -d -u pfs004 fs9:fset7 ^^^^^^^^^^^^^ Many thanks! Razvan -- From: Kuei-Yu Wang-Knop <kywang@us.ibm.com> Date: Tuesday, January 7, 2020 at 12:11 PM To: "Popescu, Razvan" <rp2927@gsb.columbia.edu>, gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: RE: [gpfsug-discuss] Quota: revert user quota to FILESET default Razvan, Perhaps you should open a ticket (so that specific configuration data could be collected and analyzed) on this topic. We would look at your system configuration, the code level to figure out whether what you are seeing is a problem or it is just an expected behavior or a limitation; there are some limitations, specifically moving default limits between file system and fileset default scope, that may not work for your scenario. Thanks, Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---01/07/2020 11:32:42 AM---Hi Kuei-Yu (et al.) Happy New Year!]"Popescu, Razvan" ---01/07/2020 11:32:42 AM---Hi Kuei-Yu (et al.) Happy New Year! From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/07/2020 11:32 AM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ Hi Kuei-Yu (et al.) Happy New Year! I’d like to reiterate my follow-up question to your comments – in particular to the line copied below, which mentions a behavior that I’m seeking for this command, but cannot reproduce (in vers, 5.0.3@Linux), namely (with my highlights): # mmedquota -d -u pfs004 fs9:fset7 <=== run mmedquota -d -u to get default limits The reduction of scope to a named filesystem/fileset is what I’m seeking, *but* at least the 5.0.3 version seems to reject that parameter with an error, and apply the user’s default restoration to *all filesystems and filesets* Are you using a different version? Or a different implementations? I’m running SS 5.0.3 on Linux x64. I apologize for having to press this point, but this matter is of a certain importance to us and it appears that the public documentation is mum in this regard. Furthermore, the IBM support, at the first pass, was quite confused and unfocused. (I’m trying with a new case now, but my hopes are low). You seem to be an IBM insider, so …. I count on your help ?. Sorry, for the insistence. ? Best, Razvan Popescu Columbia Univ. -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 3:56 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Razvan, mmedquota -d -u fs:fset: -d 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. This option will assign the default quota to the user. The quota entry type will change from "e" to "d_fset". You may need to play a little bit with your system to get the result as you can have default quota per file system set and default quota per fileset enabled. An exemple to illustrate User pfs004 in filesystem fs9 and fileset fset7 has explicit quota set: # mmrepquota -u -v fs9 | grep pfs004 pfs004 fset7 USR 1088 102400 1048576 0 none | 13 10000 33333 0 none e <=== explicit # mmlsquota -d fs9:fset7 Default Block Limits(KB) | Default File Limits Filesystem Fileset type quota limit | quota limit entryType fs9 fset7 USR 102400 1048576 | 10000 0 default on <=== default quota limits for fs9:fset7, the default fs9 fset7 GRP 0 0 | 0 0 i # mmlsquota -u pfs004 fs9:fset7 Block Limits | File Limits Filesystem Fileset type KB quota limit in_doubt grace | files quota limit in_doubt grace Remarks fs9 fset7 USR 1088 102400 1048576 0 none | 13 10000 33333 0 none <=== explicit # mmedquota -d -u pfs004 fs9:fset7 <=== run mmedquota -d -u to get default limits # mmlsquota -u pfs004 fs9:fset7 Block Limits | File Limits Filesystem Fileset type KB quota limit in_doubt grace | files quota limit in_doubt grace Remarks fs9 fset7 USR 1088 102400 1048576 0 none | 13 10000 0 0 none <=== takes the default value # mmrepquota -u -v fs9:fset7 | grep pfs004 pfs004 fset7 USR 1088 102400 1048576 0 none | 13 10000 0 0 none d_fset <=== now user pfs004 in fset7 takes the default limits # ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---12/19/2019 02:28:51 PM---I see. May I ask one follow-up question, please: what]"Popescu, Razvan" ---12/19/2019 02:28:51 PM---I see. May I ask one follow-up question, please: what is “mmedquota -d -u <username>” supposed From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 02:28 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ I see. May I ask one follow-up question, please: what is “mmedquota -d -u <username>” supposed to do in this case? Really appreciate your assistance. Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:25 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default
To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here)
Currently there is no function to revert an explicit quota entry (e) to initial (i) entry. Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---12/19/2019 02:18:54 PM---Thanks for your kind reply. My problem is different tho]"Popescu, Razvan" ---12/19/2019 02:18:54 PM---Thanks for your kind reply. My problem is different though. From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 02:18 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ Thanks for your kind reply. My problem is different though. I have set a fileset default quota (doing all the steps you recommended) and all was Ok. During operations I have edited *individual* quotas, for example to increase certain user’s allocations. Now, I want to *revert* (change back) one of these users to the (fileset) default quota ! For example, I have used one user account to test the mmedquota command setting his limits to a certain value (just testing). I’d like now to make that user’s quota be the default fileset quota, and not just numerically, but have his quota record follow the changes in fileset default quota limits. To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here) mmedquota’s “-d” option is supposed to reinstate the defaults, but it doesn’t seem to work for fileset based quotas … !?! Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:06 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default It sounds like you would like to have default perfileset quota enabled. Have you tried to enable the default quota on the filesets and then set the default quota limits for those filesets? For example, in a filesystem fs9 and fileset fset9. File system fs9 has default quota on and --perfileset-quota enabled. # mmlsfs fs9 -Q --perfileset-quota flag value description ------------------- ------------------------ ----------------------------------- -Q user;group;fileset Quotas accounting enabled user;fileset Quotas enforced user;group;fileset Default quotas enabled --perfileset-quota Yes Per-fileset quota enforcement # Enable default user quota for fileset fset9, if not enabled yet, e.g. "mmdefquotaon -u fs9:fset9" Then set the default quota for this fileset using mmdefedquota" # mmdefedquota -u fs9:fset9 .. *** Edit quota limits for USR DEFAULT entry for fileset fset9 NOTE: block limits will be rounded up to the next multiple of the block size. block units may be: K, M, G, T or P, inode units may be: K, M or G. fs9: blocks in use: 0K, limits (soft = 102400K, hard = 1048576K) inodes in use: 0, limits (soft = 10000, hard = 22222) ... Hope that this helps. ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset]"Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 12:22 PM Subject: [EXTERNAL] [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” fails because I do have not set a filesystem default…. [root@xxx]# mmedquota -d -u user gsb USR default quota is off (SpectrumScale 5.0.3 Standard Ed. on RHEL7 x86) Is this a limitation of the current mmedquota implementation, or of something more profound?... I have several filesets within this filesystem, each with various quota structures. A filesystem-wide default quota didn’t seem useful so I never defined one; however I do have multiple fileset-level default quotas, and this is the level at which I’d like to be able to handle this matter… Have I hit a limitation of the implementation? Any workaround, if that’s the case? Many thanks, Razvan Popescu Columbia Business School _______________________________________________ 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 _______________________________________________ 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
Razvan, You can open an RFE (Request for Enhancement) for this issue if you would like this function to be considered for future versions. Thanks, Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: Kuei-Yu Wang-Knop <kywang@us.ibm.com> Cc: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/07/2020 02:39 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Thank you very much, Kuei. It’s now clear where we stand, even though I would have liked to have that added selectivity in mmedquota. We use filesets to separate classes of projects and classes of storage (backup/noBackup for example), and thus one user or one group(=project), has various resource allocations across filesets (enforced by quotas). Sometimes we need to roll back only certain allocations and leave other untouched …. If no one else encountered this need so far, I guess we twisted the model a bit too much ?. Maybe we can add this option to some list of desired new features for coming versions?... Thanks, Razvan -- From: Kuei-Yu Wang-Knop <kywang@us.ibm.com> Date: Tuesday, January 7, 2020 at 2:13 PM To: "Popescu, Razvan" <rp2927@gsb.columbia.edu> Cc: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: RE: [gpfsug-discuss] Quota: revert user quota to FILESET default Razvan, You are right, the command below yields to an error (as it interprets fs9:fset7 as a user name). Apologies for the confusion. This is what I see in my system: # mmedquota -d -u pfs004 fs9:fset7 fs1 USR default quota is off fs9:fset7 is not valid user # I must have confused the command names in the previous note. Instead of "mmedquota -d" command I meant "mmlsquota -d" (??) # mmlsquota -d fs9:fset7 Default Block Limits(KB) | Default File Limits Filesystem Fileset type quota limit | quota limit entryType fs9 fset7 USR 102400 1048576 | 10000 0 default on fs9 fset7 GRP 0 0 | 0 0 i # mmlsquota -d fs9:fset9 Default Block Limits(KB) | Default File Limits Filesystem Fileset type quota limit | quota limit entryType fs9 fset9 USR 102400 1048576 | 10000 22222 default on fs9 fset9 GRP 0 0 | 0 0 default off #mmlsquota -d -u fs9 Default Block Limits(KB) | Default File Limits Filesystem type quota limit | quota limit Remarks fs9 USR 102400 1048576 | 10000 0 # Upon further investigation, the current behavior of 'mmedquota -d -u <username>' is restore the default quotas for the particular user on all filesystems and filesets. The ability to restore the default limits of a user for selected filesets and filesystems is not available at the moment. Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com Inactive hide details for "Popescu, Razvan" ---01/07/2020 12:23:47 PM---Kuei, Thanks for replying. I did open a ticket before"Popescu, Razvan" ---01/07/2020 12:23:47 PM---Kuei, Thanks for replying. I did open a ticket before the holidays, but it didn’t yield a solution From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: Kuei-Yu Wang-Knop <kywang@us.ibm.com>, gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/07/2020 12:23 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Kuei, Thanks for replying. I did open a ticket before the holidays, but it didn’t yield a solution. I just opened another one… My very specific question to you is: “Where have you seen this particular syntax work?” The 5.0.3 & 5.0.4 mmedquota man pages do not mention the availability of a filesystem:fileset parameter (as in your example: “fs9:fset7”) and my testing rejected such a parameter. What made you think this would work? ? # mmedquota -d -u pfs004 fs9:fset7 ^^^^^^^^^^^^^ Many thanks! Razvan -- From: Kuei-Yu Wang-Knop <kywang@us.ibm.com> Date: Tuesday, January 7, 2020 at 12:11 PM To: "Popescu, Razvan" <rp2927@gsb.columbia.edu>, gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: RE: [gpfsug-discuss] Quota: revert user quota to FILESET default Razvan, Perhaps you should open a ticket (so that specific configuration data could be collected and analyzed) on this topic. We would look at your system configuration, the code level to figure out whether what you are seeing is a problem or it is just an expected behavior or a limitation; there are some limitations, specifically moving default limits between file system and fileset default scope, that may not work for your scenario. Thanks, Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com Inactive hide details for "Popescu, Razvan" ---01/07/2020 11:32:42 AM---Hi Kuei-Yu (et al.) Happy New Year!"Popescu, Razvan" ---01/07/2020 11:32:42 AM---Hi Kuei-Yu (et al.) Happy New Year! From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/07/2020 11:32 AM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi Kuei-Yu (et al.) Happy New Year! I’d like to reiterate my follow-up question to your comments – in particular to the line copied below, which mentions a behavior that I’m seeking for this command, but cannot reproduce (in vers, 5.0.3@Linux), namely (with my highlights): # mmedquota -d -u pfs004 fs9:fset7 <=== run mmedquota -d -u to get default limits The reduction of scope to a named filesystem/fileset is what I’m seeking, * but* at least the 5.0.3 version seems to reject that parameter with an error, and apply the user’s default restoration to *all filesystems and filesets* Are you using a different version? Or a different implementations? I’m running SS 5.0.3 on Linux x64. I apologize for having to press this point, but this matter is of a certain importance to us and it appears that the public documentation is mum in this regard. Furthermore, the IBM support, at the first pass, was quite confused and unfocused. (I’m trying with a new case now, but my hopes are low). You seem to be an IBM insider, so …. I count on your help ?. Sorry, for the insistence. ? Best, Razvan Popescu Columbia Univ. -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 3:56 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Razvan, mmedquota -d -u fs:fset: -d 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. This option will assign the default quota to the user. The quota entry type will change from "e" to "d_fset". You may need to play a little bit with your system to get the result as you can have default quota per file system set and default quota per fileset enabled. An exemple to illustrate User pfs004 in filesystem fs9 and fileset fset7 has explicit quota set: # mmrepquota -u -v fs9 | grep pfs004 pfs004 fset7 USR 1088 102400 1048576 0 none | 13 10000 33333 0 none e <=== explicit # mmlsquota -d fs9:fset7 Default Block Limits(KB) | Default File Limits Filesystem Fileset type quota limit | quota limit entryType fs9 fset7 USR 102400 1048576 | 10000 0 default on <=== default quota limits for fs9:fset7, the default fs9 fset7 GRP 0 0 | 0 0 i # mmlsquota -u pfs004 fs9:fset7 Block Limits | File Limits Filesystem Fileset type KB quota limit in_doubt grace | files quota limit in_doubt grace Remarks fs9 fset7 USR 1088 102400 1048576 0 none | 13 10000 33333 0 none <=== explicit # mmedquota -d -u pfs004 fs9:fset7 <=== run mmedquota -d -u to get default limits # mmlsquota -u pfs004 fs9:fset7 Block Limits | File Limits Filesystem Fileset type KB quota limit in_doubt grace | files quota limit in_doubt grace Remarks fs9 fset7 USR 1088 102400 1048576 0 none | 13 10000 0 0 none <=== takes the default value # mmrepquota -u -v fs9:fset7 | grep pfs004 pfs004 fset7 USR 1088 102400 1048576 0 none | 13 10000 0 0 none d_fset <=== now user pfs004 in fset7 takes the default limits # ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com Inactive hide details for "Popescu, Razvan" ---12/19/2019 02:28:51 PM---I see. May I ask one follow-up question, please: what"Popescu, Razvan" ---12/19/2019 02:28:51 PM---I see. May I ask one follow-up question, please: what is “mmedquota -d -u <username>” supposed From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 02:28 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org I see. May I ask one follow-up question, please: what is “mmedquota -d -u <username>” supposed to do in this case? Really appreciate your assistance. Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:25 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default
To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here)
Currently there is no function to revert an explicit quota entry (e) to initial (i) entry. Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com Inactive hide details for "Popescu, Razvan" ---12/19/2019 02:18:54 PM---Thanks for your kind reply. My problem is different tho"Popescu, Razvan" ---12/19/2019 02:18:54 PM---Thanks for your kind reply. My problem is different though. From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 02:18 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org Thanks for your kind reply. My problem is different though. I have set a fileset default quota (doing all the steps you recommended) and all was Ok. During operations I have edited *individual* quotas, for example to increase certain user’s allocations. Now, I want to *revert* (change back) one of these users to the (fileset) default quota ! For example, I have used one user account to test the mmedquota command setting his limits to a certain value (just testing). I’d like now to make that user’s quota be the default fileset quota, and not just numerically, but have his quota record follow the changes in fileset default quota limits. To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here) mmedquota’s “-d” option is supposed to reinstate the defaults, but it doesn’t seem to work for fileset based quotas … !?! Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:06 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default It sounds like you would like to have default perfileset quota enabled. Have you tried to enable the default quota on the filesets and then set the default quota limits for those filesets? For example, in a filesystem fs9 and fileset fset9. File system fs9 has default quota on and --perfileset-quota enabled. # mmlsfs fs9 -Q --perfileset-quota flag value description ------------------- ------------------------ ----------------------------------- -Q user;group;fileset Quotas accounting enabled user;fileset Quotas enforced user;group;fileset Default quotas enabled --perfileset-quota Yes Per-fileset quota enforcement # Enable default user quota for fileset fset9, if not enabled yet, e.g. "mmdefquotaon -u fs9:fset9" Then set the default quota for this fileset using mmdefedquota" # mmdefedquota -u fs9:fset9 .. *** Edit quota limits for USR DEFAULT entry for fileset fset9 NOTE: block limits will be rounded up to the next multiple of the block size. block units may be: K, M, G, T or P, inode units may be: K, M or G. fs9: blocks in use: 0K, limits (soft = 102400K, hard = 1048576K) inodes in use: 0, limits (soft = 10000, hard = 22222) ... Hope that this helps. ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com Inactive hide details for "Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset"Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 12:22 PM Subject: [EXTERNAL] [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” fails because I do have not set a filesystem default…. [root@xxx]# mmedquota -d -u user gsb USR default quota is off (SpectrumScale 5.0.3 Standard Ed. on RHEL7 x86) Is this a limitation of the current mmedquota implementation, or of something more profound?... I have several filesets within this filesystem, each with various quota structures. A filesystem-wide default quota didn’t seem useful so I never defined one; however I do have multiple fileset-level default quotas, and this is the level at which I’d like to be able to handle this matter… Have I hit a limitation of the implementation? Any workaround, if that’s the case? Many thanks, Razvan Popescu Columbia Business School _______________________________________________ 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 _______________________________________________ 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
How do I do that? (thnks!) Razvan -- From: Kuei-Yu Wang-Knop <kywang@us.ibm.com> Date: Tuesday, January 7, 2020 at 2:50 PM To: "Popescu, Razvan" <rp2927@gsb.columbia.edu> Cc: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: RE: [gpfsug-discuss] Quota: revert user quota to FILESET default Razvan, You can open an RFE (Request for Enhancement) for this issue if you would like this function to be considered for future versions. Thanks, Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---01/07/2020 02:39:30 PM---Thank you very much, Kuei. It’s now clear where we st]"Popescu, Razvan" ---01/07/2020 02:39:30 PM---Thank you very much, Kuei. It’s now clear where we stand, even though I would have liked to have th From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: Kuei-Yu Wang-Knop <kywang@us.ibm.com> Cc: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/07/2020 02:39 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default ________________________________ Thank you very much, Kuei. It’s now clear where we stand, even though I would have liked to have that added selectivity in mmedquota. We use filesets to separate classes of projects and classes of storage (backup/noBackup for example), and thus one user or one group(=project), has various resource allocations across filesets (enforced by quotas). Sometimes we need to roll back only certain allocations and leave other untouched …. If no one else encountered this need so far, I guess we twisted the model a bit too much ?. Maybe we can add this option to some list of desired new features for coming versions?... Thanks, Razvan -- From: Kuei-Yu Wang-Knop <kywang@us.ibm.com> Date: Tuesday, January 7, 2020 at 2:13 PM To: "Popescu, Razvan" <rp2927@gsb.columbia.edu> Cc: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: RE: [gpfsug-discuss] Quota: revert user quota to FILESET default Razvan, You are right, the command below yields to an error (as it interprets fs9:fset7 as a user name). Apologies for the confusion. This is what I see in my system: # mmedquota -d -u pfs004 fs9:fset7 fs1 USR default quota is off fs9:fset7 is not valid user # I must have confused the command names in the previous note. Instead of "mmedquota -d" command I meant "mmlsquota -d" (??) # mmlsquota -d fs9:fset7 Default Block Limits(KB) | Default File Limits Filesystem Fileset type quota limit | quota limit entryType fs9 fset7 USR 102400 1048576 | 10000 0 default on fs9 fset7 GRP 0 0 | 0 0 i # mmlsquota -d fs9:fset9 Default Block Limits(KB) | Default File Limits Filesystem Fileset type quota limit | quota limit entryType fs9 fset9 USR 102400 1048576 | 10000 22222 default on fs9 fset9 GRP 0 0 | 0 0 default off #mmlsquota -d -u fs9 Default Block Limits(KB) | Default File Limits Filesystem type quota limit | quota limit Remarks fs9 USR 102400 1048576 | 10000 0 # Upon further investigation, the current behavior of 'mmedquota -d -u <username>' is restore the default quotas for the particular user on all filesystems and filesets. The ability to restore the default limits of a user for selected filesets and filesystems is not available at the moment. Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---01/07/2020 12:23:47 PM---Kuei, Thanks for replying. I did open a ticket before]"Popescu, Razvan" ---01/07/2020 12:23:47 PM---Kuei, Thanks for replying. I did open a ticket before the holidays, but it didn’t yield a solution From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: Kuei-Yu Wang-Knop <kywang@us.ibm.com>, gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/07/2020 12:23 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default ________________________________ Kuei, Thanks for replying. I did open a ticket before the holidays, but it didn’t yield a solution. I just opened another one… My very specific question to you is: “Where have you seen this particular syntax work?” The 5.0.3 & 5.0.4 mmedquota man pages do not mention the availability of a filesystem:fileset parameter (as in your example: “fs9:fset7”) and my testing rejected such a parameter. What made you think this would work? ? # mmedquota -d -u pfs004 fs9:fset7 ^^^^^^^^^^^^^ Many thanks! Razvan -- From: Kuei-Yu Wang-Knop <kywang@us.ibm.com> Date: Tuesday, January 7, 2020 at 12:11 PM To: "Popescu, Razvan" <rp2927@gsb.columbia.edu>, gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: RE: [gpfsug-discuss] Quota: revert user quota to FILESET default Razvan, Perhaps you should open a ticket (so that specific configuration data could be collected and analyzed) on this topic. We would look at your system configuration, the code level to figure out whether what you are seeing is a problem or it is just an expected behavior or a limitation; there are some limitations, specifically moving default limits between file system and fileset default scope, that may not work for your scenario. Thanks, Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---01/07/2020 11:32:42 AM---Hi Kuei-Yu (et al.) Happy New Year!]"Popescu, Razvan" ---01/07/2020 11:32:42 AM---Hi Kuei-Yu (et al.) Happy New Year! From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/07/2020 11:32 AM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ Hi Kuei-Yu (et al.) Happy New Year! I’d like to reiterate my follow-up question to your comments – in particular to the line copied below, which mentions a behavior that I’m seeking for this command, but cannot reproduce (in vers, 5.0.3@Linux), namely (with my highlights): # mmedquota -d -u pfs004 fs9:fset7 <=== run mmedquota -d -u to get default limits The reduction of scope to a named filesystem/fileset is what I’m seeking, *but* at least the 5.0.3 version seems to reject that parameter with an error, and apply the user’s default restoration to *all filesystems and filesets* Are you using a different version? Or a different implementations? I’m running SS 5.0.3 on Linux x64. I apologize for having to press this point, but this matter is of a certain importance to us and it appears that the public documentation is mum in this regard. Furthermore, the IBM support, at the first pass, was quite confused and unfocused. (I’m trying with a new case now, but my hopes are low). You seem to be an IBM insider, so …. I count on your help ?. Sorry, for the insistence. ? Best, Razvan Popescu Columbia Univ. -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 3:56 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Razvan, mmedquota -d -u fs:fset: -d 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. This option will assign the default quota to the user. The quota entry type will change from "e" to "d_fset". You may need to play a little bit with your system to get the result as you can have default quota per file system set and default quota per fileset enabled. An exemple to illustrate User pfs004 in filesystem fs9 and fileset fset7 has explicit quota set: # mmrepquota -u -v fs9 | grep pfs004 pfs004 fset7 USR 1088 102400 1048576 0 none | 13 10000 33333 0 none e <=== explicit # mmlsquota -d fs9:fset7 Default Block Limits(KB) | Default File Limits Filesystem Fileset type quota limit | quota limit entryType fs9 fset7 USR 102400 1048576 | 10000 0 default on <=== default quota limits for fs9:fset7, the default fs9 fset7 GRP 0 0 | 0 0 i # mmlsquota -u pfs004 fs9:fset7 Block Limits | File Limits Filesystem Fileset type KB quota limit in_doubt grace | files quota limit in_doubt grace Remarks fs9 fset7 USR 1088 102400 1048576 0 none | 13 10000 33333 0 none <=== explicit # mmedquota -d -u pfs004 fs9:fset7 <=== run mmedquota -d -u to get default limits # mmlsquota -u pfs004 fs9:fset7 Block Limits | File Limits Filesystem Fileset type KB quota limit in_doubt grace | files quota limit in_doubt grace Remarks fs9 fset7 USR 1088 102400 1048576 0 none | 13 10000 0 0 none <=== takes the default value # mmrepquota -u -v fs9:fset7 | grep pfs004 pfs004 fset7 USR 1088 102400 1048576 0 none | 13 10000 0 0 none d_fset <=== now user pfs004 in fset7 takes the default limits # ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---12/19/2019 02:28:51 PM---I see. May I ask one follow-up question, please: what]"Popescu, Razvan" ---12/19/2019 02:28:51 PM---I see. May I ask one follow-up question, please: what is “mmedquota -d -u <username>” supposed From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 02:28 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ I see. May I ask one follow-up question, please: what is “mmedquota -d -u <username>” supposed to do in this case? Really appreciate your assistance. Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:25 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default
To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here)
Currently there is no function to revert an explicit quota entry (e) to initial (i) entry. Kuei ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---12/19/2019 02:18:54 PM---Thanks for your kind reply. My problem is different tho]"Popescu, Razvan" ---12/19/2019 02:18:54 PM---Thanks for your kind reply. My problem is different though. From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 02:18 PM Subject: [EXTERNAL] Re: [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ Thanks for your kind reply. My problem is different though. I have set a fileset default quota (doing all the steps you recommended) and all was Ok. During operations I have edited *individual* quotas, for example to increase certain user’s allocations. Now, I want to *revert* (change back) one of these users to the (fileset) default quota ! For example, I have used one user account to test the mmedquota command setting his limits to a certain value (just testing). I’d like now to make that user’s quota be the default fileset quota, and not just numerically, but have his quota record follow the changes in fileset default quota limits. To make it more technical …. This fellow’s quota entryType is now “e” . I want to change it back to entryType “I”. (I hope I’m not talking nonsense here) mmedquota’s “-d” option is supposed to reinstate the defaults, but it doesn’t seem to work for fileset based quotas … !?! Razvan -- From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Kuei-Yu Wang-Knop <kywang@us.ibm.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Thursday, December 19, 2019 at 2:06 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Quota: revert user quota to FILESET default It sounds like you would like to have default perfileset quota enabled. Have you tried to enable the default quota on the filesets and then set the default quota limits for those filesets? For example, in a filesystem fs9 and fileset fset9. File system fs9 has default quota on and --perfileset-quota enabled. # mmlsfs fs9 -Q --perfileset-quota flag value description ------------------- ------------------------ ----------------------------------- -Q user;group;fileset Quotas accounting enabled user;fileset Quotas enforced user;group;fileset Default quotas enabled --perfileset-quota Yes Per-fileset quota enforcement # Enable default user quota for fileset fset9, if not enabled yet, e.g. "mmdefquotaon -u fs9:fset9" Then set the default quota for this fileset using mmdefedquota" # mmdefedquota -u fs9:fset9 .. *** Edit quota limits for USR DEFAULT entry for fileset fset9 NOTE: block limits will be rounded up to the next multiple of the block size. block units may be: K, M, G, T or P, inode units may be: K, M or G. fs9: blocks in use: 0K, limits (soft = 102400K, hard = 1048576K) inodes in use: 0, limits (soft = 10000, hard = 22222) ... Hope that this helps. ------------------------------------ Kuei-Yu Wang-Knop IBM Scalable I/O development (845) 433-9333 T/L 293-9333, E-mail: kywang@us.ibm.com [Inactive hide details for "Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset]"Popescu, Razvan" ---12/19/2019 12:22:34 PM---Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” From: "Popescu, Razvan" <rp2927@gsb.columbia.edu> To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: 12/19/2019 12:22 PM Subject: [EXTERNAL] [gpfsug-discuss] Quota: revert user quota to FILESET default Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ Hi, I’d like to revert a user’s quota to the fileset’s default, but “mmedquota -d -u <username>” fails because I do have not set a filesystem default…. [root@xxx]# mmedquota -d -u user gsb USR default quota is off (SpectrumScale 5.0.3 Standard Ed. on RHEL7 x86) Is this a limitation of the current mmedquota implementation, or of something more profound?... I have several filesets within this filesystem, each with various quota structures. A filesystem-wide default quota didn’t seem useful so I never defined one; however I do have multiple fileset-level default quotas, and this is the level at which I’d like to be able to handle this matter… Have I hit a limitation of the implementation? Any workaround, if that’s the case? Many thanks, Razvan Popescu Columbia Business School _______________________________________________ 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 _______________________________________________ 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
On Tue, 2020-01-07 at 19:39 +0000, Popescu, Razvan wrote:
Thank you very much, Kuei. It’s now clear where we stand, even though I would have liked to have that added selectivity in mmedquota.
Note in the meantime you could "simulate" this with a relatively simple script that grabs the quota information for the relevant user, uses mmsetquota to wipe all the quota information for the user and then some more mmsetquota to set all the ones you want. While not ideal the window of opportunity for the end user to exploit not having any quota's would be a matter of seconds. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
Hi Jonathan, Thanks for you kind reply. Indeed, I can always do that. Best, Razvan -- On 1/8/20, 7:17 AM, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Jonathan Buzzard" <gpfsug-discuss-bounces@spectrumscale.org on behalf of jonathan.buzzard@strath.ac.uk> wrote: On Tue, 2020-01-07 at 19:39 +0000, Popescu, Razvan wrote: > Thank you very much, Kuei. It’s now clear where we stand, even > though I would have liked to have that added selectivity in > mmedquota. > Note in the meantime you could "simulate" this with a relatively simple script that grabs the quota information for the relevant user, uses mmsetquota to wipe all the quota information for the user and then some more mmsetquota to set all the ones you want. While not ideal the window of opportunity for the end user to exploit not having any quota's would be a matter of seconds. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On 19/12/2019 19:28, Popescu, Razvan wrote:
I see.
May I ask one follow-up question, please: what is “mmedquota -d -u <username>” supposed to do in this case?
Really appreciate your assistance.
In the past (last time I did this was on version 3.2 or 3.3) if you used mmsetquota and set a users quota to 0 then as far as GPFS was concerned it was like you had never set a quota. This was notionally before per fileset quotas where a thing. In reality on my test cluster you could enable them and set them and they seemed to work as would be expected when I tested it. Never used it in production on those versions because well that would be dumb, and never had to remove a quota completely since. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
participants (4)
-
Felipe Knop -
Jonathan Buzzard -
Kuei-Yu Wang-Knop -
Popescu, Razvan
