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

Network File System

Page 100 highlights

12. Network File System NFS on IRIX Setting Up an NFS Client To set up an an NFS client for conventional mounting, you must: 1. Verify that NFS software is running on the client. 2. Edit the /etc/fstab file to add the names of directories to be mounted. 3. Mount directories in /etc/fstab by giving the mount command or by rebooting your system-these directories remain mounted until you explicitly unmount them. The procedure below explains how to set up NFS software on a client and mount its NFS resources using the mount command. You must perform this procedure as superuser. 1. Use chkconfig to check the client's NFS configuration flag. 2. If your output shows that NFS is off, use chkconfig to turn NFS on and reboot your system. 3. Verify that NFS daemons are running. Using ps, verify that there are four nfsd and four biod daemons running. Four is the default number of daemons specified in the /etc/config/nfsd.options and /etc/config/biod.options files. 4. For each NFS directory that you want to mount, add an entry to the /etc/fstab file. 5. Create the mount points for each NFS directory. 6. Mount each NFS resource. Setting Up the Automatic Mounters All setup for the automounters is done on the NFS clients only, because the automatic mounters run only on the client systems. There are two methods for setting up the automatic mounters: one for setting a default automount or autofs environment and one for setting up a more complex environment. We will only discuss the first of these methods here. For more details on the second method see the appropriate IRIX manual. Setting Up a Default Automatic Mounter Environment When you set up a default automatic mounter environment on a client, automount (or autofs) reads the /etc/config/automount.options file (or /etc/config/autofs.options file) for mount information at system startup. The options file contains an entry for a special map called -hosts. The -hosts map tells the automatic mounter to read the hosts database from the Unified Naming Service database and use the server specified if the hosts database has a valid entry for that server. When using the -hosts map, when a client accesses a server, the automatic mounter gets the exports list from the server and mounts all directories exported by that server. automount uses /tmp_mnt/hosts as the mount point, and autofs uses /hosts. A sample -hosts entry in /etc/config/automount.options is: -v /hosts -hosts -nosuid,nodev 95

  • 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

95
12. Network File System
NFS on IRIX
Setting Up an NFS Client
To set up an an NFS client for conventional mounting, you must:
1.
Verify that NFS software is running on the client.
2.
Edit the
/etc/fstab
file to add the names of directories to be mounted.
3.
Mount directories in
/etc/fstab
by giving the
mount
command or by rebooting your system°these
directories remain mounted until you explicitly unmount them.
The procedure below explains how to set up NFS software on a client and mount its NFS resources using
the
mount
command. You must perform this procedure as
superuser
.
1.
Use
chkconfig
to check the client±s NFS configuration flag.
2.
If your output shows that NFS is off, use
chkconfig
to turn NFS on and reboot your system.
3.
Verify that NFS daemons are running.
Using
ps
,
verify that there are four
nfsd
and four
biod
daemons running. Four is the default number of
daemons specified in the
/etc/config/nfsd.options
and
/etc/config/biod.options
files.
4.
For each NFS directory that you want to mount, add an entry to the
/etc/fstab
file.
5.
Create the mount points for each NFS directory.
6.
Mount each NFS resource.
Setting Up the Automatic Mounters
All setup for the automounters is done on the NFS clients only, because the automatic mounters run only on
the client systems. There are two methods for setting up the automatic mounters: one for setting a default
automount
or
autofs
environment and one for setting up a more complex environment. We will only
discuss the first of these methods here. For more details on the second method see the appropriate IRIX
manual.
Setting Up a Default Automatic Mounter Environment
When you set up a default automatic mounter environment on a client,
automount
(or
autofs
) reads the
/etc/config/automount.options
file (or
/etc/config/autofs.options
file) for mount information at system
startup.
The
options
file contains an entry for a special map called
–hosts
. The
–hosts
map tells the
automatic mounter to read the
hosts
database from the Unified Naming Service database and use the server
specified if the
hosts
database has a valid entry for that server. When using the
–hosts
map, when a client
accesses a server, the automatic mounter gets the exports list from the server and mounts all directories
exported by that server.
automount
uses
/tmp_mnt/hosts
as the mount point, and
autofs
uses
/hosts
.
A sample
–hosts
entry in
/etc/config/automount.options
is:
-v /hosts -hosts -nosuid,nodev