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

Automounter

Page 106 highlights

Network File System # /sbin/init.d/nfs.client stop Automounter The master map is usually created as /etc/auto_master and then made into the NIS map auto_master. By default, automounter tries to get master information from the the auto_master map. If a local master map file is specified on the command line, automounter reads it before reading auto_master. The following is the format for indirect map entries: mount_directory map_name [mount_options] The following is the format for direct map entries: /- direct_map [mount_options] in which mount_directory is the absolute path of the mount directory for the indirect map, /- is the direct map indicator, and map_name/direct_map is the file name or NIS map name of the indirect or direct map. If the map name is prefaced with a plus (+), automounter searches for an NIS map. The map_name or direct_map field can also reference one of the following special entries: -hosts A special map that uses /etc/hosts, NIS, or BIND to locate a remote when a host name is specified as a directory name. The name of the remote host is used as the subdirectory name under the mount directory (the first field in the master map). -password A special map that uses the /etc/passwd file to attempt to locate the home directory of a user. -null Cancels a previous map for the indicated mount directory. mount_options Refers to any NFS mount options. Mount options in the master map are overridden by mount options in the indirect/direct maps. Automounter Startup Files When booted to run-level 2 or higher, the system will run the /sbini/init.d/nfs.client script. This script will start automounter if the AUTOMOUNT variable in the /etc/rc.config.d/nfsconf configuration file has a value of 1. Configuring Automounter 1. Create the master map /etc/auto_master. 2. Create indirect and direct maps as needed. 3. Configure /etc/rc.config.d/nfsconf. 4. Start automounter manually: # /sbin/init.d/nfs.client start. To Enable the NFS Automounter 1. In the /etc/rc.config.d/nfsconf file, make sure the NFS_CLIENT and AUTOMOUNT variables are set to 1, as follows: NFS_CLIENT=1 AUTOMOUNT=1 101

  • 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
101
# /sbin/init.d/nfs.client stop
Automounter
The master map is usually created as
/etc/auto_master
and then made into the NIS map
auto_master
. By
default, automounter tries to get master information from the the
auto_master
map. If a local master map
file is specified on the command line, automounter reads it before reading
auto_master
.
The following is the format for indirect map entries:
mount_directory map_name [mount_options]
The following is the format for direct map entries:
/- direct_map [mount_options]
in which
mount_directory
is the absolute path of the mount directory for the indirect map,
/-
is the direct
map indicator, and
map_name/direct_map
is the file name or NIS map name of the indirect or direct map.
If the map name is prefaced with a plus (
+
), automounter searches for an NIS map.
The
map_name
or
direct_map
field can also reference one of the following special entries:
-hosts
A special map that uses
/etc/hosts
, NIS, or BIND to locate a remote when a host
name is specified as a directory name. The name of the remote host is used as the
subdirectory name under the mount directory (the first field in the master map).
-password
A special map that uses the
/etc/passwd
file to attempt to locate the home directory of
a user.
-null
Cancels a previous map for the indicated mount directory.
mount_options
Refers to any NFS mount options. Mount options in the master map are overridden by
mount options in the indirect/direct maps.
Automounter Startup Files
When booted to run-level
2
or higher, the system will run the
/sbini/init.d/nfs.client
script. This script will
start automounter if the
AUTOMOUNT
variable in the
/etc/rc.config.d/nfsconf
configuration file has a
value of
1
.
Configuring Automounter
1.
Create the master map
/etc/auto_master
.
2.
Create indirect and direct maps as needed.
3.
Configure
/etc/rc.config.d/nfsconf
.
4.
Start
automounter
manually:
# /sbin/init.d/nfs.client start.
To Enable the NFS Automounter
1.
In the
/etc/rc.config.d/nfsconf
file, make sure the
NFS_CLIENT
and
AUTOMOUNT
variables are
set to
1
, as follows:
NFS_CLIENT=1
AUTOMOUNT=1