1unshare_nfs(1M) System Administration Commands unshare_nfs(1M)
2
3
4
6 unshare_nfs - make local NFS file systems unavailable for mounting by
7 remote systems
8
10 unshare [-F nfs] pathname
11
12
14 The unshare command makes local file systems unavailable for mounting
15 by remote systems. The shared file system must correspond to a line
16 with NFS as the FSType in the file /etc/dfs/sharetab.
17
19 The following options are supported:
20
21 -F This option may be omitted if NFS is the first file system type
22 listed in the file /etc/dfs/fstypes.
23
24
26 /etc/dfs/fstypes
27
28
29 /etc/dfs/sharetab
30
31
33 See attributes(5) for descriptions of the following attributes:
34
35
36
37
38 ┌─────────────────────────────┬─────────────────────────────┐
39 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
40 ├─────────────────────────────┼─────────────────────────────┤
41 │Availability │SUNWnfssu │
42 └─────────────────────────────┴─────────────────────────────┘
43
45 nfsd(1M), share(1M), attributes(5)
46
48 If the file system being unshared is a symbolic link to a valid path‐
49 name, the canonical path (the path which the symbolic link follows)
50 will be unshared.
51
52
53 For example, if /export/foo is a symbolic link to /export/bar
54 (/export/foo -> /export/bar), the following unshare command will result
55 in /export/bar as the unshared pathname (and not /export/foo):
56
57 example# unshare -F nfs /export/foo
58
59
60
61
62 For file systems that are accessed by NFS Version 4 clients, once the
63 unshare is complete, all NFS Version 4 state (open files and file
64 locks) are released and unrecoverable by the clients. If the intent is
65 to share the file system after some administrative action, the NFS dae‐
66 mon (nfsd) should first be stopped and then the file system unshared.
67 After the administrative action is complete, the file system would then
68 be shared and the NFS daemon restarted. See nfsd(1M)
69
70
71
72SunOS 5.11 6 May 2003 unshare_nfs(1M)