question on fileset / quotas
Hi Everyone, I am very new to GPFS, just got the system up and running, now starting to get myself setting up filesets and quotas. I have a question, may be in has been answered already, somewhere in this forum, my apologies for that if this is a repeat. My question is: lets say I have an independent fileset called '/mmfs1/crsp_test' , and I set it's quota to 2GB ( quota type FILESET ). STAGING-itoufiqu@crspoitdc-mgmt-001:/mmfs1/crsp_test/itoufiqu$ df -h /mmfs1/crsp_test/ Filesystem Size Used Avail Use% Mounted on mmfs1 2.0G 0 2.0G 0% /mmfs1 Now, I go create a 'dependent' fileset calld 'itoufiqu' under 'crsp_test' , sharing it's inode space, and i was able to set it's quota to 4GB. STAGING-root@crspoitdc-mgmt-001:/mmfs1/crsp_test$ df -h /mmfs1/crsp_test/itoufiqu Filesystem Size Used Avail Use% Mounted on mmfs1 4.0G 4.0G 0 100% /mmfs1 Now, i assume that setting quota of 4GB ( whereas the independent fileset quota is 2GB ) for the above dependent fileset ( 'itoufiqu' ) is being allowed as dependent fileset is sharing inode space from the independent fileset. Is there a way to setup an independent fileset so that it's dependent filesets cannot exceed its quota limit? Another words, if my independent fileset quota is 2GB, I should not be allowed to set quotas for it's dependent filesets more then 2GB ( for the dependent filesets created in aggregate ) ? Thanks for your help!
On Fri, 08 Feb 2019 17:42:13 -0800, Imam Toufique said:
Is there a way to setup an independent fileset so that it's dependent filesets cannot exceed its quota limit? Another words, if my independent fileset quota is 2GB, I should not be allowed to set quotas for it's dependent filesets more then 2GB ( for the dependent filesets created in aggregate ) ?
Well.. to set the quota on the dependent fileset, you have to be root. And the general Unix/Linux philosophy is to not prevent the root user from doing things unless there's a good technical reason(*). There's a lot of "here be dragons" corner cases - for instance, if I create /gpfs/parent and give it 10T of space, does that mean that *each* dependent fileset is limited to 10T, or the *sum* has to remain under 10T? (In other words, is overcommit allowed?). There's other problems, like "Give the parent 8T, give two children 4T each, let each one store 3T, and then reduce the parent quota to 2T" - what should happen then? And quite frankly, the fact that mmrepquota has an entire column of output for "uncertain" when only dealing with *one* fileset tells me there's not sane way to avoid race conditions when dealing with two filesets without some truly performance-ruining levels of filesystem locking. So I'd say that probably, it's more reasonable to do this outside GPFS - anything from telling everybody who knows the root password not to do it, to teaching whatever automation/provisioning system you have (Ansible, etc) to enforce it. Having said that, if you can nail down the semantics and then make a good business case that it should be done inside of GPFS rather than at the sysadmin level, I'm sure IBM would be willing to at least listen to an RFE.... (*) I remember one Unix variant (Gould's UTX/32) that was perfectly willing to let C code running as root do an unlink(".") rather than return EISDIR even though it meant you just bought yourself a shiny new fsck - don't ask how I found out :)
Hello, There is no hierarchy between fileset quotas, the fileset quota limits are completely independent of each other. The independent fileset., as you mentioned, provides the common inode space and ties the parent and child together in regards to using inodes from their common inode space and for example in regards to snapshots and other features that act on independent filesets. There are however many degrees of freedom in setting up quota configurations, for example user and group quotas and the per-fileset and per-filesystem quota options. So there may be other ways how you could create rules that can model your environment and which could provide a means to create limits across several filesets. For example (will probably not match to you but just to illustrate):: You have a group of applications. Each application stores data in one dependent fileset. The filesystem where these exist uses per filesystem quota accounting.- All these filesets are children of an independent filesets. this allows you to create snapshots of all applications together. All applications store data under the same group. You can limit each applications space via fileset quota and you can limit the whole application group via group quota. Mit freundlichen Grüßen / Kind regards Dr. Markus Rohwedder Spectrum Scale GUI Development Phone: +49 7034 6430190 IBM Deutschland Research & Development E-Mail: rohwedder@de.ibm.com Am Weiher 24 65451 Kelsterbach Germany From: Imam Toufique <techie879@gmail.com> To: gpfsug-discuss@spectrumscale.org Date: 09.02.2019 02:42 Subject: [gpfsug-discuss] question on fileset / quotas Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi Everyone, I am very new to GPFS, just got the system up and running, now starting to get myself setting up filesets and quotas. I have a question, may be in has been answered already, somewhere in this forum, my apologies for that if this is a repeat. My question is: lets say I have an independent fileset called '/mmfs1/crsp_test' , and I set it's quota to 2GB ( quota type FILESET ). STAGING-itoufiqu@crspoitdc-mgmt-001:/mmfs1/crsp_test/itoufiqu$ df -h /mmfs1/crsp_test/ Filesystem Size Used Avail Use% Mounted on mmfs1 2.0G 0 2.0G 0% /mmfs1 Now, I go create a 'dependent' fileset calld 'itoufiqu' under 'crsp_test' , sharing it's inode space, and i was able to set it's quota to 4GB. STAGING-root@crspoitdc-mgmt-001:/mmfs1/crsp_test$ df -h /mmfs1/crsp_test/itoufiqu Filesystem Size Used Avail Use% Mounted on mmfs1 4.0G 4.0G 0 100% /mmfs1 Now, i assume that setting quota of 4GB ( whereas the independent fileset quota is 2GB ) for the above dependent fileset ( 'itoufiqu' ) is being allowed as dependent fileset is sharing inode space from the independent fileset. Is there a way to setup an independent fileset so that it's dependent filesets cannot exceed its quota limit? Another words, if my independent fileset quota is 2GB, I should not be allowed to set quotas for it's dependent filesets more then 2GB ( for the dependent filesets created in aggregate ) ? Thanks for your help! _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
participants (3)
-
Imam Toufique -
Markus Rohwedder -
valdis.kletnieks@vt.edu
