Correct Answer: A
Understanding the Automounter Configuration:
/etc/auto.master:
/net -hosts
/- auto.direct ro
* The /- auto.direct ro line indicates:
* Mount Point Prefix:/ (direct mounts)
* Map File:auto.direct
* Global Mount Options:ro (read-only)
/etc/auto.direct:
/nfs1 host01:/export/share1
/nfs2 -sync host01:/export/share2
/nfs3 host02:/export/share3
* /nfs1 and /nfs3:
* No specific mount options in auto.direct.
* Inherit the ro option from /etc/auto.master.
* /nfs2:
* Specifies -sync option in auto.direct.
* Inherits ro from /etc/auto.master.
* Mount options are ro,sync.
Mount Options Resolution:
* Global Options (ro) apply to all entries unless overridden.
* Per-Entry Options in auto.direct override or supplement global options.
Effective Mount Options:
* /nfs1:
* ro (from /etc/auto.master)
* Default NFS options (async unless sync is specified)
* /nfs2:
* ro (from /etc/auto.master)
* sync (specified in auto.direct)
* /nfs3:
* ro (from /etc/auto.master)
* Default NFS options (async)
Oracle Linux Reference:
* OracleLinux 8: Configuring File Systems-Automounter Configuration:
"Options specified in the master map apply to all entries in the map unless overridden by entries in the map itself."
* NFS Default Options:
"By default, NFS mounts are asynchronous (async) unless the sync option is specified." Conclusion:
* /nfs1 and /nfs3:Mounted with ro,async.
* /nfs2:Mounted with ro,sync.
* Correct Option:A