| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 1M: System Administration Commands Oracle Solaris 11 Information Library |
- make local NFS file systems unavailable for mounting by remote systems
unshare [-F nfs]pathname
Theunshare command makes local file systems unavailable for mounting by remotesystems. The shared file system must correspond to a line with NFSas theFSType in the file/etc/dfs/sharetab.
The following options are supported:
This option may be omitted if NFS is the first file system type listed in the file/etc/dfs/fstypes.
Seeattributes(5) for descriptions of the following attributes:
|
nfsd(1M),share(1M),attributes(5)
If the file system being unshared is a symbolic link to avalid pathname, the canonical path (the path which the symbolic link follows)will be unshared.
For example, if/export/foo is a symbolic link to/export/bar (/export/foo -> /export/bar), thefollowingunshare command will result in/export/bar as the unshared pathname (andnot/export/foo):
example# unshare -F nfs /export/foo
For file systems that are accessed by NFS Version 4 clients, oncethe unshare is complete, all NFS Version 4 state (open files andfile locks) are released and unrecoverable by the clients. If the intentis to share the file system after some administrative action, the NFSdaemon (nfsd) should first be stopped and then the file system unshared.After the administrative action is complete, the file system would then beshared and the NFS daemon restarted. Seenfsd(1M)
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |