How to NFS Mount a cdrom Filesystem
Contents
About this document
On the server
On the client
Troubleshooting
About this document
Following are the steps required to mount a CD-ROM as a
cdrom filesystem, export the NFS filesystem from the server
and NFS mount the filesystem on the client.
This document applies to AIX Versions 3.2 through 4.3.
On the server
- 
Check the status of portmap and the NFS daemons:
- Enter lssrc -s portmap.
- Enter lssrc -g nfs.
- If they are not active, start them by running
     startsrc -s portmap and then startsrc -g nfs.
 
 
- Mount the CD-ROM:
- Enter mkdir /cdrom to create a mount point, if one
     does not already exist.
- Load the CD into the CD-ROM drive.
- Enter smitty cdrfs.
- Select Add a CDROM File System.
- Select your device from the F4 list.
- Enter the mount point you just created for MOUNT POINT.
- If you want the filesystem to mount on a reboot, change
     Mount AUTOMATICALLY at system restart to yes.
 NOTE: If you specify yes for Mount AUTOMATICALLY at system
         restart, you must have media in the CD-ROM drive when
         you reboot or the mount will fail.
- Enter mount /cdrom.
 
 
- To add the filesystem for NFS exporting:
   
- Enter smitty mknfsexp.
- Enter the PATHNAME of the directory to export (for example, /cdrom).
- Change the MODE of export directory to read-only.
- Enter the HOSTS & NETGROUPS allowed client access.
- Enter HOSTS allowed root access.
- Press Enter to export the filesystem.
 NOTE: If you are going to be installing on the client machine,
         you MUST enter the client name for HOSTS allowed
         root access.
 
 
- Verify that the filesystem is exported:
- Enter showmount -e and find it in the list.
 
On the Client
- Check the status of portmap and the NFS daemons:
- Enter lssrc -s portmap.
- Enter lssrc -g nfs.
- If they are not active, start them by running
    startsrc -s portmap and then startsrc -g nfs.
 
 
- Verify that the server has the filesystem exported:
- Enter showmount -e <server_name>.
 NOTE: <server_name> will be the hostname of the server.
 
 
- Create the directory you will be using to access the software.
 
- To NFS mount the filesystem on the client:
- Enter smitty mknfsmnt.
- Enter the PATHNAME of the mount point (for example, /cdrom).
- Enter the PATHNAME of the remote directory (for example, /cdrom).
- Enter the HOST where the remote directory resides.
- Change the MODE for this NFS file system to read-only.
 NOTE: HOST will be the hostname of the server.
- Press enter to NFS mount the filesystem.
 
On AIX 4.x BOS installation CD-ROMs and most LPP CD-ROMs, the
install images are now located in /cdrom/usr/sys/inst.images.
On some LPP CD-ROMs, the install images are located in /cdrom.
To check which directory the install images are on, check for
the existence of a .toc file in the directory.  Once you have
determined the directory with the .toc file, use the full
pathname of the directory as your <input device> in SMIT when
you perform your install.
Troubleshooting
Look for the following errors:
   mount: 1831-011 access denied for ...
   mount: 1831-008 giving up on ...
If they occur, try the following suggestions:
- On the server, recycle the NFS daemons.  As root,
    run the following commands:
   stopsrc -g nfs
   stopsrc -s portmap
   cd /etc
   rm -rf state rmtab xtab
   startsrc -s portmap
   startsrc -g nfs
   exportfs -a
 
Now try the steps listed in the preceding section "On the client"
   to NFS mount the CD-ROM.
    
NOTE: If NIS or any other application that uses portmap
         is running, you will need to stop it and then restart it
         after this procedure.
 
- Make sure that the client's hostname and IP address are
   resolvable by the server.  Also, make sure that the
   server's hostname and IP address are resolvable by the
   client.  You can do so by running the following:
   
   On the server:
 
        host <client_hostname>
        host <client_ipaddress>
        The output of these lines has to match EXACTLY.
    
On the client:
 
        host <server_hostname>
        host <server_ipaddress>
        The output of these lines has to match EXACTLY.
 
- On the client, enter netstat -in.
   If there is more than one network interface, make sure
   all IP addresses of the client are resolvable by the
   server.  You can do this by running (on the server):
         host <ipaddress>
   Execute this command for each IP address listed in the
   netstat -in output.
 
- If you are still getting errors:
    On the server, enter smitty rmnfsexp.
 
- Enter the PATHNAME of the exported directory (for example, /cdrom).
- Press Enter to remove the directory from the exports list.
- Enter umount /cdrom.
- Enter rmdir /cdrom.
- Return to step 1 of the section "On the server".  If you
    still cannot get the CD-ROM NFS mounted, contact your AIX support
    center for further assistance.
 
How to NFS Mount a cdrom Filesystem: savevg.4x.bak ITEM: FAX
Dated: 2001/01/31~00:00 Category: bak
This HTML file was generated 2001/03/08~16:06:18
Comments or suggestions?
Contact us