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

Nfs_client=0

Page 105 highlights

Network File System Or, issue the following command to mount all the directories listed in the /etc/fstab file: # /usr/sbin/mount -a The remote directories listed in the /etc/fstab file will be mounted automatically when you enable NFS client capability or reboot your system. Before you can mount a remote directory on your system, the remote system where the directory is located must be configured as an NFS server and must export the directory. To mount a directory temporarily, issue the mount command, but do not add the mount to the /etc/fstab file. It will stay mounted until you reboot your system or until you unmount it with the umount command. To Enable NFS Client Capability 1. In the /etc/rc.config.d/nfsconf file, make sure the NFS_CLIENT variable is set to 1, as follows: NFS_CLIENT=1 2. Run the NFS startup script by issuing the following command: # /sbin/init.d/nfs.client start Setting the NFS_CLIENT variable to 1 causes the NFS startup script to be run whenever you reboot your system. The NFS startup script starts the necessary NFS client daemons and mounts the remote directories configured in the /etc/fstab file. To Disable NFS Client Capability 1. On the NFS client, issue the mount command with no options, to get a list of all the mounted file systems on the client: # /usr/sbin/mount 2. For every NFS-mounted directory listed by the mount command, issue the following command to determine whether the directory is currently in use: # /usr/sbin/fuser -cu local_mount_point This command lists the process ids and user names of everyone using the mounted directory. 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 use the following command to kill all processes using the mounted directory: # /usr/sbin/fuser -ck local_mount_point 4. Issue the following command on the client to unmount all NFS-mounted directories: # /usr/sbin/umount -at nfs 5. Edit the /etc/rc.config.d/nfsconf file on the client to set the NFS_CLIENT and AUTOMOUNT variables to 0. This prevents the client processes from starting up again when you reboot the client. NFS_CLIENT=0 AUTOMOUNT=0 6. Issue the following command to disable NFS client capability: 100

  • 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
100
Or, issue the following command to mount all the directories listed in the
/etc/fstab
file:
# /usr/sbin/mount -a
The remote directories listed in the
/etc/fstab
file will be mounted automatically when you enable NFS
client capability or reboot your system. Before you can mount a remote directory on your system, the
remote system where the directory is located must be configured as an NFS server and must export the
directory.
To mount a directory temporarily, issue the
mount
command, but do not add the mount to the
/etc/fstab
file. It will stay mounted until you reboot your system or until you unmount it with the
umount
command.
To Enable NFS Client Capability
1.
In the
/etc/rc.config.d/nfsconf
file, make sure the
NFS_CLIENT
variable is set to
1
, as follows:
NFS_CLIENT=1
2.
Run the NFS startup script by issuing the following command:
# /sbin/init.d/nfs.client start
Setting the
NFS_CLIENT
variable to
1
causes the NFS startup script to be run whenever you reboot your
system. The NFS startup script starts the necessary NFS client daemons and mounts the remote directories
configured in the
/etc/fstab
file.
To Disable NFS Client Capability
1.
On the NFS client, issue the
mount
command with no options, to get a list of all the mounted file
systems on the client:
# /usr/sbin/mount
2.
For every NFS-mounted directory listed by the
mount
command, issue the following command to
determine whether the directory is currently in use:
# /usr/sbin/fuser -cu local_mount_point
This command lists the process ids and user names of everyone using the mounted directory.
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 use the following command to kill all processes using the
mounted directory:
# /usr/sbin/fuser -ck local_mount_point
4.
Issue the following command on the client to unmount all NFS-mounted directories:
# /usr/sbin/umount -at nfs
5.
Edit the
/etc/rc.config.d/nfsconf
file on the client to set the
NFS_CLIENT
and
AUTOMOUNT
variables to
0
. This prevents the client processes from starting up again when you reboot the client.
NFS_CLIENT=0
AUTOMOUNT=0
6.
Issue the following command to disable NFS client capability: