Brandon,

Thank you for the explanation. It looks like I will have to share out each file 
system. I was trying to keep the number of shares manageable, but it sounds 
like that won't work.

Regards,
Chris

On Mar 24, 2010, at 9:36 PM, Brandon High wrote:

> 2010/3/24 Chris Dunbar <cdun...@earthside.net>
> I have boxed myself into a mental corner and need some help getting out. I am 
> confused about working with ZFS file systems. Here is a simple example of 
> what has me confused: Let's say I create the ZFS file system tank/nfs and 
> share that over NFS. Then I create the ZFS file systems tank/nfs/foo1 and 
> tank/nfs/foo2. I want to manage snapshots independently for foo1 and foo2, 
> but I would like to be able to access both from the single NFS share for 
> tank/nfs. Here are my questions:
> 
> 1. Can I in fact access foo1 and foo2 through the NFS share of tank/nfs or do 
> I need to create separate NFS shares for each of them?
> 
> No, but sort of yes.
> 
> If you mount server:/nfs on another host, it will not include 
> server:/nfs/foo1 or server:/nfs/foo2. Some nfs clients (notably Solaris's) 
> will attempt to mount the foo1 & foo2 datasets automatically, so it looks 
> like you've exported everything under server:/nfs. Linux clients don't behave 
> in the same fashion, you'll have to separately mount all the exports.
> 
> The sharenfs property will be inherited by the descendant datasets, so if you 
> set it on tank/nfs, tank/nfs/foo1 will have the same settings. 
> 
> 2. Is there any difference in interacting with foo1 and foo2 through the 
> tank/nfs share versus interacting with them directly? I don't even know if 
> that question makes sense, but it's at the heart of my confusion - nesting 
> file systems.
> 
> There are some functions that are unavailable, such as retrieving the zfs 
> settings, etc. I'm not really sure about specifics.
> 
> Depending on the client nfs version, you may not be able to manipulate acls 
> from clients.
>  
> 3. If I make a snapshot of tank/nfs, does it include the data in foo1 and 
> foo2 or are they excluded since they are separate ZFS file systems?
> 
> No, foo1 and foo2 are separate datasets and have completely independent 
> snapshots.
> 
> You can do 'zfs snapshot -r tank/nfs' which will make a recursive snapshot. 
> All the datasets under tank/nfs will have a snapshot taken at the exact same 
> transaction. I'm guessing that's what you'd want?
> 
> -B 
> 
> -- 
> Brandon High : bh...@freaks.com
> eSoft SpamFilter Training Tool        
> Train as Spam
> Blacklist for All Users
> Whitelist for All Users

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

Reply via email to