User and group quotas for ZFS!

This push will be very popular amoung those who are managing servers with thousands of users:

Repository: /export/onnv-gate
Total changesets: 1

Changeset: f41cf682d0d3

Comments:
PSARC/2009/204 ZFS user/group quotas & space accounting
6501037 want user/group quotas on ZFS
6830813 zfs list -t all fails assertion
6827260 assertion failed in arc_read(): hdr == pbuf->b_hdr
6815592 panic: No such hold X on refcount Y from zfs_znode_move
6759986 zfs list shows temporary %clone when doing online zfs recv

User quotas for zfs has been the feature I have been asked about most when talking to customers. This probably relfects that most customers are simply blown away by the other features of ZFS and the only missing feature was user quotas if you have a large user base.

Comments:

And the ability to add and remove disks to vdevs.

But hey, rome was not built in a day....

Posted by kangcool on April 19, 2009 at 02:15 PM BST #

Why not allocate a filesystem for each user? Quotas per filesystem exist, and a ZFS filesystem is lightweight.

Kim

Posted by Dexter Kimball on May 27, 2009 at 06:49 PM BST #

@Dexter Kimball

When you have 50,000 users each with it's own file system although they are cheap the cumulative effect is not good. Just mounting the file systems can take a while. If you then have snapshots listing the snapshots takes a long while (although my -d option to zfs list helps limit this).

Posted by Chris Gerhard on May 28, 2009 at 12:59 AM BST #

Yes lightweight, but is it really lightweight with 200000 users? Current Solaris needs ages to mount even much less number of zfs filesystems. Also, quota of a user can be lowered, even below the value the user already has. With zfs filesystems it is not possible but we need it: if user has 50Mb data, and we set his quota to 25, nothing special happen, just "over quota", but with zfs you can't reduce the size of the file system below the size when it's filled fully.

Posted by LGB on May 28, 2009 at 01:43 PM BST #

Post a Comment:
Comments are closed for this entry.
About

This is the old blog of Chris Gerhard. It has mostly moved to http://chrisgerhard.wordpress.com

Search

Archives
« July 2015
MonTueWedThuFriSatSun
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today