HP Visualize J282 IRIX to HP-UX Migration Guide - Page 101
Installing the NFS Services Software, Startup Files, Configuring and Administering an NFS Server
View all HP Visualize J282 manuals
Add to My Manuals
Save this manual to your list of manuals |
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