HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 103

usr/sbin/showmount -a

Page 103 highlights

Network File System 4. On every NFS client that has the directory mounted, issue the following command to unmount the directory: # /usr/sbin/umount servername:/directory 5. On every NFS client that had the directory mounted, use a text editor to comment out or remove the line in the /etc/fstab file that lists the directory you want to unexport. This prevents clients from attempting to mount the directory when they reboot. 6. On every client that has the directory configured to be automounted, edit the /etc/auto_* files to comment out or remove the directory from the automounter maps. Clients that automount the directory may not be listed by the showmount command. If you are using NIS to manage your automounter maps, edit the /etc/auto_* files on the NIS master server, and then issue the following commands to regenerate the maps and push them to the slave servers: # cd /var/yp # /usr/ccs/bin/make auto.mapname auto.mapname... 7. If you modified any direct automounter maps or the automounter master map, restart the automounter. 8. On the NFS server, use a text editor to remove the line in the /etc/exports file that lists the directory you want to unexport. 9. On the NFS server, issue the following command to unexport the directory: # /usr/sbin/exportfs -u directory If you unexport a directory that an NFS client currently has mounted, the next time someone on that client requests access to the directory, NFS will return an NFS stale file handle error message. The client may be able to unmount the directory, but if that does not work, the client must reboot to recover. To Disable NFS Server Capability 1. On the NFS server, issue the following command for a list of all the NFS clients that have directories mounted from the NFS server you are planning to disable: # /usr/sbin/showmount -a On every NFS client listed by the showmount command, issue the following command for each directory that is mounted from your NFS server: # /usr/sbin/fuser -u servername:/directory This command lists the process ids and user names of everyone using the mounted directory. 2. Warn any users to cd out of the directory, and kill any processes that are using the directory, or wait until the processes terminate. You can use the following command to kill all processes using the directory: # /usr/sbin/fuser -ck local_mount_point 3. On every client that has directories mounted from your server, issue the following command: # /usr/sbin/umount -h servername 98

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125

Network File System
98
4.
On every NFS client that has the directory mounted, issue the following command to unmount the
directory:
# /usr/sbin/umount servername:/directory
5.
On every NFS client that had the directory mounted, use a text editor to comment out or remove the
line in the
/etc/fstab
file that lists the directory you want to unexport. This prevents clients from
attempting to mount the directory when they reboot.
6.
On every client that has the directory configured to be automounted, edit the
/etc/auto_*
files to
comment out or remove the directory from the
automounter
maps. Clients that automount
the
directory may not be listed by the
showmount
command.
If you are using NIS to manage your
automounter
maps, edit the
/etc/auto_*
files on the NIS master
server, and then issue the following commands to regenerate the maps and push them to the slave
servers:
# cd /var/yp
# /usr/ccs/bin/make auto.mapname auto.mapname...
7.
If you modified any direct
automounter
maps or the
automounter
master map, restart the
automounter
.
8.
On the NFS server, use a text editor to remove the line in the
/etc/exports
file that lists the directory
you want to unexport.
9.
On the NFS server, issue the following command to unexport the directory:
# /usr/sbin/exportfs -u directory
If you unexport a directory that an NFS client currently has mounted, the next time someone on that client
requests access to the directory, NFS will return an
NFS stale file handle
error message. The client may be
able to unmount the directory, but if that does not work, the client must reboot to recover.
To Disable NFS Server Capability
1.
On the NFS server, issue the following command for a list of all the NFS clients that have directories
mounted from the NFS server you are planning to disable:
# /usr/sbin/showmount –a
On every NFS client listed by the
showmount
command, issue the following command for each
directory that is mounted from your NFS server:
# /usr/sbin/fuser -u servername:/directory
This command lists the process ids and user names of everyone using the mounted directory.
2.
Warn any users to
cd
out of the directory, and kill any processes that are using the directory, or wait
until the processes terminate. You can use the following command to kill all processes using the
directory:
# /usr/sbin/fuser -ck local_mount_point
3.
On every client that has directories mounted from your server, issue the following command:
# /usr/sbin/umount -h servername