[zfs-discuss] To reserve space

2010-03-24 Thread Edward Ned Harvey
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-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] To reserve space

2010-03-24 Thread Freddie Cash
On Wed, Mar 24, 2010 at 10:52 AM, Edward Ned Harvey
solar...@nedharvey.comwrote:

  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
fjwc...@gmail.com
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] To reserve space

2010-03-24 Thread Edward Ned Harvey
 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-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] To reserve space

2010-03-24 Thread Edward Ned Harvey
  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?

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] To reserve space

2010-03-24 Thread Brandon High
On Wed, Mar 24, 2010 at 11:18 AM, Edward Ned Harvey
solar...@nedharvey.comwrote:

 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 : bh...@freaks.com
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] To reserve space

2010-03-24 Thread Edward Ned Harvey
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:bh...@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 solar...@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 : bh...@freaks.com

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] To reserve space

2010-03-24 Thread David Magda
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.


___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss