[zfs-discuss] RBAC and zfs

2011-08-26 Thread cephas maposah
i would like to create a role which can take snapshots, run zfs send and zfs
receive. the user switches to that role and has permissions to run those
commands on a pool
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] RBAC and zfs

2011-08-26 Thread Darren J Moffat

On 08/26/11 13:29, cephas maposah wrote:

i would like to create a role which can take snapshots, run zfs send and
zfs receive. the user switches to that role and has permissions to run
those commands on a pool


See the zfs(1M) man page for the section on the 'allow' subcommand.

Assuming a role name of 'myrole' and a ZFS pool called 'tank' it would 
be something like this:


# roleadd -R myrole
# passwd myrole
...
# useradd -R myrole cephas

# zfs allow -u myrole send,receive,snapshot,mount tank

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


Re: [zfs-discuss] ZFS raidz on top of hardware raid0

2011-08-26 Thread Brandon High
On Fri, Aug 12, 2011 at 6:34 PM, Tom Tang thomps...@supermicro.com wrote:
 Suppose I want to build a 100-drive storage system, wondering if there is any 
 disadvantages for me to setup 20 arrays of HW RAID0 (5 drives each), then 
 setup ZFS file system on these 20 virtual drives and configure them as RAIDZ?

A 20-device wide raidz is a bad idea. Making those devices from
stripes just compounds the issue.

The biggest problem is that resilvering would be a nightmare, and
you're practically guaranteed to have additional failures or read
errors while degraded.

You would achieve better performance, error detection and recovery by
using several top-level raidz. 20 x 5-disk raidz would give you very
good read and write performance with decent resilver times and 20%
overhead for redundancy. 10 x 10-disk raidz2 would give more
protection, but a little less performance, and higher resilver times.

-B

-- 
Brandon High : bh...@freaks.com
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss