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

Installing the NFS Services Software, Startup Files, Configuring and Administering an NFS Server

Page 101 highlights

Network File System Use this procedure to set up the default automatic mounter environment on an NFS client. You must perform this procedure as superuser: 1. Verify that NFS flags are on. By default, the NFS and autofs (or automount) flags are set to on. To verify that they are on, give the chkconfig command. 2. Verify that the default configuration is working: cd /hosts/servername For servername, substitute the hostname of any system whose name can be resolved. If the host specified is running NFS and has file systems that are accessible by the client, then autofs mounts all available file systems. 3. Then verify that directories have been mounted. For example: mount servername:/ on /hosts/servername type nfs (rw,dev=c0005)(for autofs) or servername:/ on /tmp_mnt/hosts/servername type nfs (rw,dev=c0005)(for automount) NFS on HPUX Installing the NFS Services Software NFS is typically bundled with the HP-UX operating system. The NFS product was installed when you installed your operating system and is also installed on preconfigured systems. If you do not have the NFS product, you can install it from separate media or from a network server using the swinstall command. Startup Files The startup scripts for core and client NFS functionality are /sbin/init.d/nfs.core and /sbin/init.d/nfs.client. These are run at run-level 2. At run-level 3 /sbin/init.d/nfs.server enables NFS server functionality. The run scripts are configured by the /etc/rc.config.d/nfsconf file. Configuring and Administering an NFS Server Exporting directories 1. Add a line to the /etc/exports file for each directory you want to make available to NFS clients, using a text editor like vi. If the /etc/exports file does not exist on your system, you will have to create it. The following is the syntax of a line in the /etc/exports file: directory [-option[,option]] Type man 4 exports at the HP-UX prompt for a complete list of the export options. After adding your exported directories to the /etc/exports file, you must enable NFS server capability before NFS clients can mount your exported directories. 2. If your system is already running as an NFS server, issue the following command to add the directory to your server's internal list of exported directories: 96

  • 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
96
Use this procedure to set up the default automatic mounter environment on an NFS client. You must
perform this procedure as
superuser
:
1.
Verify that NFS flags are on.
By default, the NFS and
autofs
(or
automount
) flags are set to
on
. To verify that they are on, give the
chkconfig
command.
2.
Verify that the default configuration is working:
cd /hosts/
servername
For
servername
,
substitute the hostname of any system whose name can be resolved. If the host
specified is running NFS and has file systems that are accessible by the client, then
autofs
mounts all
available file systems.
3.
Then verify that directories have been mounted.
For example:
mount
servername:/ on /hosts/servername type nfs (rw,dev=c0005)(for
autofs)
or
servername:/ on /tmp_mnt/hosts/servername type nfs
(rw,dev=c0005)(for automount)
NFS on HPUX
Installing the NFS Services Software
NFS is typically bundled with the HP-UX operating system. The NFS product was installed when you
installed your operating system and is also installed on preconfigured systems. If you do not have the NFS
product, you can install it from separate media or from a network server using the
swinstall
command.
Startup Files
The startup scripts for core and client NFS functionality are
/sbin/init.d/nfs.core
and
/sbin/init.d/nfs.client
. These are run at run-level
2
. At run-level
3 /sbin/init.d/nfs.server
enables NFS
server functionality. The run scripts are configured by the
/etc/rc.config.d/nfsconf
file.
Configuring and Administering an NFS Server
Exporting directories
1.
Add a line to the
/etc/exports
file for each directory you want to make available to NFS clients, using a
text editor like vi. If the
/etc/exports
file does not exist on your system, you will have to create it. The
following is the syntax of a line in the
/etc/exports
file:
directory [-option[,option]]
Type
man 4 exports
at the HP-UX prompt for a complete list of the export options. After adding your
exported directories to the
/etc/exports
file, you must enable NFS server capability before NFS clients
can mount your exported directories.
2.
If your system is already running as an NFS server, issue the following command to add the directory
to your serverĀ±s internal list of exported directories: