Is there a way to reserve space for a particular user or group? Or perhaps to set a quota for a group which includes everyone else? I have one big pool, which holds users'' home directories, and also the backend files for the svn repositories etc. I would like to ensure the svn server process will always have some empty space to work with, even if some users go hog wild and consume everything they can. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100324/c6048e4d/attachment.html>
On Wed, Mar 24, 2010 at 10:52 AM, Edward Ned Harvey <solaris2 at nedharvey.com>wrote:> Is there a way to reserve space for a particular user or group? Or > perhaps to set a quota for a group which includes everyone else? > > I have one big pool, which holds users? home directories, and also the > backend files for the svn repositories etc. I would like to ensure the svn > server process will always have some empty space to work with, even if some > users go hog wild and consume everything they can. >zfs set reservation=100GB dataset/name That will reserve 100 GB of space for the dataset, and will make that space unavailable to the rest of the pool. -- Freddie Cash fjwcash at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100324/e2c907f0/attachment.html>
> zfs set reservation=100GB dataset/name > > That will reserve 100 GB of space for the dataset, and will make that > space unavailable to the rest of the pool.That doesn''t make any sense to me ... How does that allow "subversionuser" to use the space, and block "joeuser" from using it?
> > zfs set reservation=100GB dataset/name > > > > That will reserve 100 GB of space for the dataset, and will make that > > space unavailable to the rest of the pool. > > That doesn''t make any sense to me ... > > How does that allow "subversionuser" to use the space, and block > "joeuser" from using it?Oh - I get it - In the case of subversion server, it''s pretty safe to assume all the "svnuser" files are under a specific subdirectory (or a manageably finite number of directories) and therefore could use a separate zfs filesystem within the same pool, and therefore that directory or directories could have a space reservation. I think that will be sufficient for our immediate needs. Thanks for the suggestion. Out of curiosity, the more general solution would be the ability to create a reservation on a per-user or per-group basis (just like you create quotas on a per-user or per-group basis). Is this possible?
On Wed, Mar 24, 2010 at 11:18 AM, Edward Ned Harvey <solaris2 at nedharvey.com>wrote:> Out of curiosity, the more general solution would be the ability to create > a > reservation on a per-user or per-group basis (just like you create quotas > on > a per-user or per-group basis). Is this possible? >OpenSolaris''s zfs has supported quotas for a little while, so make sure you''re using a recent build. I''m not sure if it''s in Solaris 10, but I believe it is. Before quotas were supported, the answer was to create a new dataset per user, eg: tank/home/user1, tank/home/user2, etc. It''s easy to do in zfs, but it doesn''t always work for storage that is shared between users. -B -- Brandon High : bhigh at freaks.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100324/66b8c58b/attachment.html>
The question is not how to create quotas for users. The question is how to create reservations for users. One way to create a reservation for a user is to create a quota for everyone else, but that''s a little less manageable, so a reservation per-user would be cleaner and more desirable. From: Brandon High [mailto:bhigh at freaks.com] Sent: Wednesday, March 24, 2010 2:33 PM To: Edward Ned Harvey Cc: Freddie Cash; zfs-discuss Subject: Re: [zfs-discuss] To reserve space On Wed, Mar 24, 2010 at 11:18 AM, Edward Ned Harvey <solaris2 at nedharvey.com> wrote: Out of curiosity, the more general solution would be the ability to create a reservation on a per-user or per-group basis (just like you create quotas on a per-user or per-group basis). Is this possible? OpenSolaris''s zfs has supported quotas for a little while, so make sure you''re using a recent build. I''m not sure if it''s in Solaris 10, but I believe it is. Before quotas were supported, the answer was to create a new dataset per user, eg: tank/home/user1, tank/home/user2, etc. It''s easy to do in zfs, but it doesn''t always work for storage that is shared between users. -B -- Brandon High : bhigh at freaks.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100324/b296e27e/attachment.html>
On Wed, March 24, 2010 14:36, Edward Ned Harvey wrote:> The question is not how to create quotas for users. > > The question is how to create reservations for users.There is currently no way to do per-user reservations. That ZFS property is only available per-file system. Even per-user and per-group quotas are a recent addition (requested a lot from academic environments). For most of the existence of ZFS, only per-file system (i.e., data set) quotas were available.