You must configure a ZFS file system on an Oracle Solaris 11 server to share it over NFS.
(rpool/export/share/data mounted on /export/share/data)
The file system must be configured for read-only access and must assign anonymous users a UID
of 0. The file system must allow read and write access for local users.
Assuming all ZFS properties except mountpoint are at their default settings, which option supports
these requirements?
A.
Option A
B.
Option B
C.
Option C
D.
Option D
Explanation:
Create the NFS share.
# zfs set share=name=fs1,path=/fs1,
prot=nfs tank/fs1
Set the sharenfs property to on.
# zfs set sharenfs=on tank/fs1
Incorrect:
Not A, Not C: The share is not published until the sharenfs or sharesmb property is set to on. For
example:
# zfs set sharenfs=on rpool/fs1
# cat /etc/dfs/sharetab
/rpool/fs1 fs1 nfs sec=sys,rw
Not B: First create the share, then set the sharenfs to on.
Note:When you create a NFS share of a ZFS file system, you must provide the following share
components:
share=name
Identify a name for your share. Maximum share name is 80 characters.
path=pathname
Identify a path for your NFS share that must exist within the file system or directory to be shared.
prot=nfs or smb
Identify the protocol as NFS or SMB.
pool/filesystem
Identifies the ZFS file system to be shared.
Additional share options include:
rw= or ro=
Identifies whether the share is available as read/write or read-only to all clients. You can also
specify a colon-separated list that includes hostnames, IP addresses, or a netgroup.
B is correct
root@s11exam:~# zfs create -o mountpoint=/export/share/data rpool/sharedata
root@s11exam:~# zfs set share=name=data,path=/export/share/data,prot=nfs,ro,anon=0 rpool/sharedata
name=data,path=/export/share/data,prot=nfs,anon=0,sec=sys,ro=*
root@s11exam:~# zfs set sharenfs=on rpool/sharedata
root@s11exam:~# share
data /export/share/data nfs anon=0,sec=sys,ro