Constantin Gonzalez
2009-Nov-19 10:23 UTC
[zfs-discuss] Setting default user/group quotas?
Hi, first of all, many thanks to those who made user/group quotas possible. This is a huge improvement for many users of ZFS! While presenting on this new future at the Munich OpenSolaris User Group meeting yesterday, a question came up that I couldn''t find an answer for: Can you set a default user/group quota? Apparently, zfs set userquota at user1=5G tank/home/user1 is the only way to set user quotas and the "@user1" part seems to be mandatory, at least according to the snv_126 version of the ZFS manpage. According to my attempts with ZFS: The {user|group}{used|quota}@ properties must be appended with a user or group specifier of one of these forms: POSIX name (eg: "matt") POSIX id (eg: "126829") SMB name at domain (eg: "matt at sun") SMB SID (eg: "S-1-234-567-89") Imagine a system that needs to handle thousands of users. Setting quota individually for all of these users would quickly become unwieldly, in a similar manner to the unwieldliness that having a filesystem for each user presented. Which was the reason to introduce user/group quotas in the first place. IMHO, it would be useful to have something like: zfs set userquota=5G tank/home and that would mean that all users who don''t have an individual user quota assigned to them would see a default 5G quota. I haven''t found an RFE for this yet. Is this planned? Should I file an RFE? Or did I overlook something? Thanks, Constantin -- Sent from OpenSolaris, http://www.opensolaris.org/ Constantin Gonzalez Sun Microsystems GmbH, Germany Principal Field Technologist http://blogs.sun.com/constantin Tel.: +49 89/4 60 08-25 91 http://google.com/search?q=constantin+gonzalez Sitz d. Ges.: Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten Amtsgericht Muenchen: HRB 161028 Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Wolf Frenkel Vorsitzender des Aufsichtsrates: Martin Haering
Constantin Gonzalez wrote:> Imagine a system that needs to handle thousands of users. Setting quota > individually for all of these users would quickly become unwieldly, in a > similar > manner to the unwieldliness that having a filesystem for each user > presented.The main reason for not having a fileystem per user was really the client side impact because NFSv4 and mirror mounts aren''t available in enough places or there are other limitations on NFS clients (like the VMware 16 mounts limitation).> Which was the reason to introduce user/group quotas in the first place. > > IMHO, it would be useful to have something like: > > zfs set userquota=5G tank/home > > and that would mean that all users who don''t have an individual user quota > assigned to them would see a default 5G quota. > > I haven''t found an RFE for this yet. Is this planned? Should I file an RFE? > Or did I overlook something?I think that would be great feature. -- Darren J Moffat
Constantin Gonzalez
2009-Nov-19 11:55 UTC
[zfs-discuss] Setting default user/group quotas?
Hi,>> IMHO, it would be useful to have something like: >> >> zfs set userquota=5G tank/home...> I think that would be great feature.thanks. I just created CR 6902902 to track this. I hope it becomes viewable soon here: http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6902902 Cheers, Constantin -- Sent from OpenSolaris, http://www.opensolaris.org/ Constantin Gonzalez Sun Microsystems GmbH, Germany Principal Field Technologist http://blogs.sun.com/constantin Tel.: +49 89/4 60 08-25 91 http://google.com/search?q=constantin+gonzalez Sitz d. Ges.: Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten Amtsgericht Muenchen: HRB 161028 Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Wolf Frenkel Vorsitzender des Aufsichtsrates: Martin Haering