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

AUTO_MASTER, etc/rc.config.d/nfsconf, etc/auto_master, SIGKILL, SIGKILL, automount, options,

Page 107 highlights

Network File System 2. Make sure the AUTO_MASTER variable in /etc/rc.config.d/nfsconf is set to the name of your automounter master map. (The default master map name is /etc/auto_master.) AUTO_MASTER="/etc/auto_master" 3. Issue the following command to run the NFS client startup script: # /sbin/init.d/nfs.client start To Restart the Automounter 1. Issue the following command to get a list of all the automounted directories on the client: # /usr/bin/grep tmp_mnt /etc/mnttab 2. For every automounted directory listed by the grep command, issue the following command to determine whether the directory is currently in use: # /usr/sbin/fuser -cu local_mount_point 3. 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 issue the following command to kill all the processes using the mounted directory: # /usr/sbin/fuser -ck local_mount_point 4. Issue the following commands to kill the automounter (PID is the process id returned by the ps command): # ps -ef | grep automount # kill -SIGTERM PID CAUTION: Do not kill the automounter with -SIGKILL (-9). The SIGKILL signal can cause any currently automounted directories to become inaccessible until you reboot your system. 5. Type the ps command to make sure the automounter is no longer active: # /usr/bin/ps -ef | grep automount If the ps command indicates the automounter is still active, make sure all users are out of the automounted directories and then try again. Do not restart the automounter until all automount processes have terminated. 6. Issue the following command to start the automounter: # /usr/sbin/automount [ options] options is the list of options configured in the AUTO_OPTIONS variable in the /etc/rc.config.d/nfsconf file. You can also source the /etc/rc.config.d/nfsconf file, and then enter the automount command as follows: # /usr/sbin/automount $AUTO_OPTIONS 102

  • 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
102
2.
Make sure the
AUTO_MASTER
variable in
/etc/rc.config.d/nfsconf
is set to the name of your
automounter master map. (The default master map name is
/etc/auto_master
.)
AUTO_MASTER="/etc/auto_master"
3.
Issue the following command to run the NFS client startup script:
# /sbin/init.d/nfs.client start
To Restart the Automounter
1.
Issue the following command to get a list of all the automounted directories on the client:
# /usr/bin/grep tmp_mnt /etc/mnttab
2.
For every automounted directory listed by the
grep
command, issue the following command to
determine whether the directory is currently in use:
# /usr/sbin/fuser -cu local_mount_point
3.
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 issue the following command to kill all the processes using the
mounted directory:
# /usr/sbin/fuser -ck local_mount_point
4.
Issue the following commands to kill the automounter (PID is the process id returned by the
ps
command):
# ps -ef | grep automount
# kill -SIGTERM PID
CAUTION: Do not kill the automounter with
-SIGKILL
(
-9
). The
SIGKILL
signal can cause any
currently automounted directories to become inaccessible until you reboot your system.
5.
Type the
ps
command to make sure the automounter is no longer active:
# /usr/bin/ps -ef | grep automount
If the
ps
command indicates the automounter is still active, make sure all users are out of the
automounted directories and then try again. Do not restart the automounter until all
automount
processes have terminated.
6.
Issue the following command to start the automounter:
# /usr/sbin/automount [ options]
options
is the list of options configured in the
AUTO_OPTIONS
variable in the
/etc/rc.config.d/nfsconf
file. You can also source the
/etc/rc.config.d/nfsconf
file, and then enter the
automount
command as follows:
# /usr/sbin/automount $AUTO_OPTIONS