You are configuring NFS on a server. Select the two statements that are true.
A.
Resources listed in /etc/dfs/dfstab are automatically shared on boot up.
B.
A directory cannot be shared if a subdirectory below it is already shared.
C.
Renaming a share created with the zfs set share command is not supported.
D.
NFS and SMB protocols cannot be used simultaneously to share the same directory.
Explanation:
A: ZFS can automatically share file systems by setting the sharenfs property. Using
this property, you do not have to modify the /etc/dfs/dfstab file when a new file system is shared.
The sharenfs property is a comma-separated list of options to pass to the share command. The
value on is an alias for the default share options, which provides read/write permissions to anyone.
The value off indicates that the file system is not managed by ZFS and can be shared through
traditional means, such as the /etc/dfs/dfstab file. All file systems whose sharenfs property is not
off are shared during boot.
should be A and B
Troubleshooting ZFS Share Problems
You can’t share a parent file system if a subdirectory or descendent file system is already shared.
# share -F nfs /rpool/fs2/dir1
# share -F nfs /rpool/fs2/dir2
# share -F nfs /rpool/fs2
share: NFS: descendant of path is shared: /rpool/fs2/dir1 in rpool_fs2_dir2
Renaming a share that is created with the zfs set share command is not supported.
You can create a file system share with both NFS and SMB protocols by using the zfs set share command. For example:
# zfs set share=name=ds,path=/ds,prot=nfs,prot=smb rpool/ds
name=ds,path=/ds,prot=nfs,prot=smb
If you want to create a file system share with both NFS and SMB protocols by using the legacy share command, you must specify the command twice. For example:
# share -F nfs /rpool/ds
# share -F smb /rpool/ds
# zfs get share rpool/df
name=rpool_ds,path=/rpool/ds,prot=nfs,prot=smb
A share path or description that includes a comma (,) must be quoted with double quotes.
so it should be B,C
option B,C is the correct answer according to oracle docs
B,C – i check it
Should be B, C
File systems that you want to be shared automatically should have share command entries in the /etc/dfs/dfstab file (which replaces the /etc/export file). The commands specified in this file are run automatically when the system enters run level 3 (multiuser mode with network file sharing).
http://docs.oracle.com/cd/E19455-01/805-6331/fsadm-28/index.html
Hence A is not correct
A & C are correct.
http://docs.oracle.com/cd/E23824_01/html/821-1448/gayne.html
Under:Troubleshooting ZFS Share Problems:
You can’t share a parent file system if a subdirectory or descendent file system is already shared.
Renaming a share that is created with the zfs set share command is not supported.
/etc/dfs/dfstab is obsolette on solaris 11 http://thegeekdiary.com/how-to-share-zfs-as-nfs-in-solaris-11/
http://docs.oracle.com/cd/E23824_01/html/821-1448/gayne.html
A is not correct.
“The /etc/dfs/dfstab file is not available in this Solaris release”
B,C is correct.
“You can’t share a parent file system if a subdirectory or descendent file system is already shared.”
“Renaming a share that is created with the zfs set share command is not supported.”
B,c
A share can define options for both NFS and SMB sharing.
Renaming a share that is created with the zfs set share command is not supported.