Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I know we can enable quota on Filesysetem.I want to implement quota on folders inside filesystem for eg I have a filesystem /FS and two folder inside /FS namely /FS/FQ1 and /FS/FQ2.I want to enable quota on both folder such that maximum size of FQ1 should be 10GB and for FQ2 should be 20GB.After attaining maximum size,if someone copies more data,it should through an error.
Can i implement the same in rhel7.2.Filesystem of /FS is XFS
Regards
Last edited by Ankushkalra; 09-24-2018 at 09:51 AM.
Reason: Proper info missing
Hi All,
I know we can enable quota on Filesysetem.I want to implement quota on folders inside filesystem for eg I have a filesystem /FS and two folder inside /FS namely /FS/FQ1 and /FS/FQ2.I want to enable quota on both folder such that maximum size of FQ1 should be 10GB and for FQ2 should be 20GB.After attaining maximum size,if someone copies more data,it should through an error. Can i implement the same in rhel7.2.Filesystem of /FS is XFS
How are these 'folders' shared??? If you're talking about local users, then your file system quotas are all that you have to work with. If they're shared out via Samba or NFS, you can address quotas for both users and folders that way. The Samba documentation has lots on smbcquotas.
Also, since you're using RHEL, you can contact Red Hat support for help with both file system and NFS quotas, and see the links in their knowledgebase...you have access to it with your paid subscription.
I know we can enable quota on Filesysetem.I want to implement quota on folders inside filesystem for eg I have a filesystem /FS and two folder inside /FS namely /FS/FQ1 and /FS/FQ2.I want to enable quota on both folder such that maximum size of FQ1 should be 10GB and for FQ2 should be 20GB.After attaining maximum size,if someone copies more data,it should through an error.
Can i implement the same in rhel7.2.Filesystem of /FS is XFS
Regards
XFS has the concept of project quota, which limit the disk blocks and inodes in a directory tree. This seems to fit your use case exactly.
Maybe this link will help someone. Anyways thanks for the help guys!!!
...and that is what berndbausch told you about. And that does NOT address Samba, but is rather implementing quotas on the Linux XFS filesystem directly, which is not what you asked. Post #2 told you what to look for for doing this in Samba, and it's well documented in the Samba documentation.
Yes, it is....but you're doing it on a filesystem level, when there's no need to. AGAIN, as you were told in post#2, there is a way to do this in Samba directly, WITHOUT putting more overhead on your filesystem. You were given the option to look at, but followed it up by asking us to look it up for you and hand you a link.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.