Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (4770 KB)
mount_nfs(1M)NAME | SYNOPSIS | DESCRIPTION | OPTIONS | NFS FILE SYSTEMS | EXAMPLES | FILES | ATTRIBUTES | SEE ALSO | NOTES NAME
SYNOPSIS
mount [-F nfs] [generic_options] [-o specific_options] [-O] mount_point mount [-F nfs] [generic_options] [-o specific_options] [-O] resource mount_point DESCRIPTION
The mount utility attaches a named resource to the file system hierarchy at the pathname location mount_point, which must already exist. If mount_point has any contents prior to the mount operation, the contents remain hidden until the resource is once again unmounted. If the resource is listed in the /etc/vfstab file, the command line can specify either resource or mount_point, and mount consults /etc/vfstab for more information. If the -F option is omitted, mount takes the file system type from /etc/vfstab. If the resource is not listed in the /etc/vfstab file, then the command line must specify both the resource and the mount_point. host can be an IPv4 or IPv6 address string. As IPv6 addresses already contain colons, enclose host in a pair of square brackets when specifying an IPv6 address string. Otherwise the first occurrence of a colon can be interpreted as the separator between the host name and path, for example, [1080::8:800:200C:417A]:tmp/file. See inet(7P) and inet6(7P). The mount command maintains a table of mounted file systems in /etc/mnttab, described in mnttab(4). OPTIONS
See mount(1M) for the list of supported generic_options. NFS FILE SYSTEMS
File AttributesTo improve NFS read performance, files and file attributes are cached. File modification times get updated whenever a write occurs. However, file access times may be temporarily out-of-date until the cache gets refreshed. The attribute cache retains file attributes on the client. Attributes for a file are assigned a time to be flushed. If the file is modified before the flush time, then the flush time is extended by the time since the last modification (under the assumption that files that changed recently are likely to change soon). There is a minimum and maximum flush time extension for regular files and for directories. Setting actimeo=n sets flush time to n seconds for both regular files and directories. Setting actimeo=0 disables attribute caching on the client. This means that every reference to attributes is satisfied directly from the server though file data is still cached. While this guarantees that the client always has the latest file attributes from the server, it has an adverse effect on performance through additional latency, network load, and server load. Setting the noac option also disables attribute caching, but has the further effect of disabling client write caching. While this guarantees that data written by an application is written directly to a server, where it can be viewed immediately by other clients, it has a significant adverse effect on client write performance. Data written into memory-mapped file pages (mmap(2)) are not written directly to this server. EXAMPLESExample 1 Mounting an NFS File SystemTo mount an NFS file system:
Example 2 Mounting An NFS File System Read-Only With No suid PrivilegesTo mount an NFS file system read-only with no suid privileges:
Example 3 Mounting An NFS File System Over Version 2, with the UDP TransportTo mount an NFS file system over Version 2, with the UDP transport:
Example 4 Mounting an NFS File System Using An NFS URLTo mount an NFS file system using an NFS URL (a canonical path):
Example 5 Mounting An NFS File System Forcing Use Of The Public File HandleTo mount an NFS file system and force the use of the public file handle and an NFS URL (a canonical path) that has a non 7-bit ASCII escape sequence:
Example 6 Mounting an NFS File System Using a Native PathTo mount an NFS file system using a native path (where the server uses colons (":") as the component separator) and the public file handle:
Example 7 Mounting a Replicated Set of NFS File Systems with the Same PathnamesTo mount a replicated set of NFS file systems with the same pathnames:
Example 8 Mounting a Replicated Set of NFS File Systems with Different PathnamesTo mount a replicated set of NFS file systems with different pathnames:
FILES
ATTRIBUTESSee attributes(5) for descriptions of the following attributes:
SEE ALSOrdist(1), mountall(1M), mountd(1M), quota(1M), mkdir(2), mmap(2), mount(2), open(2), umount(2), mnttab(4), attributes(5), fsattr(5), nfssec(5), standards(5), inet(7P), inet6(7P), lofs(7FS) Callaghan, Brent, WebNFS Client Specification, RFC 2054, October 1996. Callaghan, Brent, NFS URL Scheme, RFC 2224, October 1997. Berners-Lee, Masinter & McCahill , Uniform Resource Locators (URL), RFC 1738, December 1994. NOTESAn NFS server should not attempt to mount its own file systems. See lofs(7FS). If the directory on which a file system is to be mounted is a symbolic link, the file system is mounted on the directory to which the symbolic link refers, rather than being mounted on top of the symbolic link itself. SunOS 4.x used the biod maintenance procedure to perform parallel read-ahead and write-behind on NFS clients. SunOS 5.x made biod obsolete with multi-threaded processing, which transparently performs parallel read-ahead and write-behind. Since the root (/) file system is mounted read-only by the kernel during the boot process, only the remount option (and options that can be used in conjunction with remount) affect the root (/) entry in the /etc/vfstab file. NAME | SYNOPSIS | DESCRIPTION | OPTIONS | NFS FILE SYSTEMS | EXAMPLES | FILES | ATTRIBUTES | SEE ALSO | NOTES |
|||||||||||||||||||||||||||