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.
BC
AB
not C, not D -> A,B
[A]
This file is obsolete in the Oracle Solaris 11 release.
Adding share entries to the /etc/dfs/dfstab file is no longer REQUIRED to permanently share files across a network. File systems are shared in the following ways:
…
http://docs.oracle.com/cd/E23824_01/html/821-1473/dfstab-4.html
C You can rename a named share. For example:
# zfs share -o share.smb=on tank/home/abc%abcshare
# grep abc /etc/dfs/sharetab
/tank/home/abc abcshare smb –
# zfs rename tank/home/abc%abcshare tank/home/abc%a1share
# grep abc /etc/dfs/sharetab
/tank/home/abc a1share smb –
http://docs.oracle.com/cd/E26502_01/html/E29007/gayne.html
Antwort C ist also falsch.
D If you create an SMB share, you can also add the NFS share protocol. For example:
# zfs set share.smb=on tank/multifs
# zfs set share.nfs=on tank/multifs
# grep multifs /etc/dfs/sharetab
/tank/multifs tank_multifs nfs sec=sys,rw
/tank/multifs tank_multifs smb –
http://docs.oracle.com/cd/E26502_01/html/E29007/gayne.html
B is correct
You can’t share a parent file system if a subdirectory or descendent file system is already shared.
http://docs.oracle.com/cd/E23824_01/html/821-1448/gayne.html
A is correct
he /etc/dfs/dfstab file still exists but modifications are ignored. SMF manages ZFS or UFS share information so that file systems are shared automatically when the system is rebooted, similar to the way ZFS mount and share information is managed.
http://docs.oracle.com/cd/E23824_01/html/821-1448/gayne.html
Answer: B, C
A is incorrect
http://docs.oracle.com/cd/E26502_01/html/E29007/gayne.html
The /etc/dfs/dfstab file is no longer used to share file systems at boot time.
B is Correct
http://docs.oracle.com/cd/E23824_01/html/821-1448/gayne.html
You can’t share a parent file system if a subdirectory or descendent file system is already shared.
C is Correct
http://docs.oracle.com/cd/E23824_01/html/821-1448/gayne.html
Renaming a share that is created with the zfs set share command is not supported
D is incorrect
http://docs.oracle.com/cd/E23824_01/html/821-1448/gayne.html
You can create a file system share with both NFS and SMB protocols by using the zfs set share command